Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / extensions / browser / browser_context_keyed_service_factories.cc
blobebdf0e4e3a448038b4aea61f7284a00f27e4fa0c
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/extension_message_filter.h"
28 #include "extensions/browser/extension_prefs_factory.h"
29 #include "extensions/browser/process_manager_factory.h"
30 #include "extensions/browser/renderer_startup_helper.h"
32 namespace extensions {
34 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
35 AlarmManager::GetFactoryInstance();
36 ApiResourceManager<ResumableTCPServerSocket>::GetFactoryInstance();
37 ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance();
38 ApiResourceManager<ResumableUDPSocket>::GetFactoryInstance();
39 ApiResourceManager<SerialConnection>::GetFactoryInstance();
40 ApiResourceManager<Socket>::GetFactoryInstance();
41 AudioAPI::GetFactoryInstance();
42 #if defined(OS_CHROMEOS)
43 chromeos::VpnServiceFactory::GetInstance();
44 #endif
45 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance();
46 core_api::TCPSocketEventDispatcher::GetFactoryInstance();
47 core_api::UDPSocketEventDispatcher::GetFactoryInstance();
48 ExtensionMessageFilter::EnsureShutdownNotifierFactoryBuilt();
49 ExtensionPrefsFactory::GetInstance();
50 HidDeviceManager::GetFactoryInstance();
51 IdleManagerFactory::GetInstance();
52 ManagementAPI::GetFactoryInstance();
53 #if defined(OS_CHROMEOS)
54 NetworkingConfigServiceFactory::GetInstance();
55 #endif
56 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)
57 NetworkingPrivateEventRouterFactory::GetInstance();
58 #endif
59 ProcessManagerFactory::GetInstance();
60 RendererStartupHelperFactory::GetInstance();
61 RuntimeAPI::GetFactoryInstance();
62 StorageFrontend::GetFactoryInstance();
63 SystemInfoAPI::GetFactoryInstance();
64 UsbEventRouter::GetFactoryInstance();
67 } // namespace extensions