| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // Returns true if |quic_| has queued data which wasn't written due | 204 // Returns true if |quic_| has queued data which wasn't written due |
| 205 // to |channel_| being write blocked. | 205 // to |channel_| being write blocked. |
| 206 bool HasDataToWrite() const; | 206 bool HasDataToWrite() const; |
| 207 // Writes queued data for |quic_| when |channel_| is no longer write blocked. | 207 // Writes queued data for |quic_| when |channel_| is no longer write blocked. |
| 208 void OnCanWrite(); | 208 void OnCanWrite(); |
| 209 // Connectivity state of QuicTransportChannel. | 209 // Connectivity state of QuicTransportChannel. |
| 210 QuicTransportState quic_state() const { return quic_state_; } | 210 QuicTransportState quic_state() const { return quic_state_; } |
| 211 // Creates a new QUIC stream that can send data. | 211 // Creates a new QUIC stream that can send data. |
| 212 ReliableQuicStream* CreateQuicStream(); | 212 ReliableQuicStream* CreateQuicStream(); |
| 213 | 213 |
| 214 TransportChannelImpl* ice_transport_channel() { return channel_.get(); } |
| 215 |
| 214 // Emitted when |quic_| creates a QUIC stream to receive data from the remote | 216 // Emitted when |quic_| creates a QUIC stream to receive data from the remote |
| 215 // peer, when the stream did not exist previously. | 217 // peer, when the stream did not exist previously. |
| 216 sigslot::signal1<ReliableQuicStream*> SignalIncomingStream; | 218 sigslot::signal1<ReliableQuicStream*> SignalIncomingStream; |
| 217 // Emitted when the QuicTransportChannel state becomes QUIC_TRANSPORT_CLOSED. | 219 // Emitted when the QuicTransportChannel state becomes QUIC_TRANSPORT_CLOSED. |
| 218 sigslot::signal0<> SignalClosed; | 220 sigslot::signal0<> SignalClosed; |
| 219 | 221 |
| 220 private: | 222 private: |
| 221 // Fingerprint of remote peer. | 223 // Fingerprint of remote peer. |
| 222 struct RemoteFingerprint { | 224 struct RemoteFingerprint { |
| 223 std::string value; | 225 std::string value; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 297 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
| 296 // Fingerprint of the remote peer. This must be set before we start QUIC. | 298 // Fingerprint of the remote peer. This must be set before we start QUIC. |
| 297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; | 299 rtc::Optional<RemoteFingerprint> remote_fingerprint_; |
| 298 | 300 |
| 299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); | 301 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); |
| 300 }; | 302 }; |
| 301 | 303 |
| 302 } // namespace cricket | 304 } // namespace cricket |
| 303 | 305 |
| 304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ | 306 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ |
| OLD | NEW |