| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // need to be made more efficient. | 352 // need to be made more efficient. |
| 353 static void RecordPermissionMessagesHistogram( | 353 static void RecordPermissionMessagesHistogram( |
| 354 const extensions::Extension* extension, const char* histogram); | 354 const extensions::Extension* extension, const char* histogram); |
| 355 | 355 |
| 356 // Unloads the given extension and mark the extension as terminated. This | 356 // Unloads the given extension and mark the extension as terminated. This |
| 357 // doesn't notify the user that the extension was terminated, if such a | 357 // doesn't notify the user that the extension was terminated, if such a |
| 358 // notification is desired the calling code is responsible for doing that. | 358 // notification is desired the calling code is responsible for doing that. |
| 359 void TerminateExtension(const std::string& extension_id); | 359 void TerminateExtension(const std::string& extension_id); |
| 360 | 360 |
| 361 // Register self and content settings API with the specified map. | 361 // Register self and content settings API with the specified map. |
| 362 void RegisterContentSettings( | 362 static void RegisterContentSettings( |
| 363 HostContentSettingsMap* host_content_settings_map); | 363 HostContentSettingsMap* host_content_settings_map, |
| 364 Profile* profile); |
| 364 | 365 |
| 365 // Adds/Removes update observers. | 366 // Adds/Removes update observers. |
| 366 void AddUpdateObserver(extensions::UpdateObserver* observer); | 367 void AddUpdateObserver(extensions::UpdateObserver* observer); |
| 367 void RemoveUpdateObserver(extensions::UpdateObserver* observer); | 368 void RemoveUpdateObserver(extensions::UpdateObserver* observer); |
| 368 | 369 |
| 369 // Register/unregister an InstallGate with the service. | 370 // Register/unregister an InstallGate with the service. |
| 370 void RegisterInstallGate(extensions::ExtensionPrefs::DelayReason reason, | 371 void RegisterInstallGate(extensions::ExtensionPrefs::DelayReason reason, |
| 371 extensions::InstallGate* install_delayer); | 372 extensions::InstallGate* install_delayer); |
| 372 void UnregisterInstallGate(extensions::InstallGate* install_delayer); | 373 void UnregisterInstallGate(extensions::InstallGate* install_delayer); |
| 373 | 374 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 GreylistUnknownDontChange); | 749 GreylistUnknownDontChange); |
| 749 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 750 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 750 ManagementPolicyProhibitsEnableOnInstalled); | 751 ManagementPolicyProhibitsEnableOnInstalled); |
| 751 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 752 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 752 BlockAndUnblockBlacklistedExtension); | 753 BlockAndUnblockBlacklistedExtension); |
| 753 | 754 |
| 754 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 755 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 755 }; | 756 }; |
| 756 | 757 |
| 757 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 758 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |