Chromium Code Reviews| Index: android_webview/browser/aw_intercept_navigation_resource_throttle.h |
| diff --git a/android_webview/browser/aw_intercept_navigation_resource_throttle.h b/android_webview/browser/aw_intercept_navigation_resource_throttle.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..62136a27cc8f97fa7f67f5f5de066745917ad490 |
| --- /dev/null |
| +++ b/android_webview/browser/aw_intercept_navigation_resource_throttle.h |
| @@ -0,0 +1,19 @@ |
| +#ifndef ANDROID_WEBVIEW_BROWSER_AW_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
|
benm (inactive)
2012/09/19 11:04:04
copyright missing?
mkosiba (inactive)
2012/09/25 18:01:47
Done.
|
| +#define ANDROID_WEBVIEW_BROWSER_AW_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
| + |
| +#include "chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h" |
| + |
| +namespace android_webview { |
| + |
| +// Creates a ResourceThrottle that will call the AwWebContentsDelegate |
| +// shouldIgnoreNavigation method for every top level navigation to determine if |
| +// the navigation should be performed or ignored. |
| +class AwInterceptNavigationResourceThrottle { |
| + public: |
| + static navigation_interception::InterceptNavigationResourceThrottle* |
| + Create(net::URLRequest* request); |
| +}; |
| + |
| +} // namespace android_webview |
| + |
| +#endif // ANDROID_WEBVIEW_BROWSER_AW_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |