| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_OBSERVER_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 class PluginInstaller; | 10 class PluginInstaller; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Weak pointer; Owned by PluginFinder, which is a singleton. | 28 // Weak pointer; Owned by PluginFinder, which is a singleton. |
| 29 PluginInstaller* installer_; | 29 PluginInstaller* installer_; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 // A WeakPluginInstallerObserver is like a weak pointer to the installer, in the | 32 // A WeakPluginInstallerObserver is like a weak pointer to the installer, in the |
| 33 // sense that if only weak observers are left, we don't need to show | 33 // sense that if only weak observers are left, we don't need to show |
| 34 // installation UI anymore. | 34 // installation UI anymore. |
| 35 class WeakPluginInstallerObserver : public PluginInstallerObserver { | 35 class WeakPluginInstallerObserver : public PluginInstallerObserver { |
| 36 public: | 36 public: |
| 37 explicit WeakPluginInstallerObserver(PluginInstaller* installer); | 37 explicit WeakPluginInstallerObserver(PluginInstaller* installer); |
| 38 virtual ~WeakPluginInstallerObserver(); | 38 ~WeakPluginInstallerObserver() override; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 friend class PluginInstaller; | 41 friend class PluginInstaller; |
| 42 | 42 |
| 43 virtual void OnlyWeakObserversLeft(); | 43 virtual void OnlyWeakObserversLeft(); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_OBSERVER_H_ | 46 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_INSTALLER_OBSERVER_H_ |
| OLD | NEW |