summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_installer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/plugin_installer.h')
-rw-r--r--chrome/browser/plugin_installer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/plugin_installer.h b/chrome/browser/plugin_installer.h
index 514d919..6f76967 100644
--- a/chrome/browser/plugin_installer.h
+++ b/chrome/browser/plugin_installer.h
@@ -12,6 +12,7 @@
class FilePath;
class PluginInstallerObserver;
+class WeakPluginInstallerObserver;
namespace net {
class URLRequestContextGetter;
@@ -34,6 +35,9 @@ class PluginInstaller {
void AddObserver(PluginInstallerObserver* observer);
void RemoveObserver(PluginInstallerObserver* observer);
+ void AddWeakObserver(WeakPluginInstallerObserver* observer);
+ void RemoveWeakObserver(WeakPluginInstallerObserver* observer);
+
State state() const { return state_; }
// Unique identifier for the plug-in. Should be kept in sync with the
@@ -55,12 +59,17 @@ class PluginInstaller {
void StartInstalling(net::URLRequestContextGetter* request_context);
+ // Called when the browser opened the download URL in a new tab, to notify
+ // observers.
+ void DidOpenDownloadURL();
+
private:
void DidFinishDownload(const FilePath& downloaded_file);
void DownloadError(const std::string& msg);
State state_;
ObserverList<PluginInstallerObserver> observers_;
+ ObserverList<WeakPluginInstallerObserver> weak_observers_;
std::string identifier_;
GURL plugin_url_;