| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_PLUGIN_INSTALLER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_INSTALLER_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 class PluginInstaller; |
| 10 |
| 11 class PluginInstallerObserver { |
| 12 public: |
| 13 explicit PluginInstallerObserver(PluginInstaller* installer); |
| 14 virtual ~PluginInstallerObserver(); |
| 15 |
| 16 protected: |
| 17 PluginInstaller* installer() { return installer_; } |
| 18 |
| 19 private: |
| 20 friend class PluginInstaller; |
| 21 |
| 22 virtual void DidStartDownload(); |
| 23 virtual void DidFinishDownload(); |
| 24 virtual void DidFinishInstallation(); |
| 25 |
| 26 // Weak pointer; Owned by PluginFinder, which is a singleton. |
| 27 PluginInstaller* installer_; |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_PLUGIN_INSTALLER_OBSERVER_H_ |
| OLD | NEW |