Chromium Code Reviews| 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 ecfdb7a7498bece55e73dc80d3a3c972bc3f73fd..082273cc070d76f107f1f63564a2dae22e2bdd8a 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; |
|
darin (slow to review)
2012/05/23 18:18:29
nit: "class" sorts before "struct"
mkosiba (inactive)
2012/05/28 16:06:52
Done.
|
| class RenderViewHost; |
| class WebContents; |
| class WebIntentsDispatcher; |
| @@ -77,6 +78,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& 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 |