default_navigation_throttle.h 963 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CHROMECAST_BROWSER_DEFAULT_NAVIGATION_THROTTLE_H_
  5. #define CHROMECAST_BROWSER_DEFAULT_NAVIGATION_THROTTLE_H_
  6. #include "content/public/browser/navigation_throttle.h"
  7. namespace content {
  8. class NavigationHandle;
  9. } // namespace content
  10. class DefaultNavigationThrottle : public content::NavigationThrottle {
  11. public:
  12. DefaultNavigationThrottle(content::NavigationHandle* handle,
  13. NavigationThrottle::ThrottleAction default_action);
  14. ~DefaultNavigationThrottle() override;
  15. // content::NavigationThrottle implementation:
  16. ThrottleCheckResult WillStartRequest() override;
  17. const char* GetNameForLogging() override;
  18. private:
  19. content::NavigationThrottle::ThrottleAction const default_action_;
  20. };
  21. #endif // CHROMECAST_BROWSER_DEFAULT_NAVIGATION_THROTTLE_H_