#ifndef CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
#include "chrome/browser/infobars/confirm_infobar_delegate.h"
#include "url/gurl.h"
namespace content {
class WebContents;
}
class HostContentSettingsMap;
class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
static void Create(content::WebContents* web_contents, int num_popups);
virtual ~PopupBlockedInfoBarDelegate();
private:
PopupBlockedInfoBarDelegate(int num_popups,
const GURL& url,
HostContentSettingsMap* map);
virtual int GetIconID() const OVERRIDE;
virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() OVERRIDE;
virtual base::string16 GetMessageText() const OVERRIDE;
virtual int GetButtons() const OVERRIDE;
virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
virtual bool Accept() OVERRIDE;
int num_popups_;
GURL url_;
HostContentSettingsMap* map_;
bool can_show_popups_;
DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate);
};
#endif