Index: chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h |
diff --git a/chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h b/chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2f206f0dd9da039e121904e991acfe2915a3f59c |
--- /dev/null |
+++ b/chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |
+#define CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |
+ |
+#include "chrome/browser/infobars/confirm_infobar_delegate.h" |
+ |
+class InfoBarService; |
+ |
+class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate { |
+ public: |
+ static InfoBarDelegate* Create(InfoBarService* infobar_service, int n_popups); |
+ virtual ~PopupBlockedInfoBarDelegate(); |
+ |
+ // ConfirmInfoBarDelegate: |
+ virtual string16 GetMessageText() const OVERRIDE; |
+ virtual int GetButtons() const OVERRIDE; |
+ virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
+ virtual int GetIconID() const OVERRIDE; |
+ virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() OVERRIDE; |
+ virtual bool Accept() OVERRIDE; |
+ |
+ |
+ private: |
+ PopupBlockedInfoBarDelegate(InfoBarService* infobar_service, int n_popups); |
+ int n_popups_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_ |