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