| 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_EXTENSIONS_USER_SCRIPT_LISTENER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // content::NotificationObserver | 106 // content::NotificationObserver |
| 107 void Observe(int type, | 107 void Observe(int type, |
| 108 const content::NotificationSource& source, | 108 const content::NotificationSource& source, |
| 109 const content::NotificationDetails& details) override; | 109 const content::NotificationDetails& details) override; |
| 110 | 110 |
| 111 // ExtensionRegistryObserver: | 111 // ExtensionRegistryObserver: |
| 112 void OnExtensionLoaded(content::BrowserContext* browser_context, | 112 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 113 const Extension* extension) override; | 113 const Extension* extension) override; |
| 114 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 114 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 115 const Extension* extension, | 115 const Extension* extension, |
| 116 UnloadedExtensionInfo::Reason reason) override; | 116 UnloadedExtensionReason reason) override; |
| 117 void OnShutdown(ExtensionRegistry* registry) override; | 117 void OnShutdown(ExtensionRegistry* registry) override; |
| 118 | 118 |
| 119 ScopedObserver<extensions::ExtensionRegistry, | 119 ScopedObserver<extensions::ExtensionRegistry, |
| 120 extensions::ExtensionRegistryObserver> | 120 extensions::ExtensionRegistryObserver> |
| 121 extension_registry_observer_; | 121 extension_registry_observer_; |
| 122 | 122 |
| 123 content::NotificationRegistrar registrar_; | 123 content::NotificationRegistrar registrar_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(UserScriptListener); | 125 DISALLOW_COPY_AND_ASSIGN(UserScriptListener); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace extensions | 128 } // namespace extensions |
| 129 | 129 |
| 130 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ | 130 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ |
| OLD | NEW |