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 | 51 virtual void OnDownloadDestroyed(content::DownloadItem* download) OVERRIDE; |
52 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; | |
53 | 52 |
54 void AddObserver(PluginInstallerObserver* observer); | 53 void AddObserver(PluginInstallerObserver* observer); |
55 void RemoveObserver(PluginInstallerObserver* observer); | 54 void RemoveObserver(PluginInstallerObserver* observer); |
56 | 55 |
57 void AddWeakObserver(WeakPluginInstallerObserver* observer); | 56 void AddWeakObserver(WeakPluginInstallerObserver* observer); |
58 void RemoveWeakObserver(WeakPluginInstallerObserver* observer); | 57 void RemoveWeakObserver(WeakPluginInstallerObserver* observer); |
59 | 58 |
60 // Unique identifier for the plug-in. | 59 // Unique identifier for the plug-in. |
61 const std::string& identifier() const { return identifier_; } | 60 const std::string& identifier() const { return identifier_; } |
62 | 61 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 std::map<Version, SecurityStatus, VersionComparator> versions_; | 114 std::map<Version, SecurityStatus, VersionComparator> versions_; |
116 | 115 |
117 InstallerState state_; | 116 InstallerState state_; |
118 ObserverList<PluginInstallerObserver> observers_; | 117 ObserverList<PluginInstallerObserver> observers_; |
119 ObserverList<WeakPluginInstallerObserver> weak_observers_; | 118 ObserverList<WeakPluginInstallerObserver> weak_observers_; |
120 | 119 |
121 DISALLOW_COPY_AND_ASSIGN(PluginInstaller); | 120 DISALLOW_COPY_AND_ASSIGN(PluginInstaller); |
122 }; | 121 }; |
123 | 122 |
124 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_ | 123 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_ |
OLD | NEW |