OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PLUGIN_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_INSTALLER_H_ |
6 #define CHROME_BROWSER_PLUGIN_INSTALLER_H_ | 6 #define CHROME_BROWSER_PLUGIN_INSTALLER_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 }; | 41 }; |
42 | 42 |
43 PluginInstaller(const std::string& identifier, | 43 PluginInstaller(const std::string& identifier, |
44 const string16& name, | 44 const string16& name, |
45 bool url_for_display, | 45 bool url_for_display, |
46 const GURL& plugin_url, | 46 const GURL& plugin_url, |
47 const GURL& help_url); | 47 const GURL& help_url); |
48 virtual ~PluginInstaller(); | 48 virtual ~PluginInstaller(); |
49 | 49 |
50 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; | 50 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; |
51 virtual void OnDownloadDestroyed(content::DownloadItem* download) OVERRIDE; | 51 |
| 52 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; |
52 | 53 |
53 void AddObserver(PluginInstallerObserver* observer); | 54 void AddObserver(PluginInstallerObserver* observer); |
54 void RemoveObserver(PluginInstallerObserver* observer); | 55 void RemoveObserver(PluginInstallerObserver* observer); |
55 | 56 |
56 void AddWeakObserver(WeakPluginInstallerObserver* observer); | 57 void AddWeakObserver(WeakPluginInstallerObserver* observer); |
57 void RemoveWeakObserver(WeakPluginInstallerObserver* observer); | 58 void RemoveWeakObserver(WeakPluginInstallerObserver* observer); |
58 | 59 |
59 // Unique identifier for the plug-in. | 60 // Unique identifier for the plug-in. |
60 const std::string& identifier() const { return identifier_; } | 61 const std::string& identifier() const { return identifier_; } |
61 | 62 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 std::map<Version, SecurityStatus, VersionComparator> versions_; | 115 std::map<Version, SecurityStatus, VersionComparator> versions_; |
115 | 116 |
116 InstallerState state_; | 117 InstallerState state_; |
117 ObserverList<PluginInstallerObserver> observers_; | 118 ObserverList<PluginInstallerObserver> observers_; |
118 ObserverList<WeakPluginInstallerObserver> weak_observers_; | 119 ObserverList<WeakPluginInstallerObserver> weak_observers_; |
119 | 120 |
120 DISALLOW_COPY_AND_ASSIGN(PluginInstaller); | 121 DISALLOW_COPY_AND_ASSIGN(PluginInstaller); |
121 }; | 122 }; |
122 | 123 |
123 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_ | 124 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_ |
OLD | NEW |