OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Callback of TraceLog::FlushMonitoring() for the local trace. | 108 // Callback of TraceLog::FlushMonitoring() for the local trace. |
109 void OnLocalMonitoringTraceDataCollected( | 109 void OnLocalMonitoringTraceDataCollected( |
110 const scoped_refptr<base::RefCountedString>& events_str_ptr, | 110 const scoped_refptr<base::RefCountedString>& events_str_ptr, |
111 bool has_more_events); | 111 bool has_more_events); |
112 | 112 |
113 void OnDisableRecordingAcked( | 113 void OnDisableRecordingAcked( |
114 TraceMessageFilter* trace_message_filter, | 114 TraceMessageFilter* trace_message_filter, |
115 const std::vector<std::string>& known_category_groups); | 115 const std::vector<std::string>& known_category_groups); |
116 void OnResultFileClosed(); | 116 void OnResultFileClosed(); |
117 | 117 |
| 118 void OnEndSystemTracingAcked( |
| 119 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
| 120 |
118 void OnCaptureMonitoringSnapshotAcked( | 121 void OnCaptureMonitoringSnapshotAcked( |
119 TraceMessageFilter* trace_message_filter); | 122 TraceMessageFilter* trace_message_filter); |
120 void OnMonitoringSnapshotFileClosed(); | 123 void OnMonitoringSnapshotFileClosed(); |
121 | 124 |
122 void OnTraceBufferPercentFullReply( | 125 void OnTraceBufferPercentFullReply( |
123 TraceMessageFilter* trace_message_filter, | 126 TraceMessageFilter* trace_message_filter, |
124 float percent_full); | 127 float percent_full); |
125 | 128 |
126 void OnWatchEventMatched(); | 129 void OnWatchEventMatched(); |
127 | 130 |
(...skipping 22 matching lines...) Expand all Loading... |
150 // Pending acks for CaptureMonitoringSnapshot. | 153 // Pending acks for CaptureMonitoringSnapshot. |
151 int pending_capture_monitoring_snapshot_ack_count_; | 154 int pending_capture_monitoring_snapshot_ack_count_; |
152 TraceMessageFilterSet pending_capture_monitoring_filters_; | 155 TraceMessageFilterSet pending_capture_monitoring_filters_; |
153 // Pending acks for GetTraceBufferPercentFull. | 156 // Pending acks for GetTraceBufferPercentFull. |
154 int pending_trace_buffer_percent_full_ack_count_; | 157 int pending_trace_buffer_percent_full_ack_count_; |
155 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; | 158 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; |
156 float maximum_trace_buffer_percent_full_; | 159 float maximum_trace_buffer_percent_full_; |
157 | 160 |
158 bool is_recording_; | 161 bool is_recording_; |
159 bool is_monitoring_; | 162 bool is_monitoring_; |
| 163 bool is_system_tracing_; |
160 TracingController::Options options_; | 164 TracingController::Options options_; |
161 | 165 |
162 GetCategoriesDoneCallback pending_get_categories_done_callback_; | 166 GetCategoriesDoneCallback pending_get_categories_done_callback_; |
163 TracingFileResultCallback pending_disable_recording_done_callback_; | 167 TracingFileResultCallback pending_disable_recording_done_callback_; |
164 TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_; | 168 TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_; |
165 GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_; | 169 GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_; |
166 | 170 |
167 std::string watch_category_name_; | 171 std::string watch_category_name_; |
168 std::string watch_event_name_; | 172 std::string watch_event_name_; |
169 WatchEventCallback watch_event_callback_; | 173 WatchEventCallback watch_event_callback_; |
170 | 174 |
171 std::set<std::string> known_category_groups_; | 175 std::set<std::string> known_category_groups_; |
172 std::set<TracingUI*> tracing_uis_; | 176 std::set<TracingUI*> tracing_uis_; |
173 scoped_ptr<ResultFile> result_file_; | 177 scoped_ptr<ResultFile> result_file_; |
174 scoped_ptr<ResultFile> monitoring_snapshot_file_; | 178 scoped_ptr<ResultFile> monitoring_snapshot_file_; |
175 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); | 179 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); |
176 }; | 180 }; |
177 | 181 |
178 } // namespace content | 182 } // namespace content |
179 | 183 |
180 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ | 184 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ |
OLD | NEW |