| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "content/browser/device_sensors/device_inertial_sensor_service.h" | 28 #include "content/browser/device_sensors/device_inertial_sensor_service.h" |
| 29 #include "content/browser/download/save_file_manager.h" | 29 #include "content/browser/download/save_file_manager.h" |
| 30 #include "content/browser/gamepad/gamepad_service.h" | 30 #include "content/browser/gamepad/gamepad_service.h" |
| 31 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 31 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
| 32 #include "content/browser/gpu/compositor_util.h" | 32 #include "content/browser/gpu/compositor_util.h" |
| 33 #include "content/browser/gpu/gpu_data_manager_impl.h" | 33 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 34 #include "content/browser/gpu/gpu_process_host.h" | 34 #include "content/browser/gpu/gpu_process_host.h" |
| 35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| 36 #include "content/browser/histogram_synchronizer.h" | 36 #include "content/browser/histogram_synchronizer.h" |
| 37 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 37 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 38 #include "content/browser/media/capture/audio_mirroring_manager.h" | |
| 39 #include "content/browser/media/media_internals.h" | 38 #include "content/browser/media/media_internals.h" |
| 40 #include "content/browser/net/browser_online_state_observer.h" | 39 #include "content/browser/net/browser_online_state_observer.h" |
| 41 #include "content/browser/plugin_service_impl.h" | 40 #include "content/browser/plugin_service_impl.h" |
| 42 #include "content/browser/renderer_host/media/media_stream_manager.h" | 41 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 43 #include "content/browser/speech/speech_recognition_manager_impl.h" | 42 #include "content/browser/speech/speech_recognition_manager_impl.h" |
| 44 #include "content/browser/startup_task_runner.h" | 43 #include "content/browser/startup_task_runner.h" |
| 45 #include "content/browser/time_zone_monitor.h" | 44 #include "content/browser/time_zone_monitor.h" |
| 46 #include "content/browser/webui/content_web_ui_controller_factory.h" | 45 #include "content/browser/webui/content_web_ui_controller_factory.h" |
| 47 #include "content/browser/webui/url_data_manager.h" | 46 #include "content/browser/webui/url_data_manager.h" |
| 48 #include "content/public/browser/browser_main_parts.h" | 47 #include "content/public/browser/browser_main_parts.h" |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 midi_manager_.reset(media::MidiManager::Create()); | 499 midi_manager_.reset(media::MidiManager::Create()); |
| 501 } | 500 } |
| 502 { | 501 { |
| 503 TRACE_EVENT0("startup", | 502 TRACE_EVENT0("startup", |
| 504 "BrowserMainLoop::Subsystem:ContentWebUIController"); | 503 "BrowserMainLoop::Subsystem:ContentWebUIController"); |
| 505 WebUIControllerFactory::RegisterFactory( | 504 WebUIControllerFactory::RegisterFactory( |
| 506 ContentWebUIControllerFactory::GetInstance()); | 505 ContentWebUIControllerFactory::GetInstance()); |
| 507 } | 506 } |
| 508 | 507 |
| 509 { | 508 { |
| 510 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:AudioMirroringManager"); | |
| 511 audio_mirroring_manager_.reset(new AudioMirroringManager()); | |
| 512 } | |
| 513 { | |
| 514 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:OnlineStateObserver"); | 509 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:OnlineStateObserver"); |
| 515 online_state_observer_.reset(new BrowserOnlineStateObserver); | 510 online_state_observer_.reset(new BrowserOnlineStateObserver); |
| 516 } | 511 } |
| 517 | 512 |
| 518 { | 513 { |
| 519 system_stats_monitor_.reset(new base::debug::TraceEventSystemStatsMonitor( | 514 system_stats_monitor_.reset(new base::debug::TraceEventSystemStatsMonitor( |
| 520 base::ThreadTaskRunnerHandle::Get())); | 515 base::ThreadTaskRunnerHandle::Get())); |
| 521 } | 516 } |
| 522 #endif // !defined(OS_IOS) | 517 #endif // !defined(OS_IOS) |
| 523 | 518 |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 &BrowserMainLoop::EndStartupTracing); | 1192 &BrowserMainLoop::EndStartupTracing); |
| 1198 } | 1193 } |
| 1199 | 1194 |
| 1200 void BrowserMainLoop::EndStartupTracing() { | 1195 void BrowserMainLoop::EndStartupTracing() { |
| 1201 is_tracing_startup_ = false; | 1196 is_tracing_startup_ = false; |
| 1202 TracingController::GetInstance()->DisableRecording( | 1197 TracingController::GetInstance()->DisableRecording( |
| 1203 startup_trace_file_, base::Bind(&OnStoppedStartupTracing)); | 1198 startup_trace_file_, base::Bind(&OnStoppedStartupTracing)); |
| 1204 } | 1199 } |
| 1205 | 1200 |
| 1206 } // namespace content | 1201 } // namespace content |
| OLD | NEW |