| 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 | |
| 180 // Reads an RtcEventLog file and returns true when reading was successful. | 173 // Reads an RtcEventLog file and returns true when reading was successful. |
| 181 // The result is stored in the given EventStream object. | 174 // The result is stored in the given EventStream object. |
| 182 // The order of the events in the EventStream is implementation defined. | 175 // The order of the events in the EventStream is implementation defined. |
| 183 // The current implementation writes a LOG_START event, then the old | 176 // The current implementation writes a LOG_START event, then the old |
| 184 // configurations, then the remaining events in timestamp order and finally | 177 // configurations, then the remaining events in timestamp order and finally |
| 185 // a LOG_END event. However, this might change without further notice. | 178 // a LOG_END event. However, this might change without further notice. |
| 186 // TODO(terelius): Change result type to a vector? | 179 // TODO(terelius): Change result type to a vector? |
| 187 static bool ParseRtcEventLog(const std::string& file_name, | 180 static bool ParseRtcEventLog(const std::string& file_name, |
| 188 rtclog::EventStream* result); | 181 rtclog::EventStream* result); |
| 189 }; | 182 }; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 BandwidthUsage detector_state) override {} | 217 BandwidthUsage detector_state) override {} |
| 225 void LogAudioNetworkAdaptation( | 218 void LogAudioNetworkAdaptation( |
| 226 const AudioEncoderRuntimeConfig& config) override {} | 219 const AudioEncoderRuntimeConfig& config) override {} |
| 227 void LogProbeClusterCreated(int id, | 220 void LogProbeClusterCreated(int id, |
| 228 int bitrate_bps, | 221 int bitrate_bps, |
| 229 int min_probes, | 222 int min_probes, |
| 230 int min_bytes) override{}; | 223 int min_bytes) override{}; |
| 231 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; | 224 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; |
| 232 void LogProbeResultFailure(int id, | 225 void LogProbeResultFailure(int id, |
| 233 ProbeFailureReason failure_reason) override{}; | 226 ProbeFailureReason failure_reason) override{}; |
| 234 | |
| 235 void LogHostLookupResult(int error, | |
| 236 int64_t elapsed_time_in_milliseconds) override {} | |
| 237 }; | 227 }; |
| 238 | 228 |
| 239 } // namespace webrtc | 229 } // namespace webrtc |
| 240 | 230 |
| 241 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 231 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
| OLD | NEW |