atom_navigation_throttle.h 760 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2018 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_ATOM_NAVIGATION_THROTTLE_H_
  5. #define ATOM_BROWSER_ATOM_NAVIGATION_THROTTLE_H_
  6. #include "content/public/browser/navigation_throttle.h"
  7. namespace atom {
  8. class AtomNavigationThrottle : public content::NavigationThrottle {
  9. public:
  10. explicit AtomNavigationThrottle(content::NavigationHandle* handle);
  11. ~AtomNavigationThrottle() override;
  12. AtomNavigationThrottle::ThrottleCheckResult WillRedirectRequest() override;
  13. const char* GetNameForLogging() override;
  14. private:
  15. DISALLOW_COPY_AND_ASSIGN(AtomNavigationThrottle);
  16. };
  17. } // namespace atom
  18. #endif // ATOM_BROWSER_ATOM_NAVIGATION_THROTTLE_H_