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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 // This method is public because UnpackedInstaller and InstalledLoader | 524 // This method is public because UnpackedInstaller and InstalledLoader |
525 // can post to here. | 525 // can post to here. |
526 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency | 526 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency |
527 // of these classes on ExtensionService. | 527 // of these classes on ExtensionService. |
528 void ReportExtensionLoadError(const FilePath& extension_path, | 528 void ReportExtensionLoadError(const FilePath& extension_path, |
529 const std::string& error, | 529 const std::string& error, |
530 bool be_noisy); | 530 bool be_noisy); |
531 | 531 |
532 // ExtensionHost of background page calls this method right after its render | 532 // ExtensionHost of background page calls this method right after its render |
533 // view has been created. | 533 // view has been created. |
534 void DidCreateRenderViewForBackgroundPage(ExtensionHost* host); | 534 void DidCreateRenderViewForBackgroundPage(extensions::ExtensionHost* host); |
535 | 535 |
536 // For the extension in |version_path| with |id|, check to see if it's an | 536 // For the extension in |version_path| with |id|, check to see if it's an |
537 // externally managed extension. If so, uninstall it. | 537 // externally managed extension. If so, uninstall it. |
538 void CheckExternalUninstall(const std::string& id); | 538 void CheckExternalUninstall(const std::string& id); |
539 | 539 |
540 // Clear all ExternalProviders. | 540 // Clear all ExternalProviders. |
541 void ClearProvidersForTesting(); | 541 void ClearProvidersForTesting(); |
542 | 542 |
543 // Adds an ExternalProviderInterface for the service to use during testing. | 543 // Adds an ExternalProviderInterface for the service to use during testing. |
544 // Takes ownership of |test_provider|. | 544 // Takes ownership of |test_provider|. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 scoped_ptr<ExtensionErrorUI> extension_error_ui_; | 858 scoped_ptr<ExtensionErrorUI> extension_error_ui_; |
859 | 859 |
860 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 860 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
861 InstallAppsWithUnlimtedStorage); | 861 InstallAppsWithUnlimtedStorage); |
862 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 862 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
863 InstallAppsAndCheckStorageProtection); | 863 InstallAppsAndCheckStorageProtection); |
864 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 864 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
865 }; | 865 }; |
866 | 866 |
867 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 867 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |