OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int min_probes, | 163 int min_probes, |
164 int min_bytes) = 0; | 164 int min_bytes) = 0; |
165 | 165 |
166 // Logs the result of a successful probing attempt. | 166 // Logs the result of a successful probing attempt. |
167 virtual void LogProbeResultSuccess(int id, int bitrate_bps) = 0; | 167 virtual void LogProbeResultSuccess(int id, int bitrate_bps) = 0; |
168 | 168 |
169 // Logs the result of an unsuccessful probing attempt. | 169 // Logs the result of an unsuccessful probing attempt. |
170 virtual void LogProbeResultFailure(int id, | 170 virtual void LogProbeResultFailure(int id, |
171 ProbeFailureReason failure_reason) = 0; | 171 ProbeFailureReason failure_reason) = 0; |
172 | 172 |
| 173 // Logs the result of a host lookup. |
| 174 // if error = 0 - no error |
| 175 // error = -1 - generic error |
| 176 // else - is given by underlying resolver |
| 177 virtual void LogHostLookupResult(int error, |
| 178 int64_t elapsed_time_in_milliseconds) = 0; |
| 179 |
173 // Reads an RtcEventLog file and returns true when reading was successful. | 180 // Reads an RtcEventLog file and returns true when reading was successful. |
174 // The result is stored in the given EventStream object. | 181 // The result is stored in the given EventStream object. |
175 // The order of the events in the EventStream is implementation defined. | 182 // The order of the events in the EventStream is implementation defined. |
176 // The current implementation writes a LOG_START event, then the old | 183 // The current implementation writes a LOG_START event, then the old |
177 // configurations, then the remaining events in timestamp order and finally | 184 // configurations, then the remaining events in timestamp order and finally |
178 // a LOG_END event. However, this might change without further notice. | 185 // a LOG_END event. However, this might change without further notice. |
179 // TODO(terelius): Change result type to a vector? | 186 // TODO(terelius): Change result type to a vector? |
180 static bool ParseRtcEventLog(const std::string& file_name, | 187 static bool ParseRtcEventLog(const std::string& file_name, |
181 rtclog::EventStream* result); | 188 rtclog::EventStream* result); |
182 }; | 189 }; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 BandwidthUsage detector_state) override {} | 224 BandwidthUsage detector_state) override {} |
218 void LogAudioNetworkAdaptation( | 225 void LogAudioNetworkAdaptation( |
219 const AudioEncoderRuntimeConfig& config) override {} | 226 const AudioEncoderRuntimeConfig& config) override {} |
220 void LogProbeClusterCreated(int id, | 227 void LogProbeClusterCreated(int id, |
221 int bitrate_bps, | 228 int bitrate_bps, |
222 int min_probes, | 229 int min_probes, |
223 int min_bytes) override{}; | 230 int min_bytes) override{}; |
224 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; | 231 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; |
225 void LogProbeResultFailure(int id, | 232 void LogProbeResultFailure(int id, |
226 ProbeFailureReason failure_reason) override{}; | 233 ProbeFailureReason failure_reason) override{}; |
| 234 |
| 235 void LogHostLookupResult(int error, |
| 236 int64_t elapsed_time_in_milliseconds) override {} |
227 }; | 237 }; |
228 | 238 |
229 } // namespace webrtc | 239 } // namespace webrtc |
230 | 240 |
231 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 241 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
OLD | NEW |