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/signed_in_devices/signed_in_devices_manager.h"
34 #include "chrome/browser/extensions/api/streams_private/streams_private_api.h"
35 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
36 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h"
37 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
38 #include "chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h"
39 #include "chrome/browser/extensions/api/webstore/webstore_api.h"
40 #include "chrome/browser/extensions/extension_garbage_collector_factory.h"
41 #include "chrome/browser/extensions/extension_gcm_app_handler.h"
42 #include "chrome/browser/extensions/extension_storage_monitor_factory.h"
43 #include "chrome/browser/extensions/extension_system_factory.h"
44 #include "chrome/browser/extensions/extension_toolbar_model_factory.h"
45 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h"
46 #include "chrome/browser/extensions/install_tracker_factory.h"
47 #include "chrome/browser/extensions/menu_manager_factory.h"
48 #include "chrome/browser/extensions/plugin_manager.h"
49 #include "chrome/browser/extensions/token_cache/token_cache_service_factory.h"
50 #include "chrome/browser/extensions/warning_badge_service_factory.h"
51 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
52 #include "extensions/browser/api/api_resource_manager.h"
53 #include "extensions/browser/api/bluetooth/bluetooth_api.h"
54 #include "extensions/browser/api/bluetooth/bluetooth_private_api.h"
55 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h"
56 #include "extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h"
57 #include "extensions/browser/api/power/power_api.h"
58 #include "extensions/browser/api/usb/usb_device_resource.h"
59 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h"
60 #include "extensions/browser/api/web_request/web_request_api.h"
62 #if defined(OS_CHROMEOS)
63 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h"
64 #include "chrome/browser/chromeos/extensions/input_method_api.h"
65 #include "chrome/browser/chromeos/extensions/media_player_api.h"
66 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h"
67 #include "chrome/browser/extensions/api/log_private/log_private_api.h"
70 #if defined(ENABLE_SPELLCHECK)
71 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
74 namespace chrome_extensions
{
76 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
77 extensions::ActivityLog::GetFactoryInstance();
78 extensions::ActivityLogAPI::GetFactoryInstance();
79 extensions::ApiResourceManager
<
80 extensions::UsbDeviceResource
>::GetFactoryInstance();
81 extensions::BookmarksAPI::GetFactoryInstance();
82 extensions::BookmarkManagerPrivateAPI::GetFactoryInstance();
83 extensions::BluetoothAPI::GetFactoryInstance();
84 extensions::BluetoothLowEnergyAPI::GetFactoryInstance();
85 extensions::BluetoothPrivateAPI::GetFactoryInstance();
86 extensions::BrailleDisplayPrivateAPI::GetFactoryInstance();
87 extensions::chromedirectsetting::ChromeDirectSettingAPI::GetFactoryInstance();
88 extensions::CommandService::GetFactoryInstance();
89 extensions::ContentSettingsService::GetFactoryInstance();
90 extensions::CookiesAPI::GetFactoryInstance();
91 extensions::DeveloperPrivateAPI::GetFactoryInstance();
92 extensions::DialAPIFactory::GetInstance();
93 extensions::ExtensionActionAPI::GetFactoryInstance();
94 extensions::ExtensionGarbageCollectorFactory::GetInstance();
95 extensions::ExtensionStorageMonitorFactory::GetInstance();
96 extensions::ExtensionSystemFactory::GetInstance();
97 extensions::ExtensionToolbarModelFactory::GetInstance();
98 extensions::ExtensionWebUIOverrideRegistrar::GetFactoryInstance();
99 extensions::FeedbackPrivateAPI::GetFactoryInstance();
100 extensions::FontSettingsAPI::GetFactoryInstance();
101 extensions::GcdPrivateAPI::GetFactoryInstance();
102 extensions::HistoryAPI::GetFactoryInstance();
103 extensions::HotwordPrivateEventService::GetFactoryInstance();
104 extensions::IdentityAPI::GetFactoryInstance();
105 extensions::InstallTrackerFactory::GetInstance();
106 #if defined(OS_CHROMEOS)
107 extensions::InputImeAPI::GetFactoryInstance();
108 extensions::InputMethodAPI::GetFactoryInstance();
110 extensions::LocationManager::GetFactoryInstance();
111 #if defined(OS_CHROMEOS)
112 extensions::LogPrivateAPI::GetFactoryInstance();
114 extensions::MDnsAPI::GetFactoryInstance();
115 #if defined(OS_CHROMEOS)
116 extensions::MediaPlayerAPI::GetFactoryInstance();
118 extensions::MenuManagerFactory::GetInstance();
119 extensions::OmniboxAPI::GetFactoryInstance();
120 #if defined(ENABLE_PLUGINS)
121 extensions::PluginManager::GetFactoryInstance();
122 #endif // defined(ENABLE_PLUGINS)
123 extensions::PowerAPI::GetFactoryInstance();
124 extensions::PreferenceAPI::GetFactoryInstance();
125 extensions::ProcessesAPI::GetFactoryInstance();
126 extensions::ScreenlockPrivateEventRouter::GetFactoryInstance();
127 extensions::SessionsAPI::GetFactoryInstance();
128 extensions::SettingsOverridesAPI::GetFactoryInstance();
129 extensions::SignedInDevicesManager::GetFactoryInstance();
130 #if defined(ENABLE_SPELLCHECK)
131 extensions::SpellcheckAPI::GetFactoryInstance();
133 extensions::StreamsPrivateAPI::GetFactoryInstance();
134 extensions::TabCaptureRegistry::GetFactoryInstance();
135 extensions::TabsWindowsAPI::GetFactoryInstance();
136 extensions::TtsAPI::GetFactoryInstance();
137 #if defined(OS_CHROMEOS)
138 extensions::VirtualKeyboardAPI::GetFactoryInstance();
140 extensions::WarningBadgeServiceFactory::GetInstance();
141 extensions::WebNavigationAPI::GetFactoryInstance();
142 extensions::WebRequestAPI::GetFactoryInstance();
143 extensions::WebrtcAudioPrivateEventService::GetFactoryInstance();
144 extensions::WebstoreAPI::GetFactoryInstance();
145 #if defined(OS_CHROMEOS)
146 file_manager::EventRouterFactory::GetInstance();
148 TokenCacheServiceFactory::GetInstance();
149 extensions::ExtensionGCMAppHandler::GetFactoryInstance();
150 extensions::core_api::BluetoothSocketEventDispatcher::GetFactoryInstance();
153 } // namespace chrome_extensions