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 } |
169 | 172 |
170 // QuicPacketWriter overrides. | 173 // QuicPacketWriter overrides. |
171 // Called from net::QuicConnection when |quic_| has packets to write. | 174 // Called from net::QuicConnection when |quic_| has packets to write. |
172 net::WriteResult WritePacket(const char* buffer, | 175 net::WriteResult WritePacket(const char* buffer, |
173 size_t buf_len, | 176 size_t buf_len, |
174 const net::IPAddress& self_address, | 177 const net::IPAddress& self_address, |
175 const net::IPEndPoint& peer_address, | 178 const net::IPEndPoint& peer_address, |
176 net::PerPacketOptions* options) override; | 179 net::PerPacketOptions* options) override; |
177 // Whether QuicTransportChannel buffers data when unable to write. If this is | 180 // Whether QuicTransportChannel buffers data when unable to write. If this is |
178 // set to false, then net::QuicConnection buffers unsent packets. | 181 // set to false, then net::QuicConnection buffers unsent packets. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 298 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
296 // Fingerprint of the remote peer. This must be set before we start QUIC. | 299 // Fingerprint of the remote peer. This must be set before we start QUIC. |
297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; | 300 rtc::Optional<RemoteFingerprint> remote_fingerprint_; |
298 | 301 |
299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); | 302 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); |
300 }; | 303 }; |
301 | 304 |
302 } // namespace cricket | 305 } // namespace cricket |
303 | 306 |
304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ | 307 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ |
OLD | NEW |