| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 bool IsBeingReloaded(const std::string& extension_id) const; | 229 bool IsBeingReloaded(const std::string& extension_id) const; |
| 230 void SetBeingReloaded(const std::string& extension_id, bool value); | 230 void SetBeingReloaded(const std::string& extension_id, bool value); |
| 231 | 231 |
| 232 // Initialize and start all installed extensions. | 232 // Initialize and start all installed extensions. |
| 233 void Init(); | 233 void Init(); |
| 234 | 234 |
| 235 // Called when the associated Profile is going to be destroyed. | 235 // Called when the associated Profile is going to be destroyed. |
| 236 void Shutdown(); | 236 void Shutdown(); |
| 237 | 237 |
| 238 // Reloads the specified extension, sending the onLaunched() event to it if it | 238 // Reloads the specified extension, sending the onLaunched() event to it if it |
| 239 // currently has any window showing. | 239 // currently has any window showing. |be_noisy| is used to enable or disable |
| 240 void ReloadExtension(const std::string& extension_id); | 240 // noisy notifications for the installer if the extension is unpacked. |
| 241 void ReloadExtension(const std::string& extension_id, bool be_noisy); |
| 241 | 242 |
| 242 // Uninstalls the specified extension. Callers should only call this method | 243 // Uninstalls the specified extension. Callers should only call this method |
| 243 // with extensions that exist. |external_uninstall| is a magical parameter | 244 // with extensions that exist. |external_uninstall| is a magical parameter |
| 244 // that is only used to send information to ExtensionPrefs, which external | 245 // that is only used to send information to ExtensionPrefs, which external |
| 245 // callers should never set to true. | 246 // callers should never set to true. |
| 246 // | 247 // |
| 247 // TODO(aa): Remove |external_uninstall| -- this information should be passed | 248 // TODO(aa): Remove |external_uninstall| -- this information should be passed |
| 248 // to ExtensionPrefs some other way. | 249 // to ExtensionPrefs some other way. |
| 249 virtual bool UninstallExtension(const std::string& extension_id, | 250 virtual bool UninstallExtension(const std::string& extension_id, |
| 250 bool external_uninstall, | 251 bool external_uninstall, |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 GreylistedExtensionDisabled); | 716 GreylistedExtensionDisabled); |
| 716 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 717 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 717 GreylistDontEnableManuallyDisabled); | 718 GreylistDontEnableManuallyDisabled); |
| 718 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 719 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 719 GreylistUnknownDontChange); | 720 GreylistUnknownDontChange); |
| 720 | 721 |
| 721 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 722 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 722 }; | 723 }; |
| 723 | 724 |
| 724 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 725 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |