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_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // TODO(yoz): remove InitEventRoutersAterImport. | 279 // TODO(yoz): remove InitEventRoutersAterImport. |
280 void InitEventRoutersAfterImport(); | 280 void InitEventRoutersAfterImport(); |
281 void RegisterForImportFinished(); | 281 void RegisterForImportFinished(); |
282 | 282 |
283 // Complete some initialization after being notified that import has finished. | 283 // Complete some initialization after being notified that import has finished. |
284 void InitAfterImport(); | 284 void InitAfterImport(); |
285 | 285 |
286 // Start up the extension event routers. | 286 // Start up the extension event routers. |
287 void InitEventRouters(); | 287 void InitEventRouters(); |
288 | 288 |
| 289 // Called when the associated Profile is going to be destroyed. |
| 290 void Shutdown(); |
| 291 |
289 // Look up an extension by ID. Does not include terminated | 292 // Look up an extension by ID. Does not include terminated |
290 // extensions. | 293 // extensions. |
291 virtual const extensions::Extension* GetExtensionById( | 294 virtual const extensions::Extension* GetExtensionById( |
292 const std::string& id, bool include_disabled) const OVERRIDE; | 295 const std::string& id, bool include_disabled) const OVERRIDE; |
293 | 296 |
294 // Looks up a terminated (crashed) extension by ID. | 297 // Looks up a terminated (crashed) extension by ID. |
295 const extensions::Extension* | 298 const extensions::Extension* |
296 GetTerminatedExtension(const std::string& id) const; | 299 GetTerminatedExtension(const std::string& id) const; |
297 | 300 |
298 // Looks up an extension by ID, regardless of whether it's enabled, | 301 // Looks up an extension by ID, regardless of whether it's enabled, |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 #endif | 864 #endif |
862 | 865 |
863 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 866 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
864 InstallAppsWithUnlimtedStorage); | 867 InstallAppsWithUnlimtedStorage); |
865 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 868 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
866 InstallAppsAndCheckStorageProtection); | 869 InstallAppsAndCheckStorageProtection); |
867 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 870 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
868 }; | 871 }; |
869 | 872 |
870 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 873 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |