| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // being upgraded. | 236 // being upgraded. |
| 237 bool IsBeingUpgraded(const Extension* extension); | 237 bool IsBeingUpgraded(const Extension* extension); |
| 238 void SetBeingUpgraded(const Extension* extension, bool value); | 238 void SetBeingUpgraded(const Extension* extension, bool value); |
| 239 | 239 |
| 240 // Getter for the extension's runtime data PropertyBag. | 240 // Getter for the extension's runtime data PropertyBag. |
| 241 PropertyBag* GetPropertyBag(const Extension* extension); | 241 PropertyBag* GetPropertyBag(const Extension* extension); |
| 242 | 242 |
| 243 // Initialize and start all installed extensions. | 243 // Initialize and start all installed extensions. |
| 244 void Init(); | 244 void Init(); |
| 245 | 245 |
| 246 // Initialize the event routers after import has finished. |
| 247 void InitEventRoutersAfterImport(); |
| 248 |
| 246 // Start up the extension event routers. | 249 // Start up the extension event routers. |
| 247 void InitEventRouters(); | 250 void InitEventRouters(); |
| 248 | 251 |
| 249 // Look up an extension by ID. Does not include terminated | 252 // Look up an extension by ID. Does not include terminated |
| 250 // extensions. | 253 // extensions. |
| 251 virtual const Extension* GetExtensionById( | 254 virtual const Extension* GetExtensionById( |
| 252 const std::string& id, bool include_disabled) const OVERRIDE; | 255 const std::string& id, bool include_disabled) const OVERRIDE; |
| 253 | 256 |
| 254 // Looks up a terminated (crashed) extension by ID. | 257 // Looks up a terminated (crashed) extension by ID. |
| 255 const Extension* GetTerminatedExtension(const std::string& id) const; | 258 const Extension* GetTerminatedExtension(const std::string& id) const; |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 SyncBundle extension_sync_bundle_; | 791 SyncBundle extension_sync_bundle_; |
| 789 | 792 |
| 790 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 793 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 791 InstallAppsWithUnlimtedStorage); | 794 InstallAppsWithUnlimtedStorage); |
| 792 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 795 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 793 InstallAppsAndCheckStorageProtection); | 796 InstallAppsAndCheckStorageProtection); |
| 794 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 797 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 795 }; | 798 }; |
| 796 | 799 |
| 797 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 800 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |