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

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

Issue 1856943002: Allow TransportController to create a QuicTransportChannel (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Sync to upstream Created 4 years, 7 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/quictransport_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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 bool CreateQuicSession(); 266 bool CreateQuicSession();
267 // Creates the crypto stream and initializes the handshake. 267 // Creates the crypto stream and initializes the handshake.
268 bool StartQuicHandshake(); 268 bool StartQuicHandshake();
269 // Sets the QuicTransportChannel connectivity state. 269 // Sets the QuicTransportChannel connectivity state.
270 void set_quic_state(QuicTransportState state); 270 void set_quic_state(QuicTransportState state);
271 271
272 // Everything should occur on this thread. 272 // Everything should occur on this thread.
273 rtc::Thread* worker_thread_; 273 rtc::Thread* worker_thread_;
274 // Underlying channel which is responsible for connecting with the remote peer 274 // Underlying channel which is responsible for connecting with the remote peer
275 // and sending/receiving packets across the network. 275 // and sending/receiving packets across the network.
276 TransportChannelImpl* const channel_; 276 std::unique_ptr<TransportChannelImpl> channel_;
277 // Connectivity state of QuicTransportChannel. 277 // Connectivity state of QuicTransportChannel.
278 QuicTransportState quic_state_ = QUIC_TRANSPORT_NEW; 278 QuicTransportState quic_state_ = QUIC_TRANSPORT_NEW;
279 // QUIC session which establishes the crypto handshake and converts data 279 // QUIC session which establishes the crypto handshake and converts data
280 // to/from QUIC packets. 280 // to/from QUIC packets.
281 std::unique_ptr<QuicSession> quic_; 281 std::unique_ptr<QuicSession> quic_;
282 // Non-crypto config for |quic_|. 282 // Non-crypto config for |quic_|.
283 net::QuicConfig config_; 283 net::QuicConfig config_;
284 // Helper for net::QuicConnection that provides timing and 284 // Helper for net::QuicConnection that provides timing and
285 // random number generation. 285 // random number generation.
286 QuicConnectionHelper helper_; 286 QuicConnectionHelper helper_;
(...skipping 11 matching lines...) Expand all
298 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; 298 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_;
299 // 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.
300 rtc::Optional<RemoteFingerprint> remote_fingerprint_; 300 rtc::Optional<RemoteFingerprint> remote_fingerprint_;
301 301
302 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); 302 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel);
303 }; 303 };
304 304
305 } // namespace cricket 305 } // namespace cricket
306 306
307 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ 307 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/quic/quictransport_unittest.cc ('k') | webrtc/p2p/quic/quictransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698