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

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

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
===================================================================
--- content/public/browser/web_contents_delegate.cc (revision 154307)
+++ content/public/browser/web_contents_delegate.cc (working copy)
@@ -25,6 +25,14 @@
return NULL;
}
+bool WebContentsDelegate::AddNewContents(WebContents* source,
+ WebContents* new_contents,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture) {
+ return true;
+}
+
bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
return false;
}
@@ -135,6 +143,13 @@
return true;
}
+bool WebContentsDelegate::WebContentsCreated(WebContents* source_contents,
+ int64 source_frame_id,
+ const GURL& target_url,
+ WebContents* new_contents) {
+ return true;
+}
+
#if defined(OS_ANDROID)
bool WebContentsDelegate::ShouldOverrideLoading(const GURL& url) {
return false;

Powered by Google App Engine
This is Rietveld 408576698