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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // Sets up the QUIC handshake. | 260 // Sets up the QUIC handshake. |
261 bool MaybeStartQuic(); | 261 bool MaybeStartQuic(); |
262 // Creates the QUIC connection and |quic_|. | 262 // Creates the QUIC connection and |quic_|. |
263 bool CreateQuicSession(); | 263 bool CreateQuicSession(); |
264 // Creates the crypto stream and initializes the handshake. | 264 // Creates the crypto stream and initializes the handshake. |
265 bool StartQuicHandshake(); | 265 bool StartQuicHandshake(); |
266 // Sets the QuicTransportChannel connectivity state. | 266 // Sets the QuicTransportChannel connectivity state. |
267 void set_quic_state(QuicTransportState state); | 267 void set_quic_state(QuicTransportState state); |
268 | 268 |
269 // Everything should occur on this thread. | 269 // Everything should occur on this thread. |
270 rtc::Thread* worker_thread_; | 270 rtc::Thread* network_thread_; |
271 // Underlying channel which is responsible for connecting with the remote peer | 271 // Underlying channel which is responsible for connecting with the remote peer |
272 // and sending/receiving packets across the network. | 272 // and sending/receiving packets across the network. |
273 std::unique_ptr<TransportChannelImpl> channel_; | 273 std::unique_ptr<TransportChannelImpl> channel_; |
274 // Connectivity state of QuicTransportChannel. | 274 // Connectivity state of QuicTransportChannel. |
275 QuicTransportState quic_state_ = QUIC_TRANSPORT_NEW; | 275 QuicTransportState quic_state_ = QUIC_TRANSPORT_NEW; |
276 // QUIC session which establishes the crypto handshake and converts data | 276 // QUIC session which establishes the crypto handshake and converts data |
277 // to/from QUIC packets. | 277 // to/from QUIC packets. |
278 std::unique_ptr<QuicSession> quic_; | 278 std::unique_ptr<QuicSession> quic_; |
279 // Non-crypto config for |quic_|. | 279 // Non-crypto config for |quic_|. |
280 net::QuicConfig config_; | 280 net::QuicConfig config_; |
(...skipping 14 matching lines...) Expand all Loading... |
295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
296 // 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. |
297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; | 297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; |
298 | 298 |
299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); | 299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); |
300 }; | 300 }; |
301 | 301 |
302 } // namespace cricket | 302 } // namespace cricket |
303 | 303 |
304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ | 304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ |
OLD | NEW |