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 28 matching lines...) Expand all Loading... |
39 #include "build/build_config.h" | 39 #include "build/build_config.h" |
40 #include "components/tracing/browser/trace_config_file.h" | 40 #include "components/tracing/browser/trace_config_file.h" |
41 #include "components/tracing/common/process_metrics_memory_dump_provider.h" | 41 #include "components/tracing/common/process_metrics_memory_dump_provider.h" |
42 #include "components/tracing/common/trace_to_console.h" | 42 #include "components/tracing/common/trace_to_console.h" |
43 #include "components/tracing/common/tracing_switches.h" | 43 #include "components/tracing/common/tracing_switches.h" |
44 #include "content/browser/browser_thread_impl.h" | 44 #include "content/browser/browser_thread_impl.h" |
45 #include "content/browser/device_sensors/device_sensor_service.h" | 45 #include "content/browser/device_sensors/device_sensor_service.h" |
46 #include "content/browser/dom_storage/dom_storage_area.h" | 46 #include "content/browser/dom_storage/dom_storage_area.h" |
47 #include "content/browser/download/download_resource_handler.h" | 47 #include "content/browser/download/download_resource_handler.h" |
48 #include "content/browser/download/save_file_manager.h" | 48 #include "content/browser/download/save_file_manager.h" |
49 #include "content/browser/gamepad/gamepad_service.h" | |
50 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 49 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
51 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 50 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
52 #include "content/browser/gpu/compositor_util.h" | 51 #include "content/browser/gpu/compositor_util.h" |
53 #include "content/browser/gpu/gpu_data_manager_impl.h" | 52 #include "content/browser/gpu/gpu_data_manager_impl.h" |
54 #include "content/browser/gpu/gpu_process_host.h" | 53 #include "content/browser/gpu/gpu_process_host.h" |
55 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 54 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
56 #include "content/browser/histogram_synchronizer.h" | 55 #include "content/browser/histogram_synchronizer.h" |
57 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 56 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
58 #include "content/browser/loader_delegate_impl.h" | 57 #include "content/browser/loader_delegate_impl.h" |
59 #include "content/browser/media/media_internals.h" | 58 #include "content/browser/media/media_internals.h" |
(...skipping 15 matching lines...) Expand all Loading... |
75 #include "content/public/browser/content_browser_client.h" | 74 #include "content/public/browser/content_browser_client.h" |
76 #include "content/public/browser/gpu_data_manager_observer.h" | 75 #include "content/public/browser/gpu_data_manager_observer.h" |
77 #include "content/public/browser/render_process_host.h" | 76 #include "content/public/browser/render_process_host.h" |
78 #include "content/public/browser/tracing_controller.h" | 77 #include "content/public/browser/tracing_controller.h" |
79 #include "content/public/common/content_client.h" | 78 #include "content/public/common/content_client.h" |
80 #include "content/public/common/content_features.h" | 79 #include "content/public/common/content_features.h" |
81 #include "content/public/common/content_switches.h" | 80 #include "content/public/common/content_switches.h" |
82 #include "content/public/common/main_function_params.h" | 81 #include "content/public/common/main_function_params.h" |
83 #include "content/public/common/result_codes.h" | 82 #include "content/public/common/result_codes.h" |
84 #include "device/battery/battery_status_service.h" | 83 #include "device/battery/battery_status_service.h" |
| 84 #include "device/gamepad/gamepad_service.h" |
85 #include "device/time_zone_monitor/time_zone_monitor.h" | 85 #include "device/time_zone_monitor/time_zone_monitor.h" |
86 #include "media/base/media.h" | 86 #include "media/base/media.h" |
87 #include "media/base/user_input_monitor.h" | 87 #include "media/base/user_input_monitor.h" |
88 #include "media/midi/midi_manager.h" | 88 #include "media/midi/midi_manager.h" |
89 #include "mojo/edk/embedder/embedder.h" | 89 #include "mojo/edk/embedder/embedder.h" |
90 #include "mojo/edk/embedder/scoped_ipc_support.h" | 90 #include "mojo/edk/embedder/scoped_ipc_support.h" |
91 #include "net/base/network_change_notifier.h" | 91 #include "net/base/network_change_notifier.h" |
92 #include "net/socket/client_socket_factory.h" | 92 #include "net/socket/client_socket_factory.h" |
93 #include "net/ssl/ssl_config_service.h" | 93 #include "net/ssl/ssl_config_service.h" |
94 #include "ppapi/features/features.h" | 94 #include "ppapi/features/features.h" |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 ContextProviderFactoryImpl::Terminate(); | 1153 ContextProviderFactoryImpl::Terminate(); |
1154 #endif | 1154 #endif |
1155 BrowserGpuChannelHostFactory::Terminate(); | 1155 BrowserGpuChannelHostFactory::Terminate(); |
1156 } | 1156 } |
1157 } | 1157 } |
1158 | 1158 |
1159 // Must happen after the I/O thread is shutdown since this class lives on the | 1159 // Must happen after the I/O thread is shutdown since this class lives on the |
1160 // I/O thread and isn't threadsafe. | 1160 // I/O thread and isn't threadsafe. |
1161 { | 1161 { |
1162 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:GamepadService"); | 1162 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:GamepadService"); |
1163 GamepadService::GetInstance()->Terminate(); | 1163 device::GamepadService::GetInstance()->Terminate(); |
1164 } | 1164 } |
1165 { | 1165 { |
1166 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:SensorService"); | 1166 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:SensorService"); |
1167 DeviceSensorService::GetInstance()->Shutdown(); | 1167 DeviceSensorService::GetInstance()->Shutdown(); |
1168 } | 1168 } |
1169 #if !defined(OS_ANDROID) | 1169 #if !defined(OS_ANDROID) |
1170 { | 1170 { |
1171 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:BatteryStatusService"); | 1171 TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:BatteryStatusService"); |
1172 device::BatteryStatusService::GetInstance()->Shutdown(); | 1172 device::BatteryStatusService::GetInstance()->Shutdown(); |
1173 } | 1173 } |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = | 1592 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = |
1593 audio_thread_->task_runner(); | 1593 audio_thread_->task_runner(); |
1594 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), | 1594 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), |
1595 std::move(worker_task_runner), | 1595 std::move(worker_task_runner), |
1596 MediaInternals::GetInstance()); | 1596 MediaInternals::GetInstance()); |
1597 } | 1597 } |
1598 CHECK(audio_manager_); | 1598 CHECK(audio_manager_); |
1599 } | 1599 } |
1600 | 1600 |
1601 } // namespace content | 1601 } // namespace content |
OLD | NEW |