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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // QuicCryptoClientStream::ProofHandler overrides. | 192 // QuicCryptoClientStream::ProofHandler overrides. |
193 // Called by client crypto handshake when cached proof is marked valid. | 193 // Called by client crypto handshake when cached proof is marked valid. |
194 void OnProofValid( | 194 void OnProofValid( |
195 const net::QuicCryptoClientConfig::CachedState& cached) override; | 195 const net::QuicCryptoClientConfig::CachedState& cached) override; |
196 // Called by the client crypto handshake when proof verification details | 196 // Called by the client crypto handshake when proof verification details |
197 // become available, either because proof verification is complete, or when | 197 // become available, either because proof verification is complete, or when |
198 // cached details are used. | 198 // cached details are used. |
199 void OnProofVerifyDetailsAvailable( | 199 void OnProofVerifyDetailsAvailable( |
200 const net::ProofVerifyDetails& verify_details) override; | 200 const net::ProofVerifyDetails& verify_details) override; |
201 | 201 |
| 202 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { |
| 203 channel_->SetMetricsObserver(observer); |
| 204 } |
| 205 |
202 // Returns true if |quic_| has queued data which wasn't written due | 206 // Returns true if |quic_| has queued data which wasn't written due |
203 // to |channel_| being write blocked. | 207 // to |channel_| being write blocked. |
204 bool HasDataToWrite() const; | 208 bool HasDataToWrite() const; |
205 // Writes queued data for |quic_| when |channel_| is no longer write blocked. | 209 // Writes queued data for |quic_| when |channel_| is no longer write blocked. |
206 void OnCanWrite(); | 210 void OnCanWrite(); |
207 // Connectivity state of QuicTransportChannel. | 211 // Connectivity state of QuicTransportChannel. |
208 QuicTransportState quic_state() const { return quic_state_; } | 212 QuicTransportState quic_state() const { return quic_state_; } |
209 // Creates a new QUIC stream that can send data. | 213 // Creates a new QUIC stream that can send data. |
210 ReliableQuicStream* CreateQuicStream(); | 214 ReliableQuicStream* CreateQuicStream(); |
211 | 215 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; | 299 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; |
296 // Fingerprint of the remote peer. This must be set before we start QUIC. | 300 // Fingerprint of the remote peer. This must be set before we start QUIC. |
297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; | 301 rtc::Optional<RemoteFingerprint> remote_fingerprint_; |
298 | 302 |
299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); | 303 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); |
300 }; | 304 }; |
301 | 305 |
302 } // namespace cricket | 306 } // namespace cricket |
303 | 307 |
304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ | 308 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ |
OLD | NEW |