Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 2996933003: Add logging of host lookups made by TurnPort to the RtcEventLog. (Closed)
Patch Set: Add unittest of rtc_event_log changes Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 }; 179 };
180 180
181 void LogProbeResultFailure(int id, 181 void LogProbeResultFailure(int id,
182 ProbeFailureReason failure_reason) override { 182 ProbeFailureReason failure_reason) override {
183 rtc::CritScope lock(&crit_); 183 rtc::CritScope lock(&crit_);
184 if (event_log_) { 184 if (event_log_) {
185 event_log_->LogProbeResultFailure(id, failure_reason); 185 event_log_->LogProbeResultFailure(id, failure_reason);
186 } 186 }
187 }; 187 };
188 188
189 void LogHostLookupResult(const std::string& hostname,
190 int error,
191 const std::string& result,
192 int64_t elapsed_time_in_microseconds) override {
193 RTC_NOTREACHED();
194 }
195
189 void SetEventLog(RtcEventLog* event_log) { 196 void SetEventLog(RtcEventLog* event_log) {
190 rtc::CritScope lock(&crit_); 197 rtc::CritScope lock(&crit_);
191 event_log_ = event_log; 198 event_log_ = event_log;
192 } 199 }
193 200
194 private: 201 private:
195 rtc::CriticalSection crit_; 202 rtc::CriticalSection crit_;
196 RtcEventLog* event_log_ GUARDED_BY(crit_); 203 RtcEventLog* event_log_ GUARDED_BY(crit_);
197 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); 204 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy);
198 }; 205 };
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after
3165 int64_t min_rtt = 0; 3172 int64_t min_rtt = 0;
3166 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3173 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3167 0) { 3174 0) {
3168 return 0; 3175 return 0;
3169 } 3176 }
3170 return rtt; 3177 return rtt;
3171 } 3178 }
3172 3179
3173 } // namespace voe 3180 } // namespace voe
3174 } // namespace webrtc 3181 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698