| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 // Helper to determine if updating an extensions should proceed immediately, | 554 // Helper to determine if updating an extensions should proceed immediately, |
| 555 // or if we should delay the update until further notice. | 555 // or if we should delay the update until further notice. |
| 556 bool ShouldDelayExtensionUpdate(const std::string& extension_id, | 556 bool ShouldDelayExtensionUpdate(const std::string& extension_id, |
| 557 bool install_immediately) const; | 557 bool install_immediately) const; |
| 558 | 558 |
| 559 // Manages the blacklisted extensions, intended as callback from | 559 // Manages the blacklisted extensions, intended as callback from |
| 560 // Blacklist::GetBlacklistedIDs. | 560 // Blacklist::GetBlacklistedIDs. |
| 561 void ManageBlacklist( | 561 void ManageBlacklist( |
| 562 const extensions::Blacklist::BlacklistStateMap& blacklisted_ids); | 562 const extensions::Blacklist::BlacklistStateMap& blacklisted_ids); |
| 563 | 563 |
| 564 bool NeedsMigration(const extensions::Extension* extension); |
| 565 |
| 566 void MigrateThenFinishInstallation(const extensions::Extension* extension, |
| 567 bool was_ephemeral); |
| 568 |
| 564 // Add extensions in |blocked| to blacklisted_extensions, remove extensions | 569 // Add extensions in |blocked| to blacklisted_extensions, remove extensions |
| 565 // that are neither in |blocked|, nor in |unchanged|. | 570 // that are neither in |blocked|, nor in |unchanged|. |
| 566 void UpdateBlockedExtensions(const extensions::ExtensionIdSet& blocked, | 571 void UpdateBlockedExtensions(const extensions::ExtensionIdSet& blocked, |
| 567 const extensions::ExtensionIdSet& unchanged); | 572 const extensions::ExtensionIdSet& unchanged); |
| 568 | 573 |
| 569 void UpdateGreylistedExtensions( | 574 void UpdateGreylistedExtensions( |
| 570 const extensions::ExtensionIdSet& greylist, | 575 const extensions::ExtensionIdSet& greylist, |
| 571 const extensions::ExtensionIdSet& unchanged, | 576 const extensions::ExtensionIdSet& unchanged, |
| 572 const extensions::Blacklist::BlacklistStateMap& state_map); | 577 const extensions::Blacklist::BlacklistStateMap& state_map); |
| 573 | 578 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 GreylistedExtensionDisabled); | 738 GreylistedExtensionDisabled); |
| 734 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 739 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 735 GreylistDontEnableManuallyDisabled); | 740 GreylistDontEnableManuallyDisabled); |
| 736 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 741 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 737 GreylistUnknownDontChange); | 742 GreylistUnknownDontChange); |
| 738 | 743 |
| 739 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 744 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 740 }; | 745 }; |
| 741 | 746 |
| 742 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 747 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |