| 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/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "content/public/browser/navigation_throttle.h" | 13 #include "content/public/browser/navigation_throttle.h" |
| 13 | 14 |
| 14 class GURL; | 15 class GURL; |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 class NavigationHandle; | 18 class NavigationHandle; |
| 18 class WebContents; | 19 class WebContents; |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const bool run_callback_synchronously_; | 55 const bool run_callback_synchronously_; |
| 55 | 56 |
| 56 base::WeakPtrFactory<InterceptNavigationThrottle> weak_factory_; | 57 base::WeakPtrFactory<InterceptNavigationThrottle> weak_factory_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationThrottle); | 59 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationThrottle); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace navigation_interception | 62 } // namespace navigation_interception |
| 62 | 63 |
| 63 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ | 64 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_INTERCEPT_NAVIGATION_THROTTLE_H_ |
| OLD | NEW |