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; | |
62 class ExtensionToolbarModel; | 61 class ExtensionToolbarModel; |
63 class ExtensionUpdater; | 62 class ExtensionUpdater; |
64 class ExtensionWebNavigationEventRouter; | 63 class ExtensionWebNavigationEventRouter; |
65 class HistoryExtensionEventRouter; | 64 class HistoryExtensionEventRouter; |
66 class GURL; | 65 class GURL; |
67 class PendingExtensionManager; | 66 class PendingExtensionManager; |
68 class Profile; | 67 class Profile; |
69 class SyncData; | 68 class SyncData; |
70 class Version; | 69 class Version; |
71 | 70 |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 // browser process. | 699 // browser process. |
701 void RegisterNaClModule(const GURL& url, const std::string& mime_type); | 700 void RegisterNaClModule(const GURL& url, const std::string& mime_type); |
702 void UnregisterNaClModule(const GURL& url); | 701 void UnregisterNaClModule(const GURL& url); |
703 | 702 |
704 // Call UpdatePluginListWithNaClModules() after registering or unregistering | 703 // Call UpdatePluginListWithNaClModules() after registering or unregistering |
705 // a NaCl module to see those changes reflected in the PluginList. | 704 // a NaCl module to see those changes reflected in the PluginList. |
706 void UpdatePluginListWithNaClModules(); | 705 void UpdatePluginListWithNaClModules(); |
707 | 706 |
708 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); | 707 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
709 | 708 |
710 // The normal profile associated with this ExtensionService. | 709 // The profile this ExtensionService is part of. |
711 Profile* profile_; | 710 Profile* profile_; |
712 | 711 |
713 // The ExtensionSystem for the profile above. | |
714 ExtensionSystem* system_; | |
715 | |
716 // Preferences for the owning profile (weak reference). | 712 // Preferences for the owning profile (weak reference). |
717 ExtensionPrefs* extension_prefs_; | 713 ExtensionPrefs* extension_prefs_; |
718 | 714 |
719 // Settings for the owning profile. | 715 // Settings for the owning profile. |
720 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; | 716 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; |
721 | 717 |
722 // The current list of installed extensions. | 718 // The current list of installed extensions. |
723 // TODO(aa): This should use chrome/common/extensions/extension_set.h. | 719 // TODO(aa): This should use chrome/common/extensions/extension_set.h. |
724 ExtensionSet extensions_; | 720 ExtensionSet extensions_; |
725 | 721 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 850 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
855 | 851 |
856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
857 InstallAppsWithUnlimtedStorage); | 853 InstallAppsWithUnlimtedStorage); |
858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
859 InstallAppsAndCheckStorageProtection); | 855 InstallAppsAndCheckStorageProtection); |
860 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
861 }; | 857 }; |
862 | 858 |
863 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |