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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 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 139908f9653bba1f44c4762e291765b9b831d3e4..197d502a35731db4850c2212ba7252236ae12473 100644
--- a/chrome/browser/infobars/insecure_content_infobar_delegate.h
+++ b/chrome/browser/infobars/insecure_content_infobar_delegate.h
@@ -5,11 +5,13 @@
#ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "chrome/browser/infobars/content_confirm_infobar_delegate.h"
+
+class InfoBarService;
// Base class for delegates that show warnings on HTTPS pages which try to
// display or run insecure content.
-class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
+class InsecureContentInfoBarDelegate : public ContentConfirmInfoBarDelegate {
public:
enum InfoBarType {
DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked.
@@ -35,7 +37,8 @@ class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
NUM_EVENTS
};
- explicit InsecureContentInfoBarDelegate(InfoBarType type);
+ explicit InsecureContentInfoBarDelegate(content::WebContents* web_contents,
+ InfoBarType type);
virtual ~InsecureContentInfoBarDelegate();
// ConfirmInfoBarDelegate:

Powered by Google App Engine
This is Rietveld 408576698