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

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 android 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 14 matching lines...) Expand all
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/plugin_service_impl.h" 39 #include "content/browser/plugin_service_impl.h"
41 #include "content/browser/renderer_host/media/media_stream_manager.h" 40 #include "content/browser/renderer_host/media/media_stream_manager.h"
42 #include "content/browser/speech/speech_recognition_manager_impl.h" 41 #include "content/browser/speech/speech_recognition_manager_impl.h"
43 #include "content/browser/startup_task_runner.h" 42 #include "content/browser/startup_task_runner.h"
44 #include "content/browser/time_zone_monitor.h" 43 #include "content/browser/time_zone_monitor.h"
44 #include "content/browser/tracing/tracing_controller_impl.h"
45 #include "content/browser/webui/content_web_ui_controller_factory.h" 45 #include "content/browser/webui/content_web_ui_controller_factory.h"
46 #include "content/browser/webui/url_data_manager.h" 46 #include "content/browser/webui/url_data_manager.h"
47 #include "content/public/browser/browser_main_parts.h" 47 #include "content/public/browser/browser_main_parts.h"
48 #include "content/public/browser/browser_shutdown.h" 48 #include "content/public/browser/browser_shutdown.h"
49 #include "content/public/browser/content_browser_client.h" 49 #include "content/public/browser/content_browser_client.h"
50 #include "content/public/browser/render_process_host.h" 50 #include "content/public/browser/render_process_host.h"
51 #include "content/public/browser/tracing_controller.h"
52 #include "content/public/common/content_switches.h" 51 #include "content/public/common/content_switches.h"
53 #include "content/public/common/main_function_params.h" 52 #include "content/public/common/main_function_params.h"
54 #include "content/public/common/result_codes.h" 53 #include "content/public/common/result_codes.h"
55 #include "crypto/nss_util.h" 54 #include "crypto/nss_util.h"
56 #include "media/audio/audio_manager.h" 55 #include "media/audio/audio_manager.h"
57 #include "media/base/media.h" 56 #include "media/base/media.h"
58 #include "media/base/user_input_monitor.h" 57 #include "media/base/user_input_monitor.h"
59 #include "media/midi/midi_manager.h" 58 #include "media/midi/midi_manager.h"
60 #include "net/base/network_change_notifier.h" 59 #include "net/base/network_change_notifier.h"
61 #include "net/socket/client_socket_factory.h" 60 #include "net/socket/client_socket_factory.h"
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 1187
1189 startup_trace_timer_.Start(FROM_HERE, 1188 startup_trace_timer_.Start(FROM_HERE,
1190 base::TimeDelta::FromSeconds(delay_secs), 1189 base::TimeDelta::FromSeconds(delay_secs),
1191 this, 1190 this,
1192 &BrowserMainLoop::EndStartupTracing); 1191 &BrowserMainLoop::EndStartupTracing);
1193 } 1192 }
1194 1193
1195 void BrowserMainLoop::EndStartupTracing() { 1194 void BrowserMainLoop::EndStartupTracing() {
1196 is_tracing_startup_ = false; 1195 is_tracing_startup_ = false;
1197 TracingController::GetInstance()->DisableRecording( 1196 TracingController::GetInstance()->DisableRecording(
1198 startup_trace_file_, base::Bind(&OnStoppedStartupTracing)); 1197 TracingControllerImpl::CreateFileSink(startup_trace_file_,
1198 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1199 } 1199 }
1200 1200
1201 } // namespace content 1201 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698