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

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

Issue 9978015: Make browser_handles_top_level_requests synchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ExternalTabContainer::ShouldIgnoreNavigation returns true if is_content_initiated Created 8 years, 8 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 3972c2d9ca987700b83a529d05a3b94d64802e31..1a08f4b6fd213dcb2c2a6f1956b61eb5f160d801 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -33,6 +33,7 @@ class BrowserContext;
class ColorChooser;
class DownloadItem;
class JavaScriptDialogCreator;
+struct Referrer;
class RenderViewHost;
class WebContents;
class WebIntentsDispatcher;
@@ -77,6 +78,16 @@ class CONTENT_EXPORT WebContentsDelegate {
virtual WebContents* OpenURLFromTab(WebContents* source,
const OpenURLParams& params);
+ // Returns false if the navigation in question is to proceed and true if it
+ // is to be ignored by the renderer.
+ virtual bool ShouldIgnoreNavigation(
+ WebContents* source,
+ const GURL& url,
+ const content::Referrer& referrer,
+ WindowOpenDisposition disposition,
+ bool is_content_initiated,
+ content::PageTransition transition_type);
+
// Called to inform the delegate that the tab content'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