| 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 <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // TODO(mpcomplete): remove. http://crbug.com/100411 | 275 // TODO(mpcomplete): remove. http://crbug.com/100411 |
| 276 bool HasUsedWebRequest(const Extension* extension); | 276 bool HasUsedWebRequest(const Extension* extension); |
| 277 void SetHasUsedWebRequest(const Extension* extension, bool value); | 277 void SetHasUsedWebRequest(const Extension* extension, bool value); |
| 278 | 278 |
| 279 // Getter for the extension's runtime data PropertyBag. | 279 // Getter for the extension's runtime data PropertyBag. |
| 280 base::PropertyBag* GetPropertyBag(const Extension* extension); | 280 base::PropertyBag* GetPropertyBag(const Extension* extension); |
| 281 | 281 |
| 282 // Initialize and start all installed extensions. | 282 // Initialize and start all installed extensions. |
| 283 void Init(); | 283 void Init(); |
| 284 | 284 |
| 285 // Initialize the event routers after import has finished. | 285 // To delay some initialization until after import has finished, register |
| 286 // for the notification. |
| 287 // TODO(yoz): remove InitEventRoutersAterImport. |
| 286 void InitEventRoutersAfterImport(); | 288 void InitEventRoutersAfterImport(); |
| 289 void RegisterForImportFinished(); |
| 290 |
| 291 // Complete some initialization after being notified that import has finished. |
| 292 void InitAfterImport(); |
| 287 | 293 |
| 288 // Start up the extension event routers. | 294 // Start up the extension event routers. |
| 289 void InitEventRouters(); | 295 void InitEventRouters(); |
| 290 | 296 |
| 291 // Look up an extension by ID. Does not include terminated | 297 // Look up an extension by ID. Does not include terminated |
| 292 // extensions. | 298 // extensions. |
| 293 virtual const Extension* GetExtensionById( | 299 virtual const Extension* GetExtensionById( |
| 294 const std::string& id, bool include_disabled) const OVERRIDE; | 300 const std::string& id, bool include_disabled) const OVERRIDE; |
| 295 | 301 |
| 296 // Looks up a terminated (crashed) extension by ID. | 302 // Looks up a terminated (crashed) extension by ID. |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 ImageLoadingTracker tracker_; | 860 ImageLoadingTracker tracker_; |
| 855 | 861 |
| 856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 862 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 857 InstallAppsWithUnlimtedStorage); | 863 InstallAppsWithUnlimtedStorage); |
| 858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 864 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 859 InstallAppsAndCheckStorageProtection); | 865 InstallAppsAndCheckStorageProtection); |
| 860 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 866 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 861 }; | 867 }; |
| 862 | 868 |
| 863 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 869 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |