| Index: chrome/browser/plugin_installer_infobar_delegate.h
|
| diff --git a/chrome/browser/plugin_installer_infobar_delegate.h b/chrome/browser/plugin_installer_infobar_delegate.h
|
| index 3d2f68fa0db2d94be3705e61dec92b1d59762501..0ae895fcdd3784d88225150d93f4d23c8d542be8 100644
|
| --- a/chrome/browser/plugin_installer_infobar_delegate.h
|
| +++ b/chrome/browser/plugin_installer_infobar_delegate.h
|
| @@ -7,16 +7,20 @@
|
| #pragma once
|
|
|
| #include "base/callback.h"
|
| +#include "chrome/browser/plugin_installer_observer.h"
|
| #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
|
| #include "googleurl/src/gurl.h"
|
|
|
| // The main purpose for this class is to popup/close the infobar when there is
|
| // a missing plugin.
|
| -class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate {
|
| +class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate,
|
| + public PluginInstallerObserver {
|
| public:
|
| // Shows an infobar asking whether to install the plugin with the name
|
| // |plugin_name|. When the user accepts, |callback| is called.
|
| - PluginInstallerInfoBarDelegate(InfoBarTabHelper* infobar_helper,
|
| + // If |installer| is not NULL, registers itself as its observer.
|
| + PluginInstallerInfoBarDelegate(PluginInstaller* installer,
|
| + InfoBarTabHelper* infobar_helper,
|
| const string16& plugin_name,
|
| const GURL& learn_more_url,
|
| const base::Closure& callback);
|
| @@ -35,6 +39,9 @@ class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate {
|
| virtual string16 GetLinkText() const OVERRIDE;
|
| virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
|
|
|
| + // PluginInstallerObserver:
|
| + virtual void DidStartDownload() OVERRIDE;
|
| +
|
| string16 plugin_name_;
|
| GURL learn_more_url_;
|
| base::Closure callback_;
|
|
|