| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ | 6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void UnregisterTracingUI(TracingUI* tracing_ui); | 63 void UnregisterTracingUI(TracingUI* tracing_ui); |
| 64 | 64 |
| 65 // base::trace_event::TracingAgent implementation. | 65 // base::trace_event::TracingAgent implementation. |
| 66 std::string GetTracingAgentName() override; | 66 std::string GetTracingAgentName() override; |
| 67 std::string GetTraceEventLabel() override; | 67 std::string GetTraceEventLabel() override; |
| 68 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config, | 68 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config, |
| 69 const StartAgentTracingCallback& callback) override; | 69 const StartAgentTracingCallback& callback) override; |
| 70 void StopAgentTracing(const StopAgentTracingCallback& callback) override; | 70 void StopAgentTracing(const StopAgentTracingCallback& callback) override; |
| 71 bool SupportsExplicitClockSync() override; | 71 bool SupportsExplicitClockSync() override; |
| 72 void RecordClockSyncMarker( | 72 void RecordClockSyncMarker( |
| 73 int sync_id, | 73 const std::string& sync_id, |
| 74 const RecordClockSyncMarkerCallback& callback) override; | 74 const RecordClockSyncMarkerCallback& callback) override; |
| 75 | 75 |
| 76 // base::trace_event::MemoryDumpManagerDelegate implementation. | 76 // base::trace_event::MemoryDumpManagerDelegate implementation. |
| 77 void RequestGlobalMemoryDump( | 77 void RequestGlobalMemoryDump( |
| 78 const base::trace_event::MemoryDumpRequestArgs& args, | 78 const base::trace_event::MemoryDumpRequestArgs& args, |
| 79 const base::trace_event::MemoryDumpCallback& callback) override; | 79 const base::trace_event::MemoryDumpCallback& callback) override; |
| 80 uint64_t GetTracingProcessId() const override; | 80 uint64_t GetTracingProcessId() const override; |
| 81 | 81 |
| 82 class TraceMessageFilterObserver { | 82 class TraceMessageFilterObserver { |
| 83 public: | 83 public: |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void OnAllTracingAgentsStarted(); | 175 void OnAllTracingAgentsStarted(); |
| 176 void StopTracingAfterClockSync(); | 176 void StopTracingAfterClockSync(); |
| 177 void OnStopTracingDone(); | 177 void OnStopTracingDone(); |
| 178 void OnStartMonitoringDone( | 178 void OnStartMonitoringDone( |
| 179 const base::trace_event::TraceConfig& trace_config, | 179 const base::trace_event::TraceConfig& trace_config, |
| 180 const StartMonitoringDoneCallback& callback); | 180 const StartMonitoringDoneCallback& callback); |
| 181 void OnStopMonitoringDone(const StopMonitoringDoneCallback& callback); | 181 void OnStopMonitoringDone(const StopMonitoringDoneCallback& callback); |
| 182 | 182 |
| 183 void OnMonitoringStateChanged(bool is_monitoring); | 183 void OnMonitoringStateChanged(bool is_monitoring); |
| 184 | 184 |
| 185 int GetUniqueClockSyncID(); | |
| 186 // Issue clock sync markers to the tracing agents. | 185 // Issue clock sync markers to the tracing agents. |
| 187 void IssueClockSyncMarker(); | 186 void IssueClockSyncMarker(); |
| 188 void OnClockSyncMarkerRecordedByAgent( | 187 void OnClockSyncMarkerRecordedByAgent( |
| 189 int sync_id, | 188 const std::string& sync_id, |
| 190 const base::TimeTicks& issue_ts, | 189 const base::TimeTicks& issue_ts, |
| 191 const base::TimeTicks& issue_end_ts); | 190 const base::TimeTicks& issue_end_ts); |
| 192 | 191 |
| 193 typedef std::set<scoped_refptr<TraceMessageFilter>> TraceMessageFilterSet; | 192 typedef std::set<scoped_refptr<TraceMessageFilter>> TraceMessageFilterSet; |
| 194 TraceMessageFilterSet trace_message_filters_; | 193 TraceMessageFilterSet trace_message_filters_; |
| 195 | 194 |
| 196 // Pending acks for StartTracing. | 195 // Pending acks for StartTracing. |
| 197 int pending_start_tracing_ack_count_; | 196 int pending_start_tracing_ack_count_; |
| 198 base::OneShotTimer start_tracing_timer_; | 197 base::OneShotTimer start_tracing_timer_; |
| 199 StartTracingDoneCallback start_tracing_done_callback_; | 198 StartTracingDoneCallback start_tracing_done_callback_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 std::set<TracingUI*> tracing_uis_; | 241 std::set<TracingUI*> tracing_uis_; |
| 243 scoped_refptr<TraceDataSink> trace_data_sink_; | 242 scoped_refptr<TraceDataSink> trace_data_sink_; |
| 244 scoped_refptr<TraceDataSink> monitoring_data_sink_; | 243 scoped_refptr<TraceDataSink> monitoring_data_sink_; |
| 245 | 244 |
| 246 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); | 245 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); |
| 247 }; | 246 }; |
| 248 | 247 |
| 249 } // namespace content | 248 } // namespace content |
| 250 | 249 |
| 251 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ | 250 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ |
| OLD | NEW |