blob: 32cba97bb6340fdc06780b5eac2a353d054700f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/plugin_installer_observer.h"
#include "chrome/browser/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() {
}
|