Home | History | Annotate | Download | only in plugins
      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.
      4 
      5 #include "chrome/browser/plugins/plugin_installer_observer.h"
      6 
      7 #include "chrome/browser/plugins/plugin_installer.h"
      8 
      9 PluginInstallerObserver::PluginInstallerObserver(PluginInstaller* installer)
     10     : installer_(installer) {
     11   installer->AddObserver(this);
     12 }
     13 
     14 PluginInstallerObserver::~PluginInstallerObserver() {
     15   installer_->RemoveObserver(this);
     16 }
     17 
     18 void PluginInstallerObserver::DownloadStarted() {
     19 }
     20 
     21 void PluginInstallerObserver::DownloadFinished() {
     22 }
     23 
     24 void PluginInstallerObserver::DownloadError(const std::string& message) {
     25 }
     26 
     27 void PluginInstallerObserver::DownloadCancelled() {
     28 }
     29 
     30 WeakPluginInstallerObserver::WeakPluginInstallerObserver(
     31     PluginInstaller* installer) : PluginInstallerObserver(installer) {
     32   installer->AddWeakObserver(this);
     33 }
     34 
     35 WeakPluginInstallerObserver::~WeakPluginInstallerObserver() {
     36   installer()->RemoveWeakObserver(this);
     37 }
     38 
     39 void WeakPluginInstallerObserver::OnlyWeakObserversLeft() {
     40 }
     41