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/hid/hid_device_manager.h"
11 #include "extensions/browser/api/idle/idle_manager_factory.h"
12 #include "extensions/browser/api/management/management_api.h"
13 #include "extensions/browser/api/networking_config/networking_config_service_factory.h"
14 #include "extensions/browser/api/networking_private/networking_private_event_router_factory.h"
15 #include "extensions/browser/api/runtime/runtime_api.h"
16 #include "extensions/browser/api/serial/serial_connection.h"
17 #include "extensions/browser/api/socket/socket.h"
18 #include "extensions/browser/api/socket/tcp_socket.h"
19 #include "extensions/browser/api/socket/udp_socket.h"
20 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
21 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h"
22 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h"
23 #include "extensions/browser/api/storage/storage_frontend.h"
24 #include "extensions/browser/api/system_info/system_info_api.h"
25 #include "extensions/browser/api/usb/usb_event_router.h"
26 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h"
27 #include "extensions/browser/api/webcam_private/webcam_private_api.h"
28 #include "extensions/browser/extension_message_filter.h"
29 #include "extensions/browser/extension_prefs_factory.h"
30 #include "extensions/browser/process_manager_factory.h"
31 #include "extensions/browser/renderer_startup_helper.h"
33 namespace extensions
{
35 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
36 AlarmManager::GetFactoryInstance();
37 ApiResourceManager
<ResumableTCPServerSocket
>::GetFactoryInstance();
38 ApiResourceManager
<ResumableTCPSocket
>::GetFactoryInstance();
39 ApiResourceManager
<ResumableUDPSocket
>::GetFactoryInstance();
40 ApiResourceManager
<SerialConnection
>::GetFactoryInstance();
41 ApiResourceManager
<Socket
>::GetFactoryInstance();
42 AudioAPI::GetFactoryInstance();
43 #if defined(OS_CHROMEOS)
44 chromeos::VpnServiceFactory::GetInstance();
46 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance();
47 core_api::TCPSocketEventDispatcher::GetFactoryInstance();
48 core_api::UDPSocketEventDispatcher::GetFactoryInstance();
49 ExtensionMessageFilter::EnsureShutdownNotifierFactoryBuilt();
50 ExtensionPrefsFactory::GetInstance();
51 HidDeviceManager::GetFactoryInstance();
52 IdleManagerFactory::GetInstance();
53 ManagementAPI::GetFactoryInstance();
54 #if defined(OS_CHROMEOS)
55 NetworkingConfigServiceFactory::GetInstance();
57 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)
58 NetworkingPrivateEventRouterFactory::GetInstance();
60 ProcessManagerFactory::GetInstance();
61 RendererStartupHelperFactory::GetInstance();
62 RuntimeAPI::GetFactoryInstance();
63 StorageFrontend::GetFactoryInstance();
64 SystemInfoAPI::GetFactoryInstance();
65 UsbEventRouter::GetFactoryInstance();
66 #if defined(OS_CHROMEOS)
67 WebcamPrivateAPI::GetFactoryInstance();
71 } // namespace extensions