Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "components/infobars/core/confirm_infobar_delegate.h" 9 #include "components/infobars/core/confirm_infobar_delegate.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 11 matching lines...) Expand all
22 static void Create(content::WebContents* web_contents, int num_popups); 22 static void Create(content::WebContents* web_contents, int num_popups);
23 23
24 ~PopupBlockedInfoBarDelegate() override; 24 ~PopupBlockedInfoBarDelegate() override;
25 25
26 private: 26 private:
27 PopupBlockedInfoBarDelegate(int num_popups, 27 PopupBlockedInfoBarDelegate(int num_popups,
28 const GURL& url, 28 const GURL& url,
29 HostContentSettingsMap* map); 29 HostContentSettingsMap* map);
30 30
31 // ConfirmInfoBarDelegate: 31 // ConfirmInfoBarDelegate:
32 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
32 int GetIconId() const override; 33 int GetIconId() const override;
33 PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() override; 34 PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() override;
34 base::string16 GetMessageText() const override; 35 base::string16 GetMessageText() const override;
35 int GetButtons() const override; 36 int GetButtons() const override;
36 base::string16 GetButtonLabel(InfoBarButton button) const override; 37 base::string16 GetButtonLabel(InfoBarButton button) const override;
37 bool Accept() override; 38 bool Accept() override;
38 39
39 int num_popups_; 40 int num_popups_;
40 GURL url_; 41 GURL url_;
41 HostContentSettingsMap* map_; 42 HostContentSettingsMap* map_;
42 bool can_show_popups_; 43 bool can_show_popups_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate); 45 DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate);
45 }; 46 };
46 47
47 #endif // CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELE GATE_H_ 48 #endif // CHROME_BROWSER_UI_ANDROID_CONTENT_SETTINGS_POPUP_BLOCKED_INFOBAR_DELE GATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698