| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGAT
E_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGAT
E_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGAT
E_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELEGAT
E_H_ |
| 7 | 7 |
| 8 #include "components/infobars/core/confirm_infobar_delegate.h" | 8 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 static void Create(content::WebContents* web_contents, int num_popups); | 21 static void Create(content::WebContents* web_contents, int num_popups); |
| 22 | 22 |
| 23 ~PopupBlockedInfoBarDelegate() override; | 23 ~PopupBlockedInfoBarDelegate() override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 PopupBlockedInfoBarDelegate(int num_popups, | 26 PopupBlockedInfoBarDelegate(int num_popups, |
| 27 const GURL& url, | 27 const GURL& url, |
| 28 HostContentSettingsMap* map); | 28 HostContentSettingsMap* map); |
| 29 | 29 |
| 30 // ConfirmInfoBarDelegate: | 30 // ConfirmInfoBarDelegate: |
| 31 std::string GetIdentifier() const override; |
| 31 int GetIconId() const override; | 32 int GetIconId() const override; |
| 32 PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() override; | 33 PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() override; |
| 33 base::string16 GetMessageText() const override; | 34 base::string16 GetMessageText() const override; |
| 34 int GetButtons() const override; | 35 int GetButtons() const override; |
| 35 base::string16 GetButtonLabel(InfoBarButton button) const override; | 36 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 36 bool Accept() override; | 37 bool Accept() override; |
| 37 | 38 |
| 38 int num_popups_; | 39 int num_popups_; |
| 39 GURL url_; | 40 GURL url_; |
| 40 HostContentSettingsMap* map_; | 41 HostContentSettingsMap* map_; |
| 41 bool can_show_popups_; | 42 bool can_show_popups_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 #endif // CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELE
GATE_H_ | 47 #endif // CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELE
GATE_H_ |
| OLD | NEW |