Index: chrome/browser/pepper_broker_infobar_delegate.h |
=================================================================== |
--- chrome/browser/pepper_broker_infobar_delegate.h (revision 175396) |
+++ chrome/browser/pepper_broker_infobar_delegate.h (working copy) |
@@ -22,14 +22,15 @@ |
// by storing a content setting for the site. |
class PepperBrokerInfoBarDelegate : public ConfirmInfoBarDelegate { |
public: |
- virtual ~PepperBrokerInfoBarDelegate(); |
+ // 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 |
+ // broker delegate and adds it to the InfoBarService associated with |
+ // |web_contents|. |
+ static void Create(content::WebContents* web_contents, |
+ const GURL& url, |
+ const FilePath& plugin_path, |
+ const base::Callback<void(bool)>& callback); |
- static void Show( |
- content::WebContents* web_contents, |
- const GURL& url, |
- const FilePath& plugin_path, |
- const base::Callback<void(bool)>& callback); |
- |
// ConfirmInfoBarDelegate: |
virtual string16 GetMessageText() const OVERRIDE; |
virtual int GetButtons() const OVERRIDE; |
@@ -48,6 +49,7 @@ |
const std::string& languages, |
HostContentSettingsMap* content_settings, |
const base::Callback<void(bool)>& callback); |
+ virtual ~PepperBrokerInfoBarDelegate(); |
void DispatchCallback(bool result); |