| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void OnCaptureMonitoringSnapshotAcked( | 114 void OnCaptureMonitoringSnapshotAcked( |
| 115 TraceMessageFilter* trace_message_filter); | 115 TraceMessageFilter* trace_message_filter); |
| 116 void OnMonitoringSnapshotFileClosed(); | 116 void OnMonitoringSnapshotFileClosed(); |
| 117 | 117 |
| 118 void OnTraceBufferPercentFullReply( | 118 void OnTraceBufferPercentFullReply( |
| 119 TraceMessageFilter* trace_message_filter, | 119 TraceMessageFilter* trace_message_filter, |
| 120 float percent_full); | 120 float percent_full); |
| 121 | 121 |
| 122 void OnWatchEventMatched(); | 122 void OnWatchEventMatched(); |
| 123 | 123 |
| 124 void SetEnabledOnFileThread(const std::string& category_filter, |
| 125 int options, |
| 126 const base::Closure& callback); |
| 127 void SetDisabledOnFileThread(const base::Closure& callback); |
| 128 void OnEnableRecordingDone(const std::string& category_filter, |
| 129 int trace_options, |
| 130 const EnableRecordingDoneCallback& callback); |
| 131 void OnDisableRecordingDone(const base::FilePath& result_file_path, |
| 132 const TracingFileResultCallback& callback); |
| 133 void OnEnableMonitoringDone(const std::string& category_filter, |
| 134 int trace_options, |
| 135 const EnableMonitoringDoneCallback& callback); |
| 136 void OnDisableMonitoringDone(const DisableMonitoringDoneCallback& callback); |
| 137 |
| 124 TraceMessageFilterSet trace_message_filters_; | 138 TraceMessageFilterSet trace_message_filters_; |
| 139 |
| 125 // Pending acks for DisableRecording. | 140 // Pending acks for DisableRecording. |
| 126 int pending_disable_recording_ack_count_; | 141 int pending_disable_recording_ack_count_; |
| 127 TraceMessageFilterSet pending_disable_recording_filters_; | 142 TraceMessageFilterSet pending_disable_recording_filters_; |
| 128 // Pending acks for CaptureMonitoringSnapshot. | 143 // Pending acks for CaptureMonitoringSnapshot. |
| 129 int pending_capture_monitoring_snapshot_ack_count_; | 144 int pending_capture_monitoring_snapshot_ack_count_; |
| 130 TraceMessageFilterSet pending_capture_monitoring_filters_; | 145 TraceMessageFilterSet pending_capture_monitoring_filters_; |
| 131 // Pending acks for GetTraceBufferPercentFull. | 146 // Pending acks for GetTraceBufferPercentFull. |
| 132 int pending_trace_buffer_percent_full_ack_count_; | 147 int pending_trace_buffer_percent_full_ack_count_; |
| 133 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; | 148 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; |
| 134 float maximum_trace_buffer_percent_full_; | 149 float maximum_trace_buffer_percent_full_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 147 | 162 |
| 148 std::set<std::string> known_category_groups_; | 163 std::set<std::string> known_category_groups_; |
| 149 scoped_ptr<ResultFile> result_file_; | 164 scoped_ptr<ResultFile> result_file_; |
| 150 scoped_ptr<ResultFile> monitoring_snapshot_file_; | 165 scoped_ptr<ResultFile> monitoring_snapshot_file_; |
| 151 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); | 166 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); |
| 152 }; | 167 }; |
| 153 | 168 |
| 154 } // namespace content | 169 } // namespace content |
| 155 | 170 |
| 156 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ | 171 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ |
| OLD | NEW |