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

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 9978015: Make browser_handles_top_level_requests synchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ExternalTabContainer::ShouldIgnoreNavigation returns true if is_content_initiated 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.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index f4c0bc970380e7bfbe1da845d6eaca8930494df5..b75df29f83055463f2d912d42289d6b80c8d3340 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -24,6 +24,16 @@ WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source,
return NULL;
}
+bool WebContentsDelegate::ShouldIgnoreNavigation(
+ WebContents* source,
+ const GURL& url,
+ const content::Referrer& referrer,
+ WindowOpenDisposition disposition,
+ bool is_content_initiated,
+ content::PageTransition transition_type) {
+ return false;
+}
+
bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698