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

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

Issue 541763002: tracing: get rid of files in TracingController interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed build following removal of cast opterator in scoped_refptr Created 6 years, 3 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
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/file_util.h"
11 #include "base/logging.h" 10 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/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/path_service.h" 14 #include "base/path_service.h"
16 #include "base/pending_task.h" 15 #include "base/pending_task.h"
17 #include "base/power_monitor/power_monitor.h" 16 #include "base/power_monitor/power_monitor.h"
18 #include "base/power_monitor/power_monitor_device_source.h" 17 #include "base/power_monitor/power_monitor_device_source.h"
19 #include "base/process/process_metrics.h" 18 #include "base/process/process_metrics.h"
20 #include "base/run_loop.h" 19 #include "base/run_loop.h"
(...skipping 13 matching lines...) Expand all
34 #include "content/browser/gpu/gpu_process_host.h" 33 #include "content/browser/gpu/gpu_process_host.h"
35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 34 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
36 #include "content/browser/histogram_synchronizer.h" 35 #include "content/browser/histogram_synchronizer.h"
37 #include "content/browser/loader/resource_dispatcher_host_impl.h" 36 #include "content/browser/loader/resource_dispatcher_host_impl.h"
38 #include "content/browser/media/media_internals.h" 37 #include "content/browser/media/media_internals.h"
39 #include "content/browser/net/browser_online_state_observer.h" 38 #include "content/browser/net/browser_online_state_observer.h"
40 #include "content/browser/renderer_host/media/media_stream_manager.h" 39 #include "content/browser/renderer_host/media/media_stream_manager.h"
41 #include "content/browser/speech/speech_recognition_manager_impl.h" 40 #include "content/browser/speech/speech_recognition_manager_impl.h"
42 #include "content/browser/startup_task_runner.h" 41 #include "content/browser/startup_task_runner.h"
43 #include "content/browser/time_zone_monitor.h" 42 #include "content/browser/time_zone_monitor.h"
43 #include "content/browser/tracing/tracing_controller_impl.h"
44 #include "content/browser/webui/content_web_ui_controller_factory.h" 44 #include "content/browser/webui/content_web_ui_controller_factory.h"
45 #include "content/browser/webui/url_data_manager.h" 45 #include "content/browser/webui/url_data_manager.h"
46 #include "content/public/browser/browser_main_parts.h" 46 #include "content/public/browser/browser_main_parts.h"
47 #include "content/public/browser/browser_shutdown.h" 47 #include "content/public/browser/browser_shutdown.h"
48 #include "content/public/browser/content_browser_client.h" 48 #include "content/public/browser/content_browser_client.h"
49 #include "content/public/browser/render_process_host.h" 49 #include "content/public/browser/render_process_host.h"
50 #include "content/public/browser/tracing_controller.h"
51 #include "content/public/common/content_switches.h" 50 #include "content/public/common/content_switches.h"
52 #include "content/public/common/main_function_params.h" 51 #include "content/public/common/main_function_params.h"
53 #include "content/public/common/result_codes.h" 52 #include "content/public/common/result_codes.h"
54 #include "crypto/nss_util.h" 53 #include "crypto/nss_util.h"
55 #include "media/audio/audio_manager.h" 54 #include "media/audio/audio_manager.h"
56 #include "media/base/media.h" 55 #include "media/base/media.h"
57 #include "media/base/user_input_monitor.h" 56 #include "media/base/user_input_monitor.h"
58 #include "media/midi/midi_manager.h" 57 #include "media/midi/midi_manager.h"
59 #include "net/base/network_change_notifier.h" 58 #include "net/base/network_change_notifier.h"
60 #include "net/socket/client_socket_factory.h" 59 #include "net/socket/client_socket_factory.h"
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 1189
1191 startup_trace_timer_.Start(FROM_HERE, 1190 startup_trace_timer_.Start(FROM_HERE,
1192 base::TimeDelta::FromSeconds(delay_secs), 1191 base::TimeDelta::FromSeconds(delay_secs),
1193 this, 1192 this,
1194 &BrowserMainLoop::EndStartupTracing); 1193 &BrowserMainLoop::EndStartupTracing);
1195 } 1194 }
1196 1195
1197 void BrowserMainLoop::EndStartupTracing() { 1196 void BrowserMainLoop::EndStartupTracing() {
1198 is_tracing_startup_ = false; 1197 is_tracing_startup_ = false;
1199 TracingController::GetInstance()->DisableRecording( 1198 TracingController::GetInstance()->DisableRecording(
1200 startup_trace_file_, base::Bind(&OnStoppedStartupTracing)); 1199 TracingControllerImpl::CreateFileSink(startup_trace_file_,
1200 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1201 } 1201 }
1202 1202
1203 } // namespace content 1203 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698