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* |