Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1844)

Unified Diff: android_webview/browser/aw_intercept_navigation_resource_throttle.h

Issue 10946008: Componentize IgnoreNavigationResourceThrottle and add chrome and webview specific implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698