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

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: fix build error 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 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

Powered by Google App Engine
This is Rietveld 408576698