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 |