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

Side by Side Diff: webrtc/p2p/base/jseptransport.cc

Issue 2625993002: RTCTransportStats.dtlsState replaces .activeConnection (Closed)
Patch Set: Rebase with master Created 3 years, 11 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
« no previous file with comments | « webrtc/p2p/base/jseptransport.h ('k') | webrtc/stats/rtcstats_objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 bool JsepTransport::GetStats(TransportStats* stats) { 285 bool JsepTransport::GetStats(TransportStats* stats) {
286 stats->transport_name = mid(); 286 stats->transport_name = mid();
287 stats->channel_stats.clear(); 287 stats->channel_stats.clear();
288 for (auto& kv : channels_) { 288 for (auto& kv : channels_) {
289 TransportChannelImpl* channel = kv.second; 289 TransportChannelImpl* channel = kv.second;
290 TransportChannelStats substats; 290 TransportChannelStats substats;
291 substats.component = kv.first; 291 substats.component = kv.first;
292 channel->GetSrtpCryptoSuite(&substats.srtp_crypto_suite); 292 channel->GetSrtpCryptoSuite(&substats.srtp_crypto_suite);
293 channel->GetSslCipherSuite(&substats.ssl_cipher_suite); 293 channel->GetSslCipherSuite(&substats.ssl_cipher_suite);
294 substats.dtls_state = channel->dtls_state();
294 if (!channel->GetStats(&substats.connection_infos)) { 295 if (!channel->GetStats(&substats.connection_infos)) {
295 return false; 296 return false;
296 } 297 }
297 stats->channel_stats.push_back(substats); 298 stats->channel_stats.push_back(substats);
298 } 299 }
299 return true; 300 return true;
300 } 301 }
301 302
302 bool JsepTransport::VerifyCertificateFingerprint( 303 bool JsepTransport::VerifyCertificateFingerprint(
303 const rtc::RTCCertificate* certificate, 304 const rtc::RTCCertificate* certificate,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 } 475 }
475 476
476 // If local is passive, local will act as server. 477 // If local is passive, local will act as server.
477 } 478 }
478 479
479 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER; 480 *ssl_role = is_remote_server ? rtc::SSL_CLIENT : rtc::SSL_SERVER;
480 return true; 481 return true;
481 } 482 }
482 483
483 } // namespace cricket 484 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/jseptransport.h ('k') | webrtc/stats/rtcstats_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698