| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 bool IsBackgroundPageReady(const extensions::Extension* extension) const; | 248 bool IsBackgroundPageReady(const extensions::Extension* extension) const; |
| 249 void SetBackgroundPageReady(const extensions::Extension* extension); | 249 void SetBackgroundPageReady(const extensions::Extension* extension); |
| 250 | 250 |
| 251 // Getter and setter for the flag that specifies whether the extension is | 251 // Getter and setter for the flag that specifies whether the extension is |
| 252 // being upgraded. | 252 // being upgraded. |
| 253 bool IsBeingUpgraded(const extensions::Extension* extension) const; | 253 bool IsBeingUpgraded(const extensions::Extension* extension) const; |
| 254 void SetBeingUpgraded(const extensions::Extension* extension, bool value); | 254 void SetBeingUpgraded(const extensions::Extension* extension, bool value); |
| 255 | 255 |
| 256 // Getter and setter for the flag that specifies whether the extension is | 256 // Getter and setter for the flag that specifies whether the extension is |
| 257 // being reloaded. | 257 // being reloaded. |
| 258 bool IsBeingReloaded(const std::string& extension_name) const; | 258 bool IsBeingReloaded(const std::string& extension_id) const; |
| 259 void SetBeingReloaded(const std::string& extension_id, bool value); | 259 void SetBeingReloaded(const std::string& extension_id, bool value); |
| 260 | 260 |
| 261 // Getter and setter for the flag that specifies if the extension has used | 261 // Getter and setter for the flag that specifies if the extension has used |
| 262 // the webrequest API. | 262 // the webrequest API. |
| 263 // TODO(mpcomplete): remove. http://crbug.com/100411 | 263 // TODO(mpcomplete): remove. http://crbug.com/100411 |
| 264 bool HasUsedWebRequest(const extensions::Extension* extension) const; | 264 bool HasUsedWebRequest(const extensions::Extension* extension) const; |
| 265 void SetHasUsedWebRequest(const extensions::Extension* extension, bool value); | 265 void SetHasUsedWebRequest(const extensions::Extension* extension, bool value); |
| 266 | 266 |
| 267 // Initialize and start all installed extensions. | 267 // Initialize and start all installed extensions. |
| 268 void Init(); | 268 void Init(); |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 #endif | 962 #endif |
| 963 | 963 |
| 964 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 964 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 965 InstallAppsWithUnlimtedStorage); | 965 InstallAppsWithUnlimtedStorage); |
| 966 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 966 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 967 InstallAppsAndCheckStorageProtection); | 967 InstallAppsAndCheckStorageProtection); |
| 968 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 968 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 969 }; | 969 }; |
| 970 | 970 |
| 971 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 971 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |