Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Side by Side Diff: extensions/browser/browser_context_keyed_service_factories.cc

Issue 901573003: Split ExtensionMessageFilter up into a UI thread part and an IO thread part. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/browser_context_keyed_service_factories.h" 5 #include "extensions/browser/browser_context_keyed_service_factories.h"
6 6
7 #include "extensions/browser/api/alarms/alarm_manager.h" 7 #include "extensions/browser/api/alarms/alarm_manager.h"
8 #include "extensions/browser/api/api_resource_manager.h" 8 #include "extensions/browser/api/api_resource_manager.h"
9 #include "extensions/browser/api/audio/audio_api.h" 9 #include "extensions/browser/api/audio/audio_api.h"
10 #include "extensions/browser/api/hid/hid_device_manager.h" 10 #include "extensions/browser/api/hid/hid_device_manager.h"
11 #include "extensions/browser/api/idle/idle_manager_factory.h" 11 #include "extensions/browser/api/idle/idle_manager_factory.h"
12 #include "extensions/browser/api/management/management_api.h" 12 #include "extensions/browser/api/management/management_api.h"
13 #include "extensions/browser/api/networking_config/networking_config_service_fac tory.h" 13 #include "extensions/browser/api/networking_config/networking_config_service_fac tory.h"
14 #include "extensions/browser/api/networking_private/networking_private_event_rou ter_factory.h" 14 #include "extensions/browser/api/networking_private/networking_private_event_rou ter_factory.h"
15 #include "extensions/browser/api/runtime/runtime_api.h" 15 #include "extensions/browser/api/runtime/runtime_api.h"
16 #include "extensions/browser/api/serial/serial_connection.h" 16 #include "extensions/browser/api/serial/serial_connection.h"
17 #include "extensions/browser/api/socket/socket.h" 17 #include "extensions/browser/api/socket/socket.h"
18 #include "extensions/browser/api/socket/tcp_socket.h" 18 #include "extensions/browser/api/socket/tcp_socket.h"
19 #include "extensions/browser/api/socket/udp_socket.h" 19 #include "extensions/browser/api/socket/udp_socket.h"
20 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.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_disp atcher.h" 21 #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_disp atcher.h"
22 #include "extensions/browser/api/sockets_udp/udp_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" 23 #include "extensions/browser/api/storage/storage_frontend.h"
24 #include "extensions/browser/api/system_info/system_info_api.h" 24 #include "extensions/browser/api/system_info/system_info_api.h"
25 #include "extensions/browser/api/usb/usb_event_router.h" 25 #include "extensions/browser/api/usb/usb_event_router.h"
26 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h" 26 #include "extensions/browser/api/vpn_provider/vpn_service_factory.h"
27 #include "extensions/browser/extension_message_filter.h"
27 #include "extensions/browser/extension_prefs_factory.h" 28 #include "extensions/browser/extension_prefs_factory.h"
28 #include "extensions/browser/process_manager_factory.h" 29 #include "extensions/browser/process_manager_factory.h"
29 #include "extensions/browser/renderer_startup_helper.h" 30 #include "extensions/browser/renderer_startup_helper.h"
30 31
31 namespace extensions { 32 namespace extensions {
32 33
33 void EnsureBrowserContextKeyedServiceFactoriesBuilt() { 34 void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
34 AlarmManager::GetFactoryInstance(); 35 AlarmManager::GetFactoryInstance();
35 ApiResourceManager<ResumableTCPServerSocket>::GetFactoryInstance(); 36 ApiResourceManager<ResumableTCPServerSocket>::GetFactoryInstance();
36 ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance(); 37 ApiResourceManager<ResumableTCPSocket>::GetFactoryInstance();
37 ApiResourceManager<ResumableUDPSocket>::GetFactoryInstance(); 38 ApiResourceManager<ResumableUDPSocket>::GetFactoryInstance();
38 ApiResourceManager<SerialConnection>::GetFactoryInstance(); 39 ApiResourceManager<SerialConnection>::GetFactoryInstance();
39 ApiResourceManager<Socket>::GetFactoryInstance(); 40 ApiResourceManager<Socket>::GetFactoryInstance();
40 AudioAPI::GetFactoryInstance(); 41 AudioAPI::GetFactoryInstance();
41 #if defined(OS_CHROMEOS) 42 #if defined(OS_CHROMEOS)
42 chromeos::VpnServiceFactory::GetInstance(); 43 chromeos::VpnServiceFactory::GetInstance();
43 #endif 44 #endif
44 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance(); 45 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance();
45 core_api::TCPSocketEventDispatcher::GetFactoryInstance(); 46 core_api::TCPSocketEventDispatcher::GetFactoryInstance();
46 core_api::UDPSocketEventDispatcher::GetFactoryInstance(); 47 core_api::UDPSocketEventDispatcher::GetFactoryInstance();
48 ExtensionMessageFilter::EnsureShutdownNotifierFactoryBuilt();
47 ExtensionPrefsFactory::GetInstance(); 49 ExtensionPrefsFactory::GetInstance();
48 HidDeviceManager::GetFactoryInstance(); 50 HidDeviceManager::GetFactoryInstance();
49 IdleManagerFactory::GetInstance(); 51 IdleManagerFactory::GetInstance();
50 ManagementAPI::GetFactoryInstance(); 52 ManagementAPI::GetFactoryInstance();
51 #if defined(OS_CHROMEOS) 53 #if defined(OS_CHROMEOS)
52 NetworkingConfigServiceFactory::GetInstance(); 54 NetworkingConfigServiceFactory::GetInstance();
53 #endif 55 #endif
54 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX) 56 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)
55 NetworkingPrivateEventRouterFactory::GetInstance(); 57 NetworkingPrivateEventRouterFactory::GetInstance();
56 #endif 58 #endif
57 ProcessManagerFactory::GetInstance(); 59 ProcessManagerFactory::GetInstance();
58 RendererStartupHelperFactory::GetInstance(); 60 RendererStartupHelperFactory::GetInstance();
59 RuntimeAPI::GetFactoryInstance(); 61 RuntimeAPI::GetFactoryInstance();
60 StorageFrontend::GetFactoryInstance(); 62 StorageFrontend::GetFactoryInstance();
61 SystemInfoAPI::GetFactoryInstance(); 63 SystemInfoAPI::GetFactoryInstance();
62 UsbEventRouter::GetFactoryInstance(); 64 UsbEventRouter::GetFactoryInstance();
63 } 65 }
64 66
65 } // namespace extensions 67 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.cc ('k') | extensions/browser/extension_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698