| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const scoped_refptr<base::RefCountedString>& events_str_ptr, | 106 const scoped_refptr<base::RefCountedString>& events_str_ptr, |
| 107 bool has_more_events); | 107 bool has_more_events); |
| 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 OnDisableRecordingComplete(); |
| 116 void OnResultFileClosed(); | 117 void OnResultFileClosed(); |
| 117 | 118 |
| 119 #if defined(OS_CHROMEOS) |
| 120 void OnEndSystemTracingAcked( |
| 121 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
| 122 #endif |
| 123 |
| 118 void OnCaptureMonitoringSnapshotAcked( | 124 void OnCaptureMonitoringSnapshotAcked( |
| 119 TraceMessageFilter* trace_message_filter); | 125 TraceMessageFilter* trace_message_filter); |
| 120 void OnMonitoringSnapshotFileClosed(); | 126 void OnMonitoringSnapshotFileClosed(); |
| 121 | 127 |
| 122 void OnTraceBufferPercentFullReply( | 128 void OnTraceBufferPercentFullReply( |
| 123 TraceMessageFilter* trace_message_filter, | 129 TraceMessageFilter* trace_message_filter, |
| 124 float percent_full); | 130 float percent_full); |
| 125 | 131 |
| 126 void OnWatchEventMatched(); | 132 void OnWatchEventMatched(); |
| 127 | 133 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 148 int pending_disable_recording_ack_count_; | 154 int pending_disable_recording_ack_count_; |
| 149 TraceMessageFilterSet pending_disable_recording_filters_; | 155 TraceMessageFilterSet pending_disable_recording_filters_; |
| 150 // Pending acks for CaptureMonitoringSnapshot. | 156 // Pending acks for CaptureMonitoringSnapshot. |
| 151 int pending_capture_monitoring_snapshot_ack_count_; | 157 int pending_capture_monitoring_snapshot_ack_count_; |
| 152 TraceMessageFilterSet pending_capture_monitoring_filters_; | 158 TraceMessageFilterSet pending_capture_monitoring_filters_; |
| 153 // Pending acks for GetTraceBufferPercentFull. | 159 // Pending acks for GetTraceBufferPercentFull. |
| 154 int pending_trace_buffer_percent_full_ack_count_; | 160 int pending_trace_buffer_percent_full_ack_count_; |
| 155 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; | 161 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; |
| 156 float maximum_trace_buffer_percent_full_; | 162 float maximum_trace_buffer_percent_full_; |
| 157 | 163 |
| 164 #if defined(OS_CHROMEOS) |
| 165 bool is_system_tracing_; |
| 166 #endif |
| 158 bool is_recording_; | 167 bool is_recording_; |
| 159 bool is_monitoring_; | 168 bool is_monitoring_; |
| 160 TracingController::Options options_; | 169 TracingController::Options options_; |
| 161 | 170 |
| 162 GetCategoriesDoneCallback pending_get_categories_done_callback_; | 171 GetCategoriesDoneCallback pending_get_categories_done_callback_; |
| 163 TracingFileResultCallback pending_disable_recording_done_callback_; | 172 TracingFileResultCallback pending_disable_recording_done_callback_; |
| 164 TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_; | 173 TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_; |
| 165 GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_; | 174 GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_; |
| 166 | 175 |
| 167 std::string watch_category_name_; | 176 std::string watch_category_name_; |
| 168 std::string watch_event_name_; | 177 std::string watch_event_name_; |
| 169 WatchEventCallback watch_event_callback_; | 178 WatchEventCallback watch_event_callback_; |
| 170 | 179 |
| 171 std::set<std::string> known_category_groups_; | 180 std::set<std::string> known_category_groups_; |
| 172 std::set<TracingUI*> tracing_uis_; | 181 std::set<TracingUI*> tracing_uis_; |
| 173 scoped_ptr<ResultFile> result_file_; | 182 scoped_ptr<ResultFile> result_file_; |
| 174 scoped_ptr<ResultFile> monitoring_snapshot_file_; | 183 scoped_ptr<ResultFile> monitoring_snapshot_file_; |
| 175 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); | 184 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); |
| 176 }; | 185 }; |
| 177 | 186 |
| 178 } // namespace content | 187 } // namespace content |
| 179 | 188 |
| 180 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ | 189 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ |
| OLD | NEW |