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

Unified Diff: chrome/browser/pepper_broker_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/pepper_broker_infobar_delegate.h
diff --git a/chrome/browser/pepper_broker_infobar_delegate.h b/chrome/browser/pepper_broker_infobar_delegate.h
index 8b157180f40e06e13736bfc19a1e5b6e5b762197..2c3174bc02b9469e9acdf3c810e1e04b46d825c6 100644
--- a/chrome/browser/pepper_broker_infobar_delegate.h
+++ b/chrome/browser/pepper_broker_infobar_delegate.h
@@ -7,7 +7,7 @@
#include "base/callback.h"
#include "base/files/file_path.h"
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "chrome/browser/infobars/content_confirm_infobar_delegate.h"
#include "url/gurl.h"
class HostContentSettingsMap;
@@ -21,7 +21,7 @@ class WebContents;
// Shows an infobar that asks the user whether a Pepper plug-in is allowed
// to connect to its (privileged) broker. The user decision is made "sticky"
// by storing a content setting for the site.
-class PepperBrokerInfoBarDelegate : public ConfirmInfoBarDelegate {
+class PepperBrokerInfoBarDelegate : public ContentConfirmInfoBarDelegate {
public:
// Determines whether the broker setting is allow, deny, or ask. In the first
// two cases, runs the callback directly. In the third, creates a pepper
@@ -33,7 +33,8 @@ class PepperBrokerInfoBarDelegate : public ConfirmInfoBarDelegate {
const base::Callback<void(bool)>& callback);
private:
- PepperBrokerInfoBarDelegate(const GURL& url,
+ PepperBrokerInfoBarDelegate(content::WebContents* web_contents,
+ const GURL& url,
const base::FilePath& plugin_path,
const std::string& languages,
HostContentSettingsMap* content_settings,

Powered by Google App Engine
This is Rietveld 408576698