Chromium Code Reviews| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 345 | 345 |
| 346 // Enables the extension. If the extension is already enabled, does | 346 // Enables the extension. If the extension is already enabled, does |
| 347 // nothing. | 347 // nothing. |
| 348 virtual void EnableExtension(const std::string& extension_id); | 348 virtual void EnableExtension(const std::string& extension_id); |
| 349 | 349 |
| 350 // Disables the extension. If the extension is already disabled, or | 350 // Disables the extension. If the extension is already disabled, or |
| 351 // cannot be disabled, does nothing. | 351 // cannot be disabled, does nothing. |
| 352 virtual void DisableExtension(const std::string& extension_id, | 352 virtual void DisableExtension(const std::string& extension_id, |
| 353 extensions::Extension::DisableReason disable_reason); | 353 extensions::Extension::DisableReason disable_reason); |
| 354 | 354 |
| 355 // Disable non-builtin and non-managed extensions with ids not in | 355 // Disable non-default and non-managed extensions with ids not in |
| 356 // |except_ids|. | 356 // |except_ids|. Default extension are those from Web Store with |
|
asargent_no_longer_on_chrome
2013/08/05 17:31:53
grammar nit: "extension" should be plural, and nee
vasilii
2013/08/06 07:43:45
Done.
| |
| 357 // |was_installed_by_default| flag. | |
| 357 void DisableUserExtensions(const std::vector<std::string>& except_ids); | 358 void DisableUserExtensions(const std::vector<std::string>& except_ids); |
| 358 | 359 |
| 359 // Updates the |extension|'s granted permissions lists to include all | 360 // Updates the |extension|'s granted permissions lists to include all |
| 360 // permissions in the |extension|'s manifest and re-enables the | 361 // permissions in the |extension|'s manifest and re-enables the |
| 361 // extension. | 362 // extension. |
| 362 void GrantPermissionsAndEnableExtension( | 363 void GrantPermissionsAndEnableExtension( |
| 363 const extensions::Extension* extension); | 364 const extensions::Extension* extension); |
| 364 | 365 |
| 365 // Updates the |extension|'s granted permissions lists to include all | 366 // Updates the |extension|'s granted permissions lists to include all |
| 366 // permissions in the |extensions|'s manifest. | 367 // permissions in the |extensions|'s manifest. |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 957 syncer::SyncableService::StartSyncFlare flare_; | 958 syncer::SyncableService::StartSyncFlare flare_; |
| 958 | 959 |
| 959 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 960 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 960 InstallAppsWithUnlimtedStorage); | 961 InstallAppsWithUnlimtedStorage); |
| 961 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 962 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 962 InstallAppsAndCheckStorageProtection); | 963 InstallAppsAndCheckStorageProtection); |
| 963 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 964 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 964 }; | 965 }; |
| 965 | 966 |
| 966 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 967 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |