Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 18063004: Move timing files into base/time, install forwarding headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/plugin/plugin_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/hi_res_timer_manager.h"
11 #include "base/logging.h" 10 #include "base/logging.h"
12 #include "base/message_loop.h" 11 #include "base/message_loop.h"
13 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
14 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
15 #include "base/pending_task.h" 14 #include "base/pending_task.h"
16 #include "base/power_monitor/power_monitor.h" 15 #include "base/power_monitor/power_monitor.h"
17 #include "base/run_loop.h" 16 #include "base/run_loop.h"
18 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
19 #include "base/system_monitor/system_monitor.h" 18 #include "base/system_monitor/system_monitor.h"
20 #include "base/threading/thread_restrictions.h" 19 #include "base/threading/thread_restrictions.h"
20 #include "base/timer/hi_res_timer_manager.h"
21 #include "content/browser/browser_thread_impl.h" 21 #include "content/browser/browser_thread_impl.h"
22 #include "content/browser/download/save_file_manager.h" 22 #include "content/browser/download/save_file_manager.h"
23 #include "content/browser/gamepad/gamepad_service.h" 23 #include "content/browser/gamepad/gamepad_service.h"
24 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 24 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
25 #include "content/browser/gpu/gpu_data_manager_impl.h" 25 #include "content/browser/gpu/gpu_data_manager_impl.h"
26 #include "content/browser/gpu/gpu_process_host.h" 26 #include "content/browser/gpu/gpu_process_host.h"
27 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 27 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
28 #include "content/browser/histogram_synchronizer.h" 28 #include "content/browser/histogram_synchronizer.h"
29 #include "content/browser/in_process_webkit/webkit_thread.h" 29 #include "content/browser/in_process_webkit/webkit_thread.h"
30 #include "content/browser/loader/resource_dispatcher_host_impl.h" 30 #include "content/browser/loader/resource_dispatcher_host_impl.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 { 387 {
388 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:SystemMonitor") 388 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:SystemMonitor")
389 system_monitor_.reset(new base::SystemMonitor); 389 system_monitor_.reset(new base::SystemMonitor);
390 } 390 }
391 { 391 {
392 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:PowerMonitor") 392 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:PowerMonitor")
393 power_monitor_.reset(new base::PowerMonitor); 393 power_monitor_.reset(new base::PowerMonitor);
394 } 394 }
395 { 395 {
396 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:HighResTimerManager") 396 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:HighResTimerManager")
397 hi_res_timer_manager_.reset(new HighResolutionTimerManager); 397 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager);
398 } 398 }
399 { 399 {
400 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier") 400 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier")
401 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); 401 network_change_notifier_.reset(net::NetworkChangeNotifier::Create());
402 } 402 }
403 403
404 { 404 {
405 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures") 405 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures")
406 media::InitializeCPUSpecificMediaFeatures(); 406 media::InitializeCPUSpecificMediaFeatures();
407 } 407 }
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 if (parameters_.ui_task) 930 if (parameters_.ui_task)
931 base::MessageLoopForUI::current()->PostTask(FROM_HERE, 931 base::MessageLoopForUI::current()->PostTask(FROM_HERE,
932 *parameters_.ui_task); 932 *parameters_.ui_task);
933 933
934 base::RunLoop run_loop; 934 base::RunLoop run_loop;
935 run_loop.Run(); 935 run_loop.Run();
936 #endif 936 #endif
937 } 937 }
938 938
939 } // namespace content 939 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698