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

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

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 bcd5caf609b2664c386a9aa47c463951077666ec..92c8dcd7f5678ed8c0533417b73cf5cc4bfdeaaf 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -176,7 +176,7 @@ class CONTENT_EXPORT WebContentsDelegate {
// Returns true if javascript dialogs and unload alerts are suppressed.
// Default is false.
- virtual bool ShouldSuppressDialogs();
+ virtual bool ShouldSuppressDialogs(WebContents* source);
// Returns whether pending NavigationEntries for aborted browser-initiated
// navigations should be preserved (and thus returned from GetVisibleURL).
@@ -342,7 +342,8 @@ class CONTENT_EXPORT WebContentsDelegate {
// Returns a pointer to a service to manage JavaScript dialogs. May return
// NULL in which case dialogs aren't shown.
- virtual JavaScriptDialogManager* GetJavaScriptDialogManager();
+ virtual JavaScriptDialogManager* GetJavaScriptDialogManager(
+ WebContents* source);
// Called when color chooser should open. Returns the opened color chooser.
// Returns NULL if we failed to open the color chooser (e.g. when there is a

Powered by Google App Engine
This is Rietveld 408576698