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

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

Issue 2761143002: Support encrypted RTP extensions (RFC 6904) (Closed)
Patch Set: Fix compile error on win_x64 bots. Created 3 years, 5 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/dtlstransportchannel.h ('k') | webrtc/p2p/base/dtlstransportinternal.h » ('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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 DtlsTransport::DtlsTransport(IceTransportInternal* ice_transport, 111 DtlsTransport::DtlsTransport(IceTransportInternal* ice_transport,
112 const rtc::CryptoOptions& crypto_options) 112 const rtc::CryptoOptions& crypto_options)
113 : transport_name_(ice_transport->transport_name()), 113 : transport_name_(ice_transport->transport_name()),
114 component_(ice_transport->component()), 114 component_(ice_transport->component()),
115 network_thread_(rtc::Thread::Current()), 115 network_thread_(rtc::Thread::Current()),
116 ice_transport_(ice_transport), 116 ice_transport_(ice_transport),
117 downward_(NULL), 117 downward_(NULL),
118 srtp_ciphers_(GetSupportedDtlsSrtpCryptoSuites(crypto_options)), 118 srtp_ciphers_(GetSupportedDtlsSrtpCryptoSuites(crypto_options)),
119 ssl_role_(rtc::SSL_CLIENT), 119 ssl_role_(rtc::SSL_CLIENT),
120 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12) { 120 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12),
121 crypto_options_(crypto_options) {
121 ice_transport_->SignalWritableState.connect(this, 122 ice_transport_->SignalWritableState.connect(this,
122 &DtlsTransport::OnWritableState); 123 &DtlsTransport::OnWritableState);
123 ice_transport_->SignalReadPacket.connect(this, &DtlsTransport::OnReadPacket); 124 ice_transport_->SignalReadPacket.connect(this, &DtlsTransport::OnReadPacket);
124 ice_transport_->SignalSentPacket.connect(this, &DtlsTransport::OnSentPacket); 125 ice_transport_->SignalSentPacket.connect(this, &DtlsTransport::OnSentPacket);
125 ice_transport_->SignalReadyToSend.connect(this, 126 ice_transport_->SignalReadyToSend.connect(this,
126 &DtlsTransport::OnReadyToSend); 127 &DtlsTransport::OnReadyToSend);
127 ice_transport_->SignalReceivingState.connect( 128 ice_transport_->SignalReceivingState.connect(
128 this, &DtlsTransport::OnReceivingState); 129 this, &DtlsTransport::OnReceivingState);
129 } 130 }
130 131
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 673
673 dtls_->SetInitialRetransmissionTimeout(initial_timeout); 674 dtls_->SetInitialRetransmissionTimeout(initial_timeout);
674 } else { 675 } else {
675 LOG_J(LS_INFO, this) 676 LOG_J(LS_INFO, this)
676 << "no RTT estimate - using default DTLS handshake timeout"; 677 << "no RTT estimate - using default DTLS handshake timeout";
677 } 678 }
678 } 679 }
679 680
680 681
681 } // namespace cricket 682 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/dtlstransportinternal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698