Index: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h |
diff --git a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h |
index 66c98ebac139b815a0ad9cb31739ce960fe3284a..a9c1800c72a11f32e6410435ed24d88c1cd6cbf0 100644 |
--- a/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h |
+++ b/chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h |
@@ -6,19 +6,26 @@ |
#define CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |
#include "chrome/browser/infobars/confirm_infobar_delegate.h" |
+#include "url/gurl.h" |
-class InfoBarService; |
+namespace content { |
+class WebContents; |
+} // namespace content |
+ |
+class HostContentSettingsMap; |
class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate { |
public: |
// Creates a popup blocked infobar and delegate and adds the infobar to |
// |infobar_service|. |
- static void Create(InfoBarService* infobar_service, int num_popups); |
+ static void Create(content::WebContents* web_contents, int num_popups); |
virtual ~PopupBlockedInfoBarDelegate(); |
private: |
- explicit PopupBlockedInfoBarDelegate(int num_popups); |
+ PopupBlockedInfoBarDelegate(int num_popups, |
+ const GURL& url, |
+ HostContentSettingsMap* map); |
// ConfirmInfoBarDelegate: |
virtual int GetIconID() const OVERRIDE; |
@@ -29,6 +36,9 @@ class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate { |
virtual bool Accept() OVERRIDE; |
int num_popups_; |
+ GURL url_; |
+ HostContentSettingsMap* map_; |
+ bool can_show_popups_; |
DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate); |
}; |