1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
8 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
12 class PopupBlockedInfoBarDelegate
: public ConfirmInfoBarDelegate
{
14 // Creates a popup blocked infobar and delegate and adds the infobar to
16 static void Create(InfoBarService
* infobar_service
, int num_popups
);
18 virtual ~PopupBlockedInfoBarDelegate();
21 explicit PopupBlockedInfoBarDelegate(int num_popups
);
23 // ConfirmInfoBarDelegate:
24 virtual int GetIconID() const OVERRIDE
;
25 virtual PopupBlockedInfoBarDelegate
* AsPopupBlockedInfoBarDelegate() OVERRIDE
;
26 virtual base::string16
GetMessageText() const OVERRIDE
;
27 virtual int GetButtons() const OVERRIDE
;
28 virtual base::string16
GetButtonLabel(InfoBarButton button
) const OVERRIDE
;
29 virtual bool Accept() OVERRIDE
;
33 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate
);
36 #endif // CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_