This source file includes following definitions.
- DownloadStarted
- DownloadFinished
- DownloadError
- DownloadCancelled
- OnlyWeakObserversLeft
#include "chrome/browser/plugins/plugin_installer_observer.h"
#include "chrome/browser/plugins/plugin_installer.h"
PluginInstallerObserver::PluginInstallerObserver(PluginInstaller* installer)
: installer_(installer) {
installer->AddObserver(this);
}
PluginInstallerObserver::~PluginInstallerObserver() {
installer_->RemoveObserver(this);
}
void PluginInstallerObserver::DownloadStarted() {
}
void PluginInstallerObserver::DownloadFinished() {
}
void PluginInstallerObserver::DownloadError(const std::string& message) {
}
void PluginInstallerObserver::DownloadCancelled() {
}
WeakPluginInstallerObserver::WeakPluginInstallerObserver(
PluginInstaller* installer) : PluginInstallerObserver(installer) {
installer->AddWeakObserver(this);
}
WeakPluginInstallerObserver::~WeakPluginInstallerObserver() {
installer()->RemoveWeakObserver(this);
}
void WeakPluginInstallerObserver::OnlyWeakObserversLeft() {
}