1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/browser_context_keyed_service_factories.h"
7 #include "chrome/browser/extensions/activity_log/activity_log.h"
8 #include "chrome/browser/extensions/api/activity_log_private/activity_log_private_api.h"
9 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h"
10 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h"
11 #include "chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h"
12 #include "chrome/browser/extensions/api/commands/command_service.h"
13 #include "chrome/browser/extensions/api/content_settings/content_settings_service.h"
14 #include "chrome/browser/extensions/api/cookies/cookies_api.h"
15 #include "chrome/browser/extensions/api/developer_private/developer_private_api.h"
16 #include "chrome/browser/extensions/api/dial/dial_api_factory.h"
17 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
18 #include "chrome/browser/extensions/api/feedback_private/feedback_private_api.h"
19 #include "chrome/browser/extensions/api/font_settings/font_settings_api.h"
20 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h"
21 #include "chrome/browser/extensions/api/history/history_api.h"
22 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h"
23 #include "chrome/browser/extensions/api/identity/identity_api.h"
24 #include "chrome/browser/extensions/api/location/location_manager.h"
25 #include "chrome/browser/extensions/api/mdns/mdns_api.h"
26 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
27 #include "chrome/browser/extensions/api/preference/chrome_direct_setting_api.h"
28 #include "chrome/browser/extensions/api/preference/preference_api.h"
29 #include "chrome/browser/extensions/api/processes/processes_api.h"
30 #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h"
31 #include "chrome/browser/extensions/api/sessions/sessions_api.h"
32 #include "chrome/browser/extensions/api/settings_overrides/settings_overrides_api.h"
33 #include "chrome/browser/extensions/api/settings_private/settings_private_event_router_factory.h"
34 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h"
35 #include "chrome/browser/extensions/api/streams_private/streams_private_api.h"
36 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
37 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h"
38 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
39 #include "chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h"
40 #include "chrome/browser/extensions/api/webstore/webstore_api.h"
41 #include "chrome/browser/extensions/extension_garbage_collector_factory.h"
42 #include "chrome/browser/extensions/extension_gcm_app_handler.h"
43 #include "chrome/browser/extensions/extension_storage_monitor_factory.h"
44 #include "chrome/browser/extensions/extension_system_factory.h"
45 #include "chrome/browser/extensions/extension_toolbar_model_factory.h"
46 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h"
47 #include "chrome/browser/extensions/install_tracker_factory.h"
48 #include "chrome/browser/extensions/menu_manager_factory.h"
49 #include "chrome/browser/extensions/plugin_manager.h"
50 #include "chrome/browser/extensions/token_cache/token_cache_service_factory.h"
51 #include "chrome/browser/extensions/warning_badge_service_factory.h"
52 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
53 #include "extensions/browser/api/api_resource_manager.h"
54 #include "extensions/browser/api/bluetooth/bluetooth_api.h"
55 #include "extensions/browser/api/bluetooth/bluetooth_private_api.h"
56 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h"
57 #include "extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h"
58 #include "extensions/browser/api/power/power_api.h"
59 #include "extensions/browser/api/usb/usb_device_resource.h"
60 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h"
61 #include "extensions/browser/api/web_request/web_request_api.h"
63 #if defined(OS_CHROMEOS)
64 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h"
65 #include "chrome/browser/chromeos/extensions/input_method_api.h"
66 #include "chrome/browser/chromeos/extensions/media_player_api.h"
67 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
68 #include "chrome/browser/extensions/api/log_private/log_private_api.h"
71 #if defined(ENABLE_SPELLCHECK)
72 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
75 namespace chrome_extensions
{
77 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
78 extensions::ActivityLog::GetFactoryInstance();
79 extensions::ActivityLogAPI::GetFactoryInstance();
80 extensions::ApiResourceManager
<
81 extensions::UsbDeviceResource
>::GetFactoryInstance();
82 extensions::BookmarksAPI::GetFactoryInstance();
83 extensions::BookmarkManagerPrivateAPI::GetFactoryInstance();
84 extensions::BluetoothAPI::GetFactoryInstance();
85 extensions::BluetoothLowEnergyAPI::GetFactoryInstance();
86 extensions::BluetoothPrivateAPI::GetFactoryInstance();
87 extensions::BrailleDisplayPrivateAPI::GetFactoryInstance();
88 extensions::chromedirectsetting::ChromeDirectSettingAPI::GetFactoryInstance();
89 extensions::CommandService::GetFactoryInstance();
90 extensions::ContentSettingsService::GetFactoryInstance();
91 extensions::CookiesAPI::GetFactoryInstance();
92 extensions::DeveloperPrivateAPI::GetFactoryInstance();
93 extensions::DialAPIFactory::GetInstance();
94 extensions::ExtensionActionAPI::GetFactoryInstance();
95 extensions::ExtensionGarbageCollectorFactory::GetInstance();
96 extensions::ExtensionStorageMonitorFactory::GetInstance();
97 extensions::ExtensionSystemFactory::GetInstance();
98 extensions::ExtensionToolbarModelFactory::GetInstance();
99 extensions::ExtensionWebUIOverrideRegistrar::GetFactoryInstance();
100 extensions::FeedbackPrivateAPI::GetFactoryInstance();
101 extensions::FontSettingsAPI::GetFactoryInstance();
102 extensions::GcdPrivateAPI::GetFactoryInstance();
103 extensions::HistoryAPI::GetFactoryInstance();
104 extensions::HotwordPrivateEventService::GetFactoryInstance();
105 extensions::IdentityAPI::GetFactoryInstance();
106 extensions::InstallTrackerFactory::GetInstance();
107 #if defined(OS_CHROMEOS)
108 extensions::InputImeAPI::GetFactoryInstance();
109 extensions::InputMethodAPI::GetFactoryInstance();
111 extensions::LocationManager::GetFactoryInstance();
112 #if defined(OS_CHROMEOS)
113 extensions::LogPrivateAPI::GetFactoryInstance();
115 extensions::MDnsAPI::GetFactoryInstance();
116 #if defined(OS_CHROMEOS)
117 extensions::MediaPlayerAPI::GetFactoryInstance();
119 extensions::MenuManagerFactory::GetInstance();
120 extensions::OmniboxAPI::GetFactoryInstance();
121 #if defined(ENABLE_PLUGINS)
122 extensions::PluginManager::GetFactoryInstance();
123 #endif // defined(ENABLE_PLUGINS)
124 extensions::PowerAPI::GetFactoryInstance();
125 extensions::PreferenceAPI::GetFactoryInstance();
126 extensions::ProcessesAPI::GetFactoryInstance();
127 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance();
128 extensions::SessionsAPI::GetFactoryInstance();
129 extensions::SettingsPrivateEventRouterFactory::GetInstance();
130 extensions::SettingsOverridesAPI::GetFactoryInstance();
131 extensions::SignedInDevicesManager::GetFactoryInstance();
132 #if defined(ENABLE_SPELLCHECK)
133 extensions::SpellcheckAPI::GetFactoryInstance();
135 extensions::StreamsPrivateAPI::GetFactoryInstance();
136 extensions::TabCaptureRegistry::GetFactoryInstance();
137 extensions::TabsWindowsAPI::GetFactoryInstance();
138 extensions::TtsAPI::GetFactoryInstance();
139 #if defined(OS_CHROMEOS)
140 extensions::VirtualKeyboardAPI::GetFactoryInstance();
142 extensions::WarningBadgeServiceFactory::GetInstance();
143 extensions::WebNavigationAPI::GetFactoryInstance();
144 extensions::WebRequestAPI::GetFactoryInstance();
145 extensions::WebrtcAudioPrivateEventService::GetFactoryInstance();
146 extensions::WebstoreAPI::GetFactoryInstance();
147 #if defined(OS_CHROMEOS)
148 file_manager::EventRouterFactory::GetInstance();
150 TokenCacheServiceFactory::GetInstance();
151 extensions::ExtensionGCMAppHandler::GetFactoryInstance();
152 extensions::core_api::BluetoothSocketEventDispatcher::GetFactoryInstance();
155 } // namespace chrome_extensions