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

Unified Diff: chrome/browser/android/chrome_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: chrome/browser/android/chrome_intercept_navigation_resource_throttle.h
diff --git a/chrome/browser/android/chrome_intercept_navigation_resource_throttle.h b/chrome/browser/android/chrome_intercept_navigation_resource_throttle.h
new file mode 100644
index 0000000000000000000000000000000000000000..1fa1157a809f804f1a8e0a514b7d3a0a4a28afc0
--- /dev/null
+++ b/chrome/browser/android/chrome_intercept_navigation_resource_throttle.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_CHROME_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
+#define CHROME_BROWSER_ANDROID_CHROME_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_
+
+#include "chrome/browser/component/navigation_interception/intercept_navigation_resource_throttle.h"
+
+namespace chrome {
+namespace android {
+
+// Creates a ResourceThrottle that will call the
+// ChromeWebContentsDelegateAndroid shouldIgnoreNavigation method for every top
+// level navigation to determine if the navigation should be performed or
+// ignored.
+class ChromeInterceptNavigationResourceThrottle {
+ public:
+ static navigation_interception::InterceptNavigationResourceThrottle* Create(
+ net::URLRequest* request);
+};
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_CHROME_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_

Powered by Google App Engine
This is Rietveld 408576698