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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 413 } |
414 { | 414 { |
415 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:HighResTimerManager") | 415 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:HighResTimerManager") |
416 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); | 416 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); |
417 } | 417 } |
418 { | 418 { |
419 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier") | 419 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier") |
420 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); | 420 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); |
421 } | 421 } |
422 | 422 |
| 423 #if !defined(OS_IOS) |
423 { | 424 { |
424 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures") | 425 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures") |
425 media::InitializeCPUSpecificMediaFeatures(); | 426 media::InitializeCPUSpecificMediaFeatures(); |
426 } | 427 } |
427 { | 428 { |
428 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:AudioMan") | 429 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:AudioMan") |
429 audio_manager_.reset(media::AudioManager::Create()); | 430 audio_manager_.reset(media::AudioManager::Create()); |
430 } | 431 } |
431 { | 432 { |
432 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MIDIManager") | 433 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MIDIManager") |
433 midi_manager_.reset(media::MIDIManager::Create()); | 434 midi_manager_.reset(media::MIDIManager::Create()); |
434 } | 435 } |
435 | |
436 #if !defined(OS_IOS) | |
437 { | 436 { |
438 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:ContentWebUIController") | 437 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:ContentWebUIController") |
439 WebUIControllerFactory::RegisterFactory( | 438 WebUIControllerFactory::RegisterFactory( |
440 ContentWebUIControllerFactory::GetInstance()); | 439 ContentWebUIControllerFactory::GetInstance()); |
441 } | 440 } |
442 | 441 |
443 { | 442 { |
444 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:AudioMirroringManager") | 443 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:AudioMirroringManager") |
445 audio_mirroring_manager_.reset(new AudioMirroringManager()); | 444 audio_mirroring_manager_.reset(new AudioMirroringManager()); |
446 } | 445 } |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 if (parameters_.ui_task) | 972 if (parameters_.ui_task) |
974 base::MessageLoopForUI::current()->PostTask(FROM_HERE, | 973 base::MessageLoopForUI::current()->PostTask(FROM_HERE, |
975 *parameters_.ui_task); | 974 *parameters_.ui_task); |
976 | 975 |
977 base::RunLoop run_loop; | 976 base::RunLoop run_loop; |
978 run_loop.Run(); | 977 run_loop.Run(); |
979 #endif | 978 #endif |
980 } | 979 } |
981 | 980 |
982 } // namespace content | 981 } // namespace content |
OLD | NEW |