| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ | 5 #ifndef EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ |
| 6 #define EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ | 6 #define EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/scoped_observer.h" | 8 #include "base/scoped_observer.h" |
| 9 #include "extensions/browser/extension_registry_observer.h" | 9 #include "extensions/browser/extension_registry_observer.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 private: | 26 private: |
| 27 class Waiter; | 27 class Waiter; |
| 28 | 28 |
| 29 // ExtensionRegistryObserver. | 29 // ExtensionRegistryObserver. |
| 30 virtual void OnExtensionWillBeInstalled( | 30 virtual void OnExtensionWillBeInstalled( |
| 31 content::BrowserContext* browser_context, | 31 content::BrowserContext* browser_context, |
| 32 const Extension* extension, | 32 const Extension* extension, |
| 33 bool is_update, | 33 bool is_update, |
| 34 bool from_ephemeral, | 34 bool from_ephemeral, |
| 35 const std::string& old_name) OVERRIDE; | 35 const std::string& old_name) OVERRIDE; |
| 36 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 36 virtual void OnExtensionUninstalled( |
| 37 const Extension* extension) OVERRIDE; | 37 content::BrowserContext* browser_context, |
| 38 const Extension* extension, |
| 39 extensions::UninstallReason reason) OVERRIDE; |
| 38 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, | 40 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 39 const Extension* extension) OVERRIDE; | 41 const Extension* extension) OVERRIDE; |
| 40 virtual void OnExtensionUnloaded( | 42 virtual void OnExtensionUnloaded( |
| 41 content::BrowserContext* browser_context, | 43 content::BrowserContext* browser_context, |
| 42 const Extension* extension, | 44 const Extension* extension, |
| 43 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 45 UnloadedExtensionInfo::Reason reason) OVERRIDE; |
| 44 | 46 |
| 45 scoped_ptr<Waiter> will_be_installed_waiter_; | 47 scoped_ptr<Waiter> will_be_installed_waiter_; |
| 46 scoped_ptr<Waiter> uninstalled_waiter_; | 48 scoped_ptr<Waiter> uninstalled_waiter_; |
| 47 scoped_ptr<Waiter> loaded_waiter_; | 49 scoped_ptr<Waiter> loaded_waiter_; |
| 48 scoped_ptr<Waiter> unloaded_waiter_; | 50 scoped_ptr<Waiter> unloaded_waiter_; |
| 49 | 51 |
| 50 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 52 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
| 51 extension_registry_observer_; | 53 extension_registry_observer_; |
| 52 | 54 |
| 53 std::string extension_id_; | 55 std::string extension_id_; |
| 54 | 56 |
| 55 DISALLOW_COPY_AND_ASSIGN(TestExtensionRegistryObserver); | 57 DISALLOW_COPY_AND_ASSIGN(TestExtensionRegistryObserver); |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace extensions | 60 } // namespace extensions |
| 59 | 61 |
| 60 #endif // EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ | 62 #endif // EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ |
| OLD | NEW |