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 "extensions/browser/browser_context_keyed_service_factories.h"
7 #include "extensions/browser/api/alarms/alarm_manager.h"
8 #include "extensions/browser/api/api_resource_manager.h"
9 #include "extensions/browser/api/audio/audio_api.h"
10 #include "extensions/browser/api/bluetooth/bluetooth_api.h"
11 #include "extensions/browser/api/bluetooth/bluetooth_private_api.h"
12 #include "extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h"
13 #include "extensions/browser/api/hid/hid_device_manager.h"
14 #include "extensions/browser/api/idle/idle_manager_factory.h"
15 #include "extensions/browser/api/management/management_api.h"
16 #include "extensions/browser/api/networking_config/networking_config_service_factory.h"
17 #include "extensions/browser/api/networking_private/networking_private_event_router_factory.h"
18 #include "extensions/browser/api/power/power_api.h"
19 #include "extensions/browser/api/runtime/runtime_api.h"
20 #include "extensions/browser/api/serial/serial_connection.h"
21 #include "extensions/browser/api/socket/socket.h"
22 #include "extensions/browser/api/socket/tcp_socket.h"
23 #include "extensions/browser/api/socket/udp_socket.h"
24 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
25 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h"
26 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h"
27 #include "extensions/browser/api/storage/storage_frontend.h"
28 #include "extensions/browser/api/system_info/system_info_api.h"
29 #include "extensions/browser/api/usb/usb_device_resource.h"
30 #include "extensions/browser/api/usb/usb_event_router.h"
31 #include "extensions/browser/api/usb/usb_guid_map.h"
32 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h"
33 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h"
34 #include "extensions/browser/api/web_request/web_request_api.h"
35 #include "extensions/browser/api/webcam_private/webcam_private_api.h"
36 #include "extensions/browser/declarative_user_script_manager_factory.h"
37 #include "extensions/browser/event_router_factory.h"
38 #include "extensions/browser/extension_message_filter.h"
39 #include "extensions/browser/extension_prefs_factory.h"
40 #include "extensions/browser/process_manager_factory.h"
41 #include "extensions/browser/renderer_startup_helper.h"
43 namespace extensions
{
45 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
46 AlarmManager::GetFactoryInstance();
47 ApiResourceManager
<ResumableTCPServerSocket
>::GetFactoryInstance();
48 ApiResourceManager
<ResumableTCPSocket
>::GetFactoryInstance();
49 ApiResourceManager
<ResumableUDPSocket
>::GetFactoryInstance();
50 ApiResourceManager
<SerialConnection
>::GetFactoryInstance();
51 ApiResourceManager
<Socket
>::GetFactoryInstance();
52 ApiResourceManager
<UsbDeviceResource
>::GetFactoryInstance();
53 AudioAPI::GetFactoryInstance();
54 BluetoothAPI::GetFactoryInstance();
55 BluetoothPrivateAPI::GetFactoryInstance();
56 #if defined(OS_CHROMEOS)
57 chromeos::VpnServiceFactory::GetInstance();
59 api::BluetoothSocketEventDispatcher::GetFactoryInstance();
60 api::TCPServerSocketEventDispatcher::GetFactoryInstance();
61 api::TCPSocketEventDispatcher::GetFactoryInstance();
62 api::UDPSocketEventDispatcher::GetFactoryInstance();
63 DeclarativeUserScriptManagerFactory::GetInstance();
64 EventRouterFactory::GetInstance();
65 ExtensionMessageFilter::EnsureShutdownNotifierFactoryBuilt();
66 ExtensionPrefsFactory::GetInstance();
67 HidDeviceManager::GetFactoryInstance();
68 IdleManagerFactory::GetInstance();
69 ManagementAPI::GetFactoryInstance();
70 #if defined(OS_CHROMEOS)
71 NetworkingConfigServiceFactory::GetInstance();
73 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)
74 NetworkingPrivateEventRouterFactory::GetInstance();
76 PowerAPI::GetFactoryInstance();
77 ProcessManagerFactory::GetInstance();
78 RendererStartupHelperFactory::GetInstance();
79 RuntimeAPI::GetFactoryInstance();
80 StorageFrontend::GetFactoryInstance();
81 SystemInfoAPI::GetFactoryInstance();
82 UsbEventRouter::GetFactoryInstance();
83 UsbGuidMap::GetFactoryInstance();
84 #if defined(OS_CHROMEOS)
85 VirtualKeyboardAPI::GetFactoryInstance();
86 WebcamPrivateAPI::GetFactoryInstance();
88 WebRequestAPI::GetFactoryInstance();
91 } // namespace extensions