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

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

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
===================================================================
--- chrome/browser/infobars/insecure_content_infobar_delegate.h (revision 175396)
+++ chrome/browser/infobars/insecure_content_infobar_delegate.h (working copy)
@@ -16,12 +16,12 @@
RUN, // Shown when "active" content (e.g. script) has been blocked.
};
- InsecureContentInfoBarDelegate(InfoBarService* infobar_service,
- InfoBarType type);
- virtual ~InsecureContentInfoBarDelegate();
+ // 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 delegate and either adds it to |infobar_service| or
+ // replaces the existing infobar delegate.
+ static void Create(InfoBarService* infobar_service, InfoBarType type);
- InfoBarType type() const { return type_; }
-
private:
enum HistogramEvents {
DISPLAY_INFOBAR_SHOWN = 0, // Infobar was displayed.
@@ -35,6 +35,10 @@
NUM_EVENTS
};
+ InsecureContentInfoBarDelegate(InfoBarService* infobar_service,
+ InfoBarType type);
+ virtual ~InsecureContentInfoBarDelegate();
+
// ConfirmInfoBarDelegate:
virtual void InfoBarDismissed() OVERRIDE;
virtual InsecureContentInfoBarDelegate*
« no previous file with comments | « chrome/browser/infobars/infobar_tab_helper.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