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

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

Issue 2089553002: Refactoring on QUIC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Split the CL 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 }
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
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_
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