| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "components/tracing/browser/trace_config_file.h" | 47 #include "components/tracing/browser/trace_config_file.h" |
| 48 #include "components/tracing/common/process_metrics_memory_dump_provider.h" | 48 #include "components/tracing/common/process_metrics_memory_dump_provider.h" |
| 49 #include "components/tracing/common/trace_to_console.h" | 49 #include "components/tracing/common/trace_to_console.h" |
| 50 #include "components/tracing/common/tracing_switches.h" | 50 #include "components/tracing/common/tracing_switches.h" |
| 51 #include "content/browser/audio_device_thread.h" | 51 #include "content/browser/audio_device_thread.h" |
| 52 #include "content/browser/browser_thread_impl.h" | 52 #include "content/browser/browser_thread_impl.h" |
| 53 #include "content/browser/device_sensors/device_sensor_service.h" | 53 #include "content/browser/device_sensors/device_sensor_service.h" |
| 54 #include "content/browser/dom_storage/dom_storage_area.h" | 54 #include "content/browser/dom_storage/dom_storage_area.h" |
| 55 #include "content/browser/download/download_resource_handler.h" | 55 #include "content/browser/download/download_resource_handler.h" |
| 56 #include "content/browser/download/save_file_manager.h" | 56 #include "content/browser/download/save_file_manager.h" |
| 57 #include "content/browser/gamepad/gamepad_service.h" | |
| 58 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 57 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
| 59 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 58 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
| 60 #include "content/browser/gpu/compositor_util.h" | 59 #include "content/browser/gpu/compositor_util.h" |
| 61 #include "content/browser/gpu/gpu_data_manager_impl.h" | 60 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 62 #include "content/browser/gpu/gpu_process_host.h" | 61 #include "content/browser/gpu/gpu_process_host.h" |
| 63 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 62 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| 64 #include "content/browser/gpu/shader_disk_cache.h" | 63 #include "content/browser/gpu/shader_disk_cache.h" |
| 65 #include "content/browser/histogram_synchronizer.h" | 64 #include "content/browser/histogram_synchronizer.h" |
| 66 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 65 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 67 #include "content/browser/loader_delegate_impl.h" | 66 #include "content/browser/loader_delegate_impl.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 83 #include "content/public/browser/content_browser_client.h" | 82 #include "content/public/browser/content_browser_client.h" |
| 84 #include "content/public/browser/gpu_data_manager_observer.h" | 83 #include "content/public/browser/gpu_data_manager_observer.h" |
| 85 #include "content/public/browser/render_process_host.h" | 84 #include "content/public/browser/render_process_host.h" |
| 86 #include "content/public/browser/tracing_controller.h" | 85 #include "content/public/browser/tracing_controller.h" |
| 87 #include "content/public/common/content_client.h" | 86 #include "content/public/common/content_client.h" |
| 88 #include "content/public/common/content_features.h" | 87 #include "content/public/common/content_features.h" |
| 89 #include "content/public/common/content_switches.h" | 88 #include "content/public/common/content_switches.h" |
| 90 #include "content/public/common/main_function_params.h" | 89 #include "content/public/common/main_function_params.h" |
| 91 #include "content/public/common/result_codes.h" | 90 #include "content/public/common/result_codes.h" |
| 92 #include "device/battery/battery_status_service.h" | 91 #include "device/battery/battery_status_service.h" |
| 92 #include "device/gamepad/gamepad_service.h" |
| 93 #include "device/time_zone_monitor/time_zone_monitor.h" | 93 #include "device/time_zone_monitor/time_zone_monitor.h" |
| 94 #include "media/base/media.h" | 94 #include "media/base/media.h" |
| 95 #include "media/base/user_input_monitor.h" | 95 #include "media/base/user_input_monitor.h" |
| 96 #include "media/midi/midi_manager.h" | 96 #include "media/midi/midi_manager.h" |
| 97 #include "mojo/edk/embedder/embedder.h" | 97 #include "mojo/edk/embedder/embedder.h" |
| 98 #include "mojo/edk/embedder/scoped_ipc_support.h" | 98 #include "mojo/edk/embedder/scoped_ipc_support.h" |
| 99 #include "net/base/network_change_notifier.h" | 99 #include "net/base/network_change_notifier.h" |
| 100 #include "net/socket/client_socket_factory.h" | 100 #include "net/socket/client_socket_factory.h" |
| 101 #include "net/ssl/ssl_config_service.h" | 101 #include "net/ssl/ssl_config_service.h" |
| 102 #include "ppapi/features/features.h" | 102 #include "ppapi/features/features.h" |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 ContextProviderFactoryImpl::Terminate(); | 1265 ContextProviderFactoryImpl::Terminate(); |
| 1266 #endif | 1266 #endif |
| 1267 BrowserGpuChannelHostFactory::Terminate(); | 1267 BrowserGpuChannelHostFactory::Terminate(); |
| 1268 } | 1268 } |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 // Must happen after the I/O thread is shutdown since this class lives on the | 1271 // Must happen after the I/O thread is shutdown since this class lives on the |
| 1272 // I/O thread and isn't threadsafe. | 1272 // I/O thread and isn't threadsafe. |
| 1273 { | 1273 { |
| 1274 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:GamepadService"); | 1274 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:GamepadService"); |
| 1275 GamepadService::GetInstance()->Terminate(); | 1275 device::GamepadService::GetInstance()->Terminate(); |
| 1276 } | 1276 } |
| 1277 { | 1277 { |
| 1278 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:SensorService"); | 1278 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:SensorService"); |
| 1279 DeviceSensorService::GetInstance()->Shutdown(); | 1279 DeviceSensorService::GetInstance()->Shutdown(); |
| 1280 } | 1280 } |
| 1281 #if !defined(OS_ANDROID) | 1281 #if !defined(OS_ANDROID) |
| 1282 { | 1282 { |
| 1283 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:BatteryStatusService"); | 1283 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:BatteryStatusService"); |
| 1284 device::BatteryStatusService::GetInstance()->Shutdown(); | 1284 device::BatteryStatusService::GetInstance()->Shutdown(); |
| 1285 } | 1285 } |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 if (!audio_manager_) { | 1701 if (!audio_manager_) { |
| 1702 audio_thread_ = base::MakeUnique<AudioDeviceThread>(); | 1702 audio_thread_ = base::MakeUnique<AudioDeviceThread>(); |
| 1703 audio_manager_ = media::AudioManager::Create( | 1703 audio_manager_ = media::AudioManager::Create( |
| 1704 audio_thread_->GetTaskRunner(), audio_thread_->worker_task_runner(), | 1704 audio_thread_->GetTaskRunner(), audio_thread_->worker_task_runner(), |
| 1705 MediaInternals::GetInstance()); | 1705 MediaInternals::GetInstance()); |
| 1706 } | 1706 } |
| 1707 CHECK(audio_manager_); | 1707 CHECK(audio_manager_); |
| 1708 } | 1708 } |
| 1709 | 1709 |
| 1710 } // namespace content | 1710 } // namespace content |
| OLD | NEW |