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

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: review - remove strings from proto 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(int error,
190 int64_t elapsed_time_in_milliseconds) override {
191 RTC_NOTREACHED();
terelius 2017/08/18 11:41:33 The rest of the code has forwarded the call, regar
192 }
193
189 void SetEventLog(RtcEventLog* event_log) { 194 void SetEventLog(RtcEventLog* event_log) {
190 rtc::CritScope lock(&crit_); 195 rtc::CritScope lock(&crit_);
191 event_log_ = event_log; 196 event_log_ = event_log;
192 } 197 }
193 198
194 private: 199 private:
195 rtc::CriticalSection crit_; 200 rtc::CriticalSection crit_;
196 RtcEventLog* event_log_ GUARDED_BY(crit_); 201 RtcEventLog* event_log_ GUARDED_BY(crit_);
197 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); 202 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy);
198 }; 203 };
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after
3165 int64_t min_rtt = 0; 3170 int64_t min_rtt = 0;
3166 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3171 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3167 0) { 3172 0) {
3168 return 0; 3173 return 0;
3169 } 3174 }
3170 return rtt; 3175 return rtt;
3171 } 3176 }
3172 3177
3173 } // namespace voe 3178 } // namespace voe
3174 } // namespace webrtc 3179 } // namespace webrtc
OLDNEW
« webrtc/p2p/base/port_unittest.cc ('K') | « webrtc/rtc_tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698