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_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 const content::NotificationSource& source, | 109 const content::NotificationSource& source, |
110 const content::NotificationDetails& details) OVERRIDE; | 110 const content::NotificationDetails& details) OVERRIDE; |
111 | 111 |
112 // ExtensionRegistryObserver implementation. | 112 // ExtensionRegistryObserver implementation. |
113 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, | 113 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, |
114 const Extension* extension) OVERRIDE; | 114 const Extension* extension) OVERRIDE; |
115 virtual void OnExtensionUnloaded( | 115 virtual void OnExtensionUnloaded( |
116 content::BrowserContext* browser_context, | 116 content::BrowserContext* browser_context, |
117 const Extension* extension, | 117 const Extension* extension, |
118 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 118 UnloadedExtensionInfo::Reason reason) OVERRIDE; |
| 119 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 120 const Extension* extension) OVERRIDE; |
119 | 121 |
120 // Iterates over all registries, and calls |notification_callback| on them | 122 // Iterates over all registries, and calls |notification_callback| on them |
121 // with |extension_id| as the argument. If a registry lives on a different | 123 // with |extension_id| as the argument. If a registry lives on a different |
122 // thread, the call is posted to that thread, so no guarantee of synchronous | 124 // thread, the call is posted to that thread, so no guarantee of synchronous |
123 // processing. | 125 // processing. |
124 void NotifyRegistriesHelper( | 126 void NotifyRegistriesHelper( |
125 void (RulesRegistry::*notification_callback)(const std::string&), | 127 void (RulesRegistry::*notification_callback)(const std::string&), |
126 const std::string& extension_id); | 128 const std::string& extension_id); |
127 | 129 |
128 // BrowserContextKeyedAPI implementation. | 130 // BrowserContextKeyedAPI implementation. |
(...skipping 19 matching lines...) Expand all Loading... |
148 extension_registry_observer_; | 150 extension_registry_observer_; |
149 | 151 |
150 Profile* profile_; | 152 Profile* profile_; |
151 | 153 |
152 DISALLOW_COPY_AND_ASSIGN(RulesRegistryService); | 154 DISALLOW_COPY_AND_ASSIGN(RulesRegistryService); |
153 }; | 155 }; |
154 | 156 |
155 } // namespace extensions | 157 } // namespace extensions |
156 | 158 |
157 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ | 159 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ |
OLD | NEW |