// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/browser_context_keyed_service_factories.h" #include "build/build_config.h" #include "extensions/browser/api/alarms/alarm_manager.h" #include "extensions/browser/api/api_resource_manager.h" #include "extensions/browser/api/audio/audio_api.h" #include "extensions/browser/api/bluetooth/bluetooth_api.h" #include "extensions/browser/api/bluetooth/bluetooth_private_api.h" #include "extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h" #include "extensions/browser/api/display_source/display_source_event_router_factory.h" #include "extensions/browser/api/hid/hid_device_manager.h" #include "extensions/browser/api/idle/idle_manager_factory.h" #include "extensions/browser/api/management/management_api.h" #include "extensions/browser/api/networking_config/networking_config_service_factory.h" #include "extensions/browser/api/networking_private/networking_private_event_router_factory.h" #include "extensions/browser/api/power/power_api.h" #include "extensions/browser/api/runtime/runtime_api.h" #include "extensions/browser/api/serial/serial_connection.h" #include "extensions/browser/api/socket/socket.h" #include "extensions/browser/api/socket/tcp_socket.h" #include "extensions/browser/api/socket/udp_socket.h" #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h" #include "extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h" #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h" #include "extensions/browser/api/storage/storage_frontend.h" #include "extensions/browser/api/system_info/system_info_api.h" #include "extensions/browser/api/usb/usb_device_resource.h" #include "extensions/browser/api/usb/usb_event_router.h" #include "extensions/browser/api/usb/usb_guid_map.h" #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h" #include "extensions/browser/api/vpn_provider/vpn_service_factory.h" #include "extensions/browser/api/web_request/web_request_api.h" #include "extensions/browser/api/webcam_private/webcam_private_api.h" #include "extensions/browser/declarative_user_script_manager_factory.h" #include "extensions/browser/event_router_factory.h" #include "extensions/browser/extension_message_filter.h" #include "extensions/browser/extension_prefs_factory.h" #include "extensions/browser/process_manager_factory.h" #include "extensions/browser/renderer_startup_helper.h" namespace extensions { void EnsureBrowserContextKeyedServiceFactoriesBuilt() { AlarmManager::GetFactoryInstance(); ApiResourceManager::GetFactoryInstance(); ApiResourceManager::GetFactoryInstance(); ApiResourceManager::GetFactoryInstance(); ApiResourceManager::GetFactoryInstance(); ApiResourceManager::GetFactoryInstance(); ApiResourceManager::GetFactoryInstance(); AudioAPI::GetFactoryInstance(); BluetoothAPI::GetFactoryInstance(); BluetoothPrivateAPI::GetFactoryInstance(); #if defined(OS_CHROMEOS) chromeos::VpnServiceFactory::GetInstance(); #endif api::BluetoothSocketEventDispatcher::GetFactoryInstance(); api::TCPServerSocketEventDispatcher::GetFactoryInstance(); api::TCPSocketEventDispatcher::GetFactoryInstance(); api::UDPSocketEventDispatcher::GetFactoryInstance(); DeclarativeUserScriptManagerFactory::GetInstance(); DisplaySourceEventRouterFactory::GetInstance(); EventRouterFactory::GetInstance(); ExtensionMessageFilter::EnsureShutdownNotifierFactoryBuilt(); ExtensionPrefsFactory::GetInstance(); HidDeviceManager::GetFactoryInstance(); IdleManagerFactory::GetInstance(); ManagementAPI::GetFactoryInstance(); #if defined(OS_CHROMEOS) NetworkingConfigServiceFactory::GetInstance(); #endif #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX) NetworkingPrivateEventRouterFactory::GetInstance(); #endif PowerAPI::GetFactoryInstance(); ProcessManagerFactory::GetInstance(); RendererStartupHelperFactory::GetInstance(); RuntimeAPI::GetFactoryInstance(); StorageFrontend::GetFactoryInstance(); SystemInfoAPI::GetFactoryInstance(); UsbEventRouter::GetFactoryInstance(); UsbGuidMap::GetFactoryInstance(); #if defined(OS_CHROMEOS) VirtualKeyboardAPI::GetFactoryInstance(); WebcamPrivateAPI::GetFactoryInstance(); #endif WebRequestAPI::GetFactoryInstance(); } } // namespace extensions