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/runtime/runtime_api.h"
9 #include "extensions/browser/api/socket/socket.h"
10 #include "extensions/browser/api/socket/tcp_socket.h"
11 #include "extensions/browser/api/socket/udp_socket.h"
12 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
13 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h"
14 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h"
15 #include "extensions/browser/api/storage/storage_frontend.h"
16 #include "extensions/browser/extension_prefs_factory.h"
17 #include "extensions/browser/renderer_startup_helper.h"
19 namespace extensions
{
21 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
23 extensions::ResumableTCPServerSocket
>::GetFactoryInstance();
24 ApiResourceManager
<extensions::ResumableTCPSocket
>::GetFactoryInstance();
25 ApiResourceManager
<extensions::ResumableUDPSocket
>::GetFactoryInstance();
26 ApiResourceManager
<extensions::Socket
>::GetFactoryInstance();
27 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance();
28 core_api::TCPSocketEventDispatcher::GetFactoryInstance();
29 core_api::UDPSocketEventDispatcher::GetFactoryInstance();
30 ExtensionPrefsFactory::GetInstance();
31 RendererStartupHelperFactory::GetInstance();
32 RuntimeAPI::GetFactoryInstance();
33 StorageFrontend::GetFactoryInstance();
36 } // namespace extensions