Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / android / content_settings / popup_blocked_infobar_delegate.h
blob66c98ebac139b815a0ad9cb31739ce960fe3284a
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"
10 class InfoBarService;
12 class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate {
13 public:
14 // Creates a popup blocked infobar and delegate and adds the infobar to
15 // |infobar_service|.
16 static void Create(InfoBarService* infobar_service, int num_popups);
18 virtual ~PopupBlockedInfoBarDelegate();
20 private:
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;
31 int num_popups_;
33 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate);
36 #endif // CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGATE_H_