diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 13:20:36 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-10 13:20:36 +0000 |
commit | 1a86f75dffd931514c1db92725c47e727682de5a (patch) | |
tree | 5e200670869a2825567c645fa865422c2193287c /chrome/browser/plugin_installer_observer.cc | |
parent | ac2d85013a3f8908cefc12fca0dcb40a526e6c39 (diff) | |
download | chromium_src-1a86f75dffd931514c1db92725c47e727682de5a.zip chromium_src-1a86f75dffd931514c1db92725c47e727682de5a.tar.gz chromium_src-1a86f75dffd931514c1db92725c47e727682de5a.tar.bz2 |
Use regular download mechanism to download and open plug-in installer files.
As downloads can now be cancelled as well, add a DownloadCancelled callback to PluginInstallerObserver, and rename the others to be consistent in naming.
BUG=110484
TEST=none
Review URL: http://codereview.chromium.org/9370018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_installer_observer.cc')
-rw-r--r-- | chrome/browser/plugin_installer_observer.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/plugin_installer_observer.cc b/chrome/browser/plugin_installer_observer.cc index 419f60e..32cba97 100644 --- a/chrome/browser/plugin_installer_observer.cc +++ b/chrome/browser/plugin_installer_observer.cc @@ -15,15 +15,18 @@ PluginInstallerObserver::~PluginInstallerObserver() { installer_->RemoveObserver(this); } -void PluginInstallerObserver::DidStartDownload() { +void PluginInstallerObserver::DownloadStarted() { } -void PluginInstallerObserver::DidFinishDownload() { +void PluginInstallerObserver::DownloadFinished() { } void PluginInstallerObserver::DownloadError(const std::string& message) { } +void PluginInstallerObserver::DownloadCancelled() { +} + WeakPluginInstallerObserver::WeakPluginInstallerObserver( PluginInstaller* installer) : PluginInstallerObserver(installer) { installer->AddWeakObserver(this); |