OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PLUGIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Call UpdatePluginListWithNaClModules() after registering or unregistering | 49 // Call UpdatePluginListWithNaClModules() after registering or unregistering |
50 // a NaCl module to see those changes reflected in the PluginList. | 50 // a NaCl module to see those changes reflected in the PluginList. |
51 void UpdatePluginListWithNaClModules(); | 51 void UpdatePluginListWithNaClModules(); |
52 | 52 |
53 extensions::NaClModuleInfo::List::iterator FindNaClModule(const GURL& url); | 53 extensions::NaClModuleInfo::List::iterator FindNaClModule(const GURL& url); |
54 | 54 |
55 #endif // !defined(DISABLE_NACL) | 55 #endif // !defined(DISABLE_NACL) |
56 | 56 |
57 // ExtensionRegistryObserver implementation. | 57 // ExtensionRegistryObserver implementation. |
58 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, | 58 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, |
59 const Extension* extension) OVERRIDE; | 59 const Extension* extension) override; |
60 virtual void OnExtensionUnloaded( | 60 virtual void OnExtensionUnloaded( |
61 content::BrowserContext* browser_context, | 61 content::BrowserContext* browser_context, |
62 const Extension* extension, | 62 const Extension* extension, |
63 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 63 UnloadedExtensionInfo::Reason reason) override; |
64 | 64 |
65 // BrowserContextKeyedAPI implementation. | 65 // BrowserContextKeyedAPI implementation. |
66 static const char* service_name() { return "PluginManager"; } | 66 static const char* service_name() { return "PluginManager"; } |
67 static const bool kServiceIsNULLWhileTesting = true; | 67 static const bool kServiceIsNULLWhileTesting = true; |
68 | 68 |
69 extensions::NaClModuleInfo::List nacl_module_list_; | 69 extensions::NaClModuleInfo::List nacl_module_list_; |
70 | 70 |
71 Profile* profile_; | 71 Profile* profile_; |
72 | 72 |
73 // Listen to extension load, unloaded notifications. | 73 // Listen to extension load, unloaded notifications. |
74 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 74 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
75 extension_registry_observer_; | 75 extension_registry_observer_; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace extensions | 78 } // namespace extensions |
79 | 79 |
80 #endif // CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ | 80 #endif // CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ |
OLD | NEW |