OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ | 5 #ifndef COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ |
6 #define COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ | 6 #define COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "content/public/browser/navigation_throttle.h" | 13 #include "content/public/browser/navigation_throttle.h" |
14 | 14 |
15 class GURL; | |
16 | |
17 namespace content { | 15 namespace content { |
18 class NavigationHandle; | 16 class NavigationHandle; |
19 class WebContents; | 17 class WebContents; |
20 } | 18 } |
21 | 19 |
22 namespace navigation_interception { | 20 namespace navigation_interception { |
23 | 21 |
24 class NavigationParams; | 22 class NavigationParams; |
25 | 23 |
26 // This class allows the provider of the Callback to selectively ignore top | 24 // This class allows the provider of the Callback to selectively ignore top |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const bool run_callback_synchronously_; | 56 const bool run_callback_synchronously_; |
59 | 57 |
60 base::WeakPtrFactory<InterceptNavigationThrottle> weak_factory_; | 58 base::WeakPtrFactory<InterceptNavigationThrottle> weak_factory_; |
61 | 59 |
62 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationThrottle); | 60 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationThrottle); |
63 }; | 61 }; |
64 | 62 |
65 } // namespace navigation_interception | 63 } // namespace navigation_interception |
66 | 64 |
67 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ | 65 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ |
OLD | NEW |