OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |
| 7 |
| 8 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
| 9 |
| 10 class InfoBarService; |
| 11 |
| 12 class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate { |
| 13 public: |
| 14 static InfoBarDelegate* Create(InfoBarService* infobar_service, int n_popups); |
| 15 virtual ~PopupBlockedInfoBarDelegate(); |
| 16 |
| 17 // ConfirmInfoBarDelegate: |
| 18 virtual string16 GetMessageText() const OVERRIDE; |
| 19 virtual int GetButtons() const OVERRIDE; |
| 20 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
| 21 virtual int GetIconID() const OVERRIDE; |
| 22 virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() OVERRIDE; |
| 23 virtual bool Accept() OVERRIDE; |
| 24 |
| 25 |
| 26 private: |
| 27 PopupBlockedInfoBarDelegate(InfoBarService* infobar_service, int n_popups); |
| 28 int n_popups_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |
OLD | NEW |