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

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

Issue 10704026: Reland DownloadItem::Observer::OnDownloadDestroyed() replaces DownloadItem::REMOVING (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 }; 42 };
43 43
44 PluginInstaller(const std::string& identifier, 44 PluginInstaller(const std::string& identifier,
45 const string16& name, 45 const string16& name,
46 bool url_for_display, 46 bool url_for_display,
47 const GURL& plugin_url, 47 const GURL& plugin_url,
48 const GURL& help_url); 48 const GURL& help_url);
49 virtual ~PluginInstaller(); 49 virtual ~PluginInstaller();
50 50
51 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; 51 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
52 52 virtual void OnDownloadDestructed(content::DownloadItem* download) OVERRIDE;
53 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE;
54 53
55 void AddObserver(PluginInstallerObserver* observer); 54 void AddObserver(PluginInstallerObserver* observer);
56 void RemoveObserver(PluginInstallerObserver* observer); 55 void RemoveObserver(PluginInstallerObserver* observer);
57 56
58 void AddWeakObserver(WeakPluginInstallerObserver* observer); 57 void AddWeakObserver(WeakPluginInstallerObserver* observer);
59 void RemoveWeakObserver(WeakPluginInstallerObserver* observer); 58 void RemoveWeakObserver(WeakPluginInstallerObserver* observer);
60 59
61 // Unique identifier for the plug-in. 60 // Unique identifier for the plug-in.
62 const std::string& identifier() const { return identifier_; } 61 const std::string& identifier() const { return identifier_; }
63 62
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 std::map<Version, SecurityStatus, VersionComparator> versions_; 115 std::map<Version, SecurityStatus, VersionComparator> versions_;
117 116
118 InstallerState state_; 117 InstallerState state_;
119 ObserverList<PluginInstallerObserver> observers_; 118 ObserverList<PluginInstallerObserver> observers_;
120 ObserverList<WeakPluginInstallerObserver> weak_observers_; 119 ObserverList<WeakPluginInstallerObserver> weak_observers_;
121 120
122 DISALLOW_COPY_AND_ASSIGN(PluginInstaller); 121 DISALLOW_COPY_AND_ASSIGN(PluginInstaller);
123 }; 122 };
124 123
125 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_ 124 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698