| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 void NotifyExtensionUnloaded( | 530 void NotifyExtensionUnloaded( |
| 531 const extensions::Extension* extension, | 531 const extensions::Extension* extension, |
| 532 extensions::UnloadedExtensionInfo::Reason reason); | 532 extensions::UnloadedExtensionInfo::Reason reason); |
| 533 | 533 |
| 534 // Common helper to finish installing the given extension. | 534 // Common helper to finish installing the given extension. |
| 535 void FinishInstallation(const extensions::Extension* extension); | 535 void FinishInstallation(const extensions::Extension* extension); |
| 536 | 536 |
| 537 // Disables the extension if the privilege level has increased | 537 // Disables the extension if the privilege level has increased |
| 538 // (e.g., due to an upgrade). | 538 // (e.g., due to an upgrade). |
| 539 void CheckPermissionsIncrease(const extensions::Extension* extension, | 539 void CheckPermissionsIncrease(const extensions::Extension* extension, |
| 540 bool is_extension_installed); | 540 bool is_extension_loaded); |
| 541 | 541 |
| 542 // Helper that updates the active extension list used for crash reporting. | 542 // Helper that updates the active extension list used for crash reporting. |
| 543 void UpdateActiveExtensionsInCrashReporter(); | 543 void UpdateActiveExtensionsInCrashReporter(); |
| 544 | 544 |
| 545 // Helper to get the disable reasons for an installed (or upgraded) extension. | 545 // Helper to get the disable reasons for an installed (or upgraded) extension. |
| 546 // A return value of Extension::DISABLE_NONE indicates that we should enable | 546 // A return value of Extension::DISABLE_NONE indicates that we should enable |
| 547 // this extension initially. | 547 // this extension initially. |
| 548 int GetDisableReasonsOnInstalled(const extensions::Extension* extension); | 548 int GetDisableReasonsOnInstalled(const extensions::Extension* extension); |
| 549 | 549 |
| 550 // Helper method to determine if an extension can be blocked. | 550 // Helper method to determine if an extension can be blocked. |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 GreylistUnknownDontChange); | 739 GreylistUnknownDontChange); |
| 740 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 740 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 741 ManagementPolicyProhibitsEnableOnInstalled); | 741 ManagementPolicyProhibitsEnableOnInstalled); |
| 742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 743 BlockAndUnblockBlacklistedExtension); | 743 BlockAndUnblockBlacklistedExtension); |
| 744 | 744 |
| 745 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 745 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 746 }; | 746 }; |
| 747 | 747 |
| 748 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 748 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |