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 49e833ddd3c5fa976753d793d3f6b46e71de2bac..4b1da5db4b541f7a09de0b5a2ccdc02c1fc2152b 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_intiated, |
|
Charlie Reis
2012/04/05 17:06:53
nit: initiated
groby-ooo-7-16
2012/04/05 22:51:19
nit: Switch to enum, if possible
mkosiba (inactive)
2012/04/10 17:58:37
Done.
mkosiba (inactive)
2012/04/10 17:58:37
is_content_initiated is already defined as a bool
|
| + 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 |