Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 | |
| 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_THROTTLE_H_ | |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_THROTTLE_H_ | |
| 7 | |
| 8 #include <string> | |
|
Devlin
2016/06/03 22:22:46
not needed
nasko
2016/06/06 17:40:44
Done.
| |
| 9 | |
| 10 #include "base/callback.h" | |
|
Devlin
2016/06/03 22:22:46
IWYU nit: base/macros.h
nasko
2016/06/06 17:40:44
Done.
| |
| 11 #include "content/public/browser/navigation_throttle.h" | |
| 12 | |
| 13 namespace content { | |
| 14 class NavigationHandle; | |
| 15 } | |
| 16 | |
| 17 namespace extensions { | |
| 18 | |
| 19 class NavigationParams; | |
| 20 | |
| 21 // This class allows the extensions subsystem to have control over navigations | |
| 22 // and optionally cancel/block them. This is a UI thread class. | |
| 23 class ExtensionNavigationThrottle : public content::NavigationThrottle { | |
| 24 public: | |
| 25 ExtensionNavigationThrottle(content::NavigationHandle* navigation_handle); | |
|
Devlin
2016/06/03 22:22:45
explicit
nasko
2016/06/06 17:40:44
Done.
| |
| 26 ~ExtensionNavigationThrottle() override; | |
| 27 | |
| 28 // content::NavigationThrottle implementation: | |
| 29 ThrottleCheckResult WillStartRequest() override; | |
|
Devlin
2016/06/03 22:22:45
I'm not very familiar with NavigationThrottle, so
nasko
2016/06/06 17:40:44
This will be called before the request is sent to
Devlin
2016/06/06 22:17:22
I'm a little worried that this will become (more)
nasko
2016/06/06 23:23:03
I think the cleaner model will be once we ship Plz
| |
| 30 | |
| 31 private: | |
| 32 DISALLOW_COPY_AND_ASSIGN(ExtensionNavigationThrottle); | |
| 33 }; | |
| 34 | |
| 35 } // namespace extensions | |
| 36 | |
| 37 #endif // EXTENSIONS_BROWSER_EXTENSION_NAVIGATION_THROTTLE_H_ | |
| OLD | NEW |