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

Unified Diff: chrome/browser/infobars/insecure_content_infobar_delegate.h

Issue 826553003: Remove dead IPC message ChromeViewHostMsg_DidBlockRunningInsecureContent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/infobars/insecure_content_infobar_delegate.h
diff --git a/chrome/browser/infobars/insecure_content_infobar_delegate.h b/chrome/browser/infobars/insecure_content_infobar_delegate.h
index eb59556f707300e987670918eb548cf9578bf455..6544ea1b7e1ff4818c0b30a7d332a4a12e3db1f8 100644
--- a/chrome/browser/infobars/insecure_content_infobar_delegate.h
+++ b/chrome/browser/infobars/insecure_content_infobar_delegate.h
@@ -13,16 +13,9 @@ class InfoBarService;
// display or run insecure content.
class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
- enum InfoBarType {
- DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked.
- RUN, // Shown when "active" content (e.g. script) has been blocked.
- };
-
- // Depending on the |type| requested and whether an insecure content infobar
- // is already present in |infobar_service|, may do nothing; otherwise, creates
- // an insecure content infobar and delegate and either adds the infobar to
- // |infobar_service| or replaces the existing infobar.
- static void Create(InfoBarService* infobar_service, InfoBarType type);
+ // Creates an insecure content infobar and delegate and adds the infobar to
+ // |infobar_service|, replacing any existing insecure content infobar.
+ static void Create(InfoBarService* infobar_service);
private:
enum HistogramEvents {
@@ -30,14 +23,10 @@ class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
DISPLAY_USER_OVERRIDE, // User clicked allow anyway button.
DISPLAY_USER_DID_NOT_LOAD, // User clicked the don't load button.
DISPLAY_INFOBAR_DISMISSED, // User clicked close button.
- RUN_INFOBAR_SHOWN,
- RUN_USER_OVERRIDE,
- RUN_USER_DID_NOT_LOAD,
- RUN_INFOBAR_DISMISSED,
NUM_EVENTS
};
- explicit InsecureContentInfoBarDelegate(InfoBarType type);
+ InsecureContentInfoBarDelegate();
~InsecureContentInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
@@ -50,9 +39,7 @@ class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
base::string16 GetLinkText() const override;
bool LinkClicked(WindowOpenDisposition disposition) override;
- InfoBarType type_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate);
+ DISALLOW_COPY_AND_ASSIGN(InsecureContentInfoBarDelegate);
};
#endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/browser/infobars/infobar_service.cc ('k') | chrome/browser/infobars/insecure_content_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698