Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / extensions / browser / browser_context_keyed_service_factories.cc
blob8082c29430205ec38341b7d696bdfa41f63c613c
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/api_resource_manager.h"
8 #include "extensions/browser/api/audio/audio_api.h"
9 #include "extensions/browser/api/hid/hid_device_manager.h"
10 #include "extensions/browser/api/idle/idle_manager_factory.h"
11 #include "extensions/browser/api/management/management_api.h"
12 #include "extensions/browser/api/runtime/runtime_api.h"
13 #include "extensions/browser/api/serial/serial_connection.h"
14 #include "extensions/browser/api/socket/socket.h"
15 #include "extensions/browser/api/socket/tcp_socket.h"
16 #include "extensions/browser/api/socket/udp_socket.h"
17 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
18 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h"
19 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h"
20 #include "extensions/browser/api/storage/storage_frontend.h"
21 #include "extensions/browser/api/system_info/system_info_api.h"
22 #include "extensions/browser/api/usb/usb_event_router.h"
23 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h"
24 #include "extensions/browser/extension_prefs_factory.h"
25 #include "extensions/browser/process_manager_factory.h"
26 #include "extensions/browser/renderer_startup_helper.h"
28 namespace extensions {
30 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
31 ApiResourceManager<ResumableTCPServerSocket>::GetFactoryInstance();
32 ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance();
33 ApiResourceManager<ResumableUDPSocket>::GetFactoryInstance();
34 ApiResourceManager<SerialConnection>::GetFactoryInstance();
35 ApiResourceManager<Socket>::GetFactoryInstance();
36 AudioAPI::GetFactoryInstance();
37 #if defined(OS_CHROMEOS)
38 chromeos::VpnServiceFactory::GetInstance();
39 #endif
40 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance();
41 core_api::TCPSocketEventDispatcher::GetFactoryInstance();
42 core_api::UDPSocketEventDispatcher::GetFactoryInstance();
43 ExtensionPrefsFactory::GetInstance();
44 HidDeviceManager::GetFactoryInstance();
45 IdleManagerFactory::GetInstance();
46 ManagementAPI::GetFactoryInstance();
47 ProcessManagerFactory::GetInstance();
48 RendererStartupHelperFactory::GetInstance();
49 RuntimeAPI::GetFactoryInstance();
50 StorageFrontend::GetFactoryInstance();
51 SystemInfoAPI::GetFactoryInstance();
52 UsbEventRouter::GetFactoryInstance();
55 } // namespace extensions