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..ed48edc37946ed2099205d78ee3d74a5a66bed11 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 according to the specified |disposition|. |
+ 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 |