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

Unified Diff: ui/web_dialogs/web_dialog_web_contents_delegate.h

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: ui/web_dialogs/web_dialog_web_contents_delegate.h
===================================================================
--- ui/web_dialogs/web_dialog_web_contents_delegate.h (revision 153532)
+++ ui/web_dialogs/web_dialog_web_contents_delegate.h (working copy)
@@ -27,7 +27,8 @@
content::BrowserContext* context,
content::WebContents* source,
const content::OpenURLParams& params) = 0;
- virtual void AddNewContents(content::BrowserContext* context,
+ // Returns false if the new contents was blocked.
+ virtual bool AddNewContents(content::BrowserContext* context,
content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
@@ -57,7 +58,7 @@
content::WebContents* source,
const content::OpenURLParams& params) OVERRIDE;
- virtual void AddNewContents(content::WebContents* source,
+ virtual bool AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,

Powered by Google App Engine
This is Rietveld 408576698