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

Unified Diff: components/infobars/core/infobar_manager.h

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios Created 5 years, 3 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: components/infobars/core/infobar_manager.h
diff --git a/components/infobars/core/infobar_manager.h b/components/infobars/core/infobar_manager.h
index d984f5bb945e610eb3dbf1b0cc4143ec17f32a3a..1a7c9dbdf34e67760669a7f385b2ba7bff14b37b 100644
--- a/components/infobars/core/infobar_manager.h
+++ b/components/infobars/core/infobar_manager.h
@@ -12,6 +12,7 @@
#include "components/infobars/core/infobar_delegate.h"
class ConfirmInfoBarDelegate;
+class GURL;
namespace content {
class WebContents;
@@ -100,6 +101,9 @@ class InfoBarManager {
virtual scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
scoped_ptr<ConfirmInfoBarDelegate> delegate) = 0;
+ // Opens a URL in whatever manner is appropriate.
Peter Kasting 2015/10/01 00:10:58 Nit: in whatever manner is appropriate -> accordin
Avi (use Gerrit) 2015/10/01 00:20:33 Done.
+ virtual void OpenURL(const GURL& url, WindowOpenDisposition disposition) = 0;
+
protected:
// Notifies the observer in |observer_list_|.
// TODO(droger): Absorb these methods back into their callers once virtual

Powered by Google App Engine
This is Rietveld 408576698