OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 159 } |
160 void AddRemoteCandidate(const Candidate& candidate) override { | 160 void AddRemoteCandidate(const Candidate& candidate) override { |
161 channel_->AddRemoteCandidate(candidate); | 161 channel_->AddRemoteCandidate(candidate); |
162 } | 162 } |
163 void RemoveRemoteCandidate(const Candidate& candidate) override { | 163 void RemoveRemoteCandidate(const Candidate& candidate) override { |
164 channel_->RemoveRemoteCandidate(candidate); | 164 channel_->RemoveRemoteCandidate(candidate); |
165 } | 165 } |
166 void SetIceConfig(const IceConfig& config) override { | 166 void SetIceConfig(const IceConfig& config) override { |
167 channel_->SetIceConfig(config); | 167 channel_->SetIceConfig(config); |
168 } | 168 } |
169 void Connect() override { | |
170 channel_->Connect(); | |
171 } | |
172 | 169 |
173 // QuicPacketWriter overrides. | 170 // QuicPacketWriter overrides. |
174 // Called from net::QuicConnection when |quic_| has packets to write. | 171 // Called from net::QuicConnection when |quic_| has packets to write. |
175 net::WriteResult WritePacket(const char* buffer, | 172 net::WriteResult WritePacket(const char* buffer, |
176 size_t buf_len, | 173 size_t buf_len, |
177 const net::IPAddress& self_address, | 174 const net::IPAddress& self_address, |
178 const net::IPEndPoint& peer_address, | 175 const net::IPEndPoint& peer_address, |
179 net::PerPacketOptions* options) override; | 176 net::PerPacketOptions* options) override; |
180 // Whether QuicTransportChannel buffers data when unable to write. If this is | 177 // Whether QuicTransportChannel buffers data when unable to write. If this is |
181 // set to false, then net::QuicConnection buffers unsent packets. | 178 // set to false, then net::QuicConnection buffers unsent packets. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
299 // Fingerprint of the remote peer. This must be set before we start QUIC. | 296 // Fingerprint of the remote peer. This must be set before we start QUIC. |
300 rtc::Optional<RemoteFingerprint> remote_fingerprint_; | 297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; |
301 | 298 |
302 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); | 299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); |
303 }; | 300 }; |
304 | 301 |
305 } // namespace cricket | 302 } // namespace cricket |
306 | 303 |
307 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ | 304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ |
OLD | NEW |