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 AppNotificationManager; | 51 class AppNotificationManager; |
52 class BookmarkExtensionEventRouter; | 52 class BookmarkExtensionEventRouter; |
53 class CrxInstaller; | 53 class CrxInstaller; |
54 class ExtensionBrowserEventRouter; | 54 class ExtensionBrowserEventRouter; |
55 class ExtensionFontSettingsEventRouter; | 55 class ExtensionFontSettingsEventRouter; |
56 class ExtensionGlobalError; | 56 class ExtensionGlobalError; |
57 class ExtensionManagedModeEventRouter; | 57 class ExtensionManagedModeEventRouter; |
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 HistoryExtensionEventRouter; | 62 class HistoryExtensionEventRouter; |
64 class GURL; | 63 class GURL; |
65 class PendingExtensionManager; | 64 class PendingExtensionManager; |
66 class Profile; | 65 class Profile; |
67 class Version; | 66 class Version; |
68 | 67 |
69 namespace chromeos { | 68 namespace chromeos { |
70 class ExtensionBluetoothEventRouter; | 69 class ExtensionBluetoothEventRouter; |
71 class ExtensionInputMethodEventRouter; | 70 class ExtensionInputMethodEventRouter; |
72 } | 71 } |
73 | 72 |
74 namespace syncer { | 73 namespace syncer { |
75 class SyncData; | 74 class SyncData; |
76 class SyncErrorFactory; | 75 class SyncErrorFactory; |
77 } | 76 } |
78 | 77 |
79 namespace extensions { | 78 namespace extensions { |
80 class AppSyncData; | 79 class AppSyncData; |
81 class ComponentLoader; | 80 class ComponentLoader; |
82 class ContentSettingsStore; | 81 class ContentSettingsStore; |
83 class Extension; | 82 class Extension; |
84 class ExtensionCookiesEventRouter; | 83 class ExtensionCookiesEventRouter; |
85 class ExtensionSyncData; | 84 class ExtensionSyncData; |
| 85 class ExtensionSystem; |
86 class ExtensionUpdater; | 86 class ExtensionUpdater; |
87 class SettingsFrontend; | 87 class SettingsFrontend; |
88 class WebNavigationEventRouter; | 88 class WebNavigationEventRouter; |
89 } | 89 } |
90 | 90 |
91 // This is an interface class to encapsulate the dependencies that | 91 // This is an interface class to encapsulate the dependencies that |
92 // various classes have on ExtensionService. This allows easy mocking. | 92 // various classes have on ExtensionService. This allows easy mocking. |
93 class ExtensionServiceInterface : public syncer::SyncableService { | 93 class ExtensionServiceInterface : public syncer::SyncableService { |
94 public: | 94 public: |
95 // A function that returns true if the given extension should be | 95 // A function that returns true if the given extension should be |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // Call UpdatePluginListWithNaClModules() after registering or unregistering | 702 // Call UpdatePluginListWithNaClModules() after registering or unregistering |
703 // a NaCl module to see those changes reflected in the PluginList. | 703 // a NaCl module to see those changes reflected in the PluginList. |
704 void UpdatePluginListWithNaClModules(); | 704 void UpdatePluginListWithNaClModules(); |
705 | 705 |
706 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); | 706 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
707 | 707 |
708 // The normal profile associated with this ExtensionService. | 708 // The normal profile associated with this ExtensionService. |
709 Profile* profile_; | 709 Profile* profile_; |
710 | 710 |
711 // The ExtensionSystem for the profile above. | 711 // The ExtensionSystem for the profile above. |
712 ExtensionSystem* system_; | 712 extensions::ExtensionSystem* system_; |
713 | 713 |
714 // Preferences for the owning profile (weak reference). | 714 // Preferences for the owning profile (weak reference). |
715 ExtensionPrefs* extension_prefs_; | 715 ExtensionPrefs* extension_prefs_; |
716 | 716 |
717 // Settings for the owning profile. | 717 // Settings for the owning profile. |
718 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; | 718 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; |
719 | 719 |
720 // The current list of installed extensions. | 720 // The current list of installed extensions. |
721 ExtensionSet extensions_; | 721 ExtensionSet extensions_; |
722 | 722 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 852 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
853 | 853 |
854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
855 InstallAppsWithUnlimtedStorage); | 855 InstallAppsWithUnlimtedStorage); |
856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
857 InstallAppsAndCheckStorageProtection); | 857 InstallAppsAndCheckStorageProtection); |
858 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 858 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
859 }; | 859 }; |
860 | 860 |
861 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 861 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |