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 a3e070bb86eca1205d02b5c8e6a095ac1c012a3c..aa5637f5ad8d5c845f5892b67dbb4b6c0d473797 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; |
| } |
| @@ -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, |
|
darin (slow to review)
2012/06/01 20:57:41
It seems like this function is no longer necessary
mkosiba (inactive)
2012/06/06 16:11:20
For Chrome on Android it makes sense for the callb
|
| + 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 |