| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |