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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 // Getter and setter for the flag that specifies if the extension has used | 252 // Getter and setter for the flag that specifies if the extension has used |
253 // the webrequest API. | 253 // the webrequest API. |
254 // TODO(mpcomplete): remove. http://crbug.com/100411 | 254 // TODO(mpcomplete): remove. http://crbug.com/100411 |
255 bool HasUsedWebRequest(const extensions::Extension* extension) const; | 255 bool HasUsedWebRequest(const extensions::Extension* extension) const; |
256 void SetHasUsedWebRequest(const extensions::Extension* extension, bool value); | 256 void SetHasUsedWebRequest(const extensions::Extension* extension, bool value); |
257 | 257 |
258 // Initialize and start all installed extensions. | 258 // Initialize and start all installed extensions. |
259 void Init(); | 259 void Init(); |
260 | 260 |
261 // To delay some initialization until after import has finished, register | |
262 // for the notification. | |
263 // TODO(yoz): remove InitEventRoutersAterImport. | |
264 void InitEventRoutersAfterImport(); | |
265 void RegisterForImportFinished(); | |
266 | |
267 // Complete some initialization after being notified that import has finished. | |
268 void InitAfterImport(); | |
269 | |
270 // Start up the extension event routers. | 261 // Start up the extension event routers. |
271 void InitEventRouters(); | 262 void InitEventRouters(); |
272 | 263 |
273 // Called when the associated Profile is going to be destroyed. | 264 // Called when the associated Profile is going to be destroyed. |
274 void Shutdown(); | 265 void Shutdown(); |
275 | 266 |
276 // Look up an extension by ID. Does not include terminated | 267 // Look up an extension by ID. Does not include terminated |
277 // extensions. | 268 // extensions. |
278 virtual const extensions::Extension* GetExtensionById( | 269 virtual const extensions::Extension* GetExtensionById( |
279 const std::string& id, bool include_disabled) const OVERRIDE; | 270 const std::string& id, bool include_disabled) const OVERRIDE; |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 ObserverList<extensions::UpdateObserver, true> update_observers_; | 910 ObserverList<extensions::UpdateObserver, true> update_observers_; |
920 | 911 |
921 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 912 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
922 InstallAppsWithUnlimtedStorage); | 913 InstallAppsWithUnlimtedStorage); |
923 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 914 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
924 InstallAppsAndCheckStorageProtection); | 915 InstallAppsAndCheckStorageProtection); |
925 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 916 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
926 }; | 917 }; |
927 | 918 |
928 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 919 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |