Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Side by Side Diff: chrome/browser/plugin_installer.h

Issue 10837125: Revert 149794 - DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1228/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698