| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class CrxInstaller; | 51 class CrxInstaller; |
| 52 class ExtensionBrowserEventRouter; | 52 class ExtensionBrowserEventRouter; |
| 53 class ExtensionContentSettingsStore; | 53 class ExtensionContentSettingsStore; |
| 54 class ExtensionCookiesEventRouter; | 54 class ExtensionCookiesEventRouter; |
| 55 class ExtensionDownloadsEventRouter; | 55 class ExtensionDownloadsEventRouter; |
| 56 class ExtensionFileBrowserEventRouter; | 56 class ExtensionFileBrowserEventRouter; |
| 57 class ExtensionGlobalError; | 57 class ExtensionGlobalError; |
| 58 class ExtensionManagementEventRouter; | 58 class ExtensionManagementEventRouter; |
| 59 class ExtensionPreferenceEventRouter; | 59 class ExtensionPreferenceEventRouter; |
| 60 class ExtensionSyncData; | 60 class ExtensionSyncData; |
| 61 class ExtensionSystem; |
| 61 class ExtensionToolbarModel; | 62 class ExtensionToolbarModel; |
| 62 class ExtensionUpdater; | 63 class ExtensionUpdater; |
| 63 class ExtensionWebNavigationEventRouter; | 64 class ExtensionWebNavigationEventRouter; |
| 64 class HistoryExtensionEventRouter; | 65 class HistoryExtensionEventRouter; |
| 65 class GURL; | 66 class GURL; |
| 66 class PendingExtensionManager; | 67 class PendingExtensionManager; |
| 67 class Profile; | 68 class Profile; |
| 68 class SyncData; | 69 class SyncData; |
| 69 class Version; | 70 class Version; |
| 70 | 71 |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 // Call UpdatePluginListWithNaClModules() after registering or unregistering | 698 // Call UpdatePluginListWithNaClModules() after registering or unregistering |
| 698 // a NaCl module to see those changes reflected in the PluginList. | 699 // a NaCl module to see those changes reflected in the PluginList. |
| 699 void UpdatePluginListWithNaClModules(); | 700 void UpdatePluginListWithNaClModules(); |
| 700 | 701 |
| 701 // Start the process of installing an application shortcut. | 702 // Start the process of installing an application shortcut. |
| 702 // The process is finished when OnImageLoaded is called. | 703 // The process is finished when OnImageLoaded is called. |
| 703 void StartInstallApplicationShortcut(const Extension* extension); | 704 void StartInstallApplicationShortcut(const Extension* extension); |
| 704 | 705 |
| 705 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); | 706 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
| 706 | 707 |
| 707 // The profile this ExtensionService is part of. | 708 // The normal profile associated with this ExtensionService. |
| 708 Profile* profile_; | 709 Profile* profile_; |
| 709 | 710 |
| 711 // The ExtensionSystem for the profile above. |
| 712 ExtensionSystem* system_; |
| 713 |
| 710 // Preferences for the owning profile (weak reference). | 714 // Preferences for the owning profile (weak reference). |
| 711 ExtensionPrefs* extension_prefs_; | 715 ExtensionPrefs* extension_prefs_; |
| 712 | 716 |
| 713 // Settings for the owning profile. | 717 // Settings for the owning profile. |
| 714 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; | 718 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; |
| 715 | 719 |
| 716 // The current list of installed extensions. | 720 // The current list of installed extensions. |
| 717 // TODO(aa): This should use chrome/common/extensions/extension_set.h. | 721 // TODO(aa): This should use chrome/common/extensions/extension_set.h. |
| 718 ExtensionSet extensions_; | 722 ExtensionSet extensions_; |
| 719 | 723 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 852 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 849 | 853 |
| 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 851 InstallAppsWithUnlimtedStorage); | 855 InstallAppsWithUnlimtedStorage); |
| 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 853 InstallAppsAndCheckStorageProtection); | 857 InstallAppsAndCheckStorageProtection); |
| 854 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 858 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 855 }; | 859 }; |
| 856 | 860 |
| 857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 861 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |