| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 // Add extensions in |blocked| to blacklisted_extensions, remove extensions | 533 // Add extensions in |blocked| to blacklisted_extensions, remove extensions |
| 534 // that are neither in |blocked|, nor in |unchanged|. | 534 // that are neither in |blocked|, nor in |unchanged|. |
| 535 void UpdateBlockedExtensions(const extensions::ExtensionIdSet& blocked, | 535 void UpdateBlockedExtensions(const extensions::ExtensionIdSet& blocked, |
| 536 const extensions::ExtensionIdSet& unchanged); | 536 const extensions::ExtensionIdSet& unchanged); |
| 537 | 537 |
| 538 void UpdateGreylistedExtensions( | 538 void UpdateGreylistedExtensions( |
| 539 const extensions::ExtensionIdSet& greylist, | 539 const extensions::ExtensionIdSet& greylist, |
| 540 const extensions::ExtensionIdSet& unchanged, | 540 const extensions::ExtensionIdSet& unchanged, |
| 541 const extensions::Blacklist::BlacklistStateMap& state_map); | 541 const extensions::Blacklist::BlacklistStateMap& state_map); |
| 542 | 542 |
| 543 // Helper to determine if the the extension should be enabled by default for |
| 544 // incognito mode. This is permitted for selected external component |
| 545 // extensions. (Internal component extensions are enabled in incognito by |
| 546 // default.) |
| 547 static bool ShouldEnableForIncognito(const extensions::Extension* extension); |
| 548 |
| 543 // Used only by test code. | 549 // Used only by test code. |
| 544 void UnloadAllExtensionsInternal(); | 550 void UnloadAllExtensionsInternal(); |
| 545 | 551 |
| 546 // Disable apps & extensions now to stop them from running after a profile | 552 // Disable apps & extensions now to stop them from running after a profile |
| 547 // has been conceptually deleted. Don't wait for full browser shutdown and | 553 // has been conceptually deleted. Don't wait for full browser shutdown and |
| 548 // the actual profile objects to be destroyed. | 554 // the actual profile objects to be destroyed. |
| 549 void OnProfileDestructionStarted(); | 555 void OnProfileDestructionStarted(); |
| 550 | 556 |
| 551 // Called on file task runner thread to uninstall extension. | 557 // Called on file task runner thread to uninstall extension. |
| 552 static void UninstallExtensionOnFileThread( | 558 static void UninstallExtensionOnFileThread( |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 GreylistedExtensionDisabled); | 712 GreylistedExtensionDisabled); |
| 707 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 713 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 708 GreylistDontEnableManuallyDisabled); | 714 GreylistDontEnableManuallyDisabled); |
| 709 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 715 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 710 GreylistUnknownDontChange); | 716 GreylistUnknownDontChange); |
| 711 | 717 |
| 712 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 718 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 713 }; | 719 }; |
| 714 | 720 |
| 715 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 721 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |