BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / plugins / plugin_installer_observer.cc
blobbf98d7da16f54bd28d116b0e6964192f30f362ed
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
3 // found in the LICENSE file.
5 #include "chrome/browser/plugins/plugin_installer_observer.h"
7 #include "chrome/browser/plugins/plugin_installer.h"
9 PluginInstallerObserver::PluginInstallerObserver(PluginInstaller* installer)
10 : installer_(installer) {
11 installer->AddObserver(this);
14 PluginInstallerObserver::~PluginInstallerObserver() {
15 installer_->RemoveObserver(this);
18 void PluginInstallerObserver::DownloadStarted() {
21 void PluginInstallerObserver::DownloadFinished() {
24 void PluginInstallerObserver::DownloadError(const std::string& message) {
27 void PluginInstallerObserver::DownloadCancelled() {
30 WeakPluginInstallerObserver::WeakPluginInstallerObserver(
31 PluginInstaller* installer) : PluginInstallerObserver(installer) {
32 installer->AddWeakObserver(this);
35 WeakPluginInstallerObserver::~WeakPluginInstallerObserver() {
36 installer()->RemoveWeakObserver(this);
39 void WeakPluginInstallerObserver::OnlyWeakObserversLeft() {