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

Side by Side Diff: webrtc/p2p/quic/quictransportchannel.h

Issue 2146133002: Revert of Modify PeerConnection for end-to-end QuicDataChannel usage (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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/quic/quicsession_unittest.cc ('k') | webrtc/p2p/quic/quictransportchannel.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 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
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
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_
OLDNEW
« no previous file with comments | « webrtc/p2p/quic/quicsession_unittest.cc ('k') | webrtc/p2p/quic/quictransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698