| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTENSIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 void LoadInstalledExtension( | 246 void LoadInstalledExtension( |
| 247 DictionaryValue* manifest, const std::string& id, | 247 DictionaryValue* manifest, const std::string& id, |
| 248 const FilePath& path, Extension::Location location); | 248 const FilePath& path, Extension::Location location); |
| 249 | 249 |
| 250 // Handles sending notification that |extension| was loaded. | 250 // Handles sending notification that |extension| was loaded. |
| 251 void NotifyExtensionLoaded(Extension* extension); | 251 void NotifyExtensionLoaded(Extension* extension); |
| 252 | 252 |
| 253 // Handles sending notification that |extension| was unloaded. | 253 // Handles sending notification that |extension| was unloaded. |
| 254 void NotifyExtensionUnloaded(Extension* extension); | 254 void NotifyExtensionUnloaded(Extension* extension); |
| 255 | 255 |
| 256 // Helper that updates the active extension list used for crash reporting. | |
| 257 void UpdateActiveExtensionsInCrashReporter(); | |
| 258 | |
| 259 // The profile this ExtensionsService is part of. | 256 // The profile this ExtensionsService is part of. |
| 260 Profile* profile_; | 257 Profile* profile_; |
| 261 | 258 |
| 262 // Preferences for the owning profile. | 259 // Preferences for the owning profile. |
| 263 scoped_ptr<ExtensionPrefs> extension_prefs_; | 260 scoped_ptr<ExtensionPrefs> extension_prefs_; |
| 264 | 261 |
| 265 // The current list of installed extensions. | 262 // The current list of installed extensions. |
| 266 ExtensionList extensions_; | 263 ExtensionList extensions_; |
| 267 | 264 |
| 268 // The list of installed extensions that have been disabled. | 265 // The list of installed extensions that have been disabled. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 385 |
| 389 // A map of all external extension providers. | 386 // A map of all external extension providers. |
| 390 typedef std::map<Extension::Location, | 387 typedef std::map<Extension::Location, |
| 391 linked_ptr<ExternalExtensionProvider> > ProviderMap; | 388 linked_ptr<ExternalExtensionProvider> > ProviderMap; |
| 392 ProviderMap external_extension_providers_; | 389 ProviderMap external_extension_providers_; |
| 393 | 390 |
| 394 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 391 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 395 }; | 392 }; |
| 396 | 393 |
| 397 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 394 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |