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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed chromeos build issue + rebase Created 8 years, 6 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: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 6c3b6f8198fcc99e88a8ed31b310be0b455b44ff..cd9a9b16fea9f8b55745606f0af69755cb6661c6 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -38,6 +38,7 @@ class WebIntentsDispatcher;
struct ContextMenuParams;
struct FileChooserParams;
struct NativeWebKeyboardEvent;
+struct Referrer;
struct SSLStatus;
}
@@ -78,6 +79,14 @@ class CONTENT_EXPORT WebContentsDelegate {
virtual WebContents* OpenURLFromTab(WebContents* source,
const OpenURLParams& params);
+ // Called for top-level navigation to decide whether the navigation should be
+ // allowed to proceed.
+ virtual bool ShouldIgnoreNavigation(
+ WebContents* source,
+ const GURL& validated_url,
+ const content::Referrer& referrer,
+ bool is_content_initiated);
+
// Called to inform the delegate that the WebContents's navigation state
// changed. The |changed_flags| indicates the parts of the navigation state
// that have been updated, and is any combination of the

Powered by Google App Engine
This is Rietveld 408576698