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

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

Issue 2206793007: Revert of Modified PeerConnection and WebRtcSession for end-to-end QuicDataChannel usage. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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/base/faketransportcontroller.h ('k') | no next file » | 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
216 // Emitted when |quic_| creates a QUIC stream to receive data from the remote 214 // Emitted when |quic_| creates a QUIC stream to receive data from the remote
217 // peer, when the stream did not exist previously. 215 // peer, when the stream did not exist previously.
218 sigslot::signal1<ReliableQuicStream*> SignalIncomingStream; 216 sigslot::signal1<ReliableQuicStream*> SignalIncomingStream;
219 // Emitted when the QuicTransportChannel state becomes QUIC_TRANSPORT_CLOSED. 217 // Emitted when the QuicTransportChannel state becomes QUIC_TRANSPORT_CLOSED.
220 sigslot::signal0<> SignalClosed; 218 sigslot::signal0<> SignalClosed;
221 219
222 private: 220 private:
223 // Fingerprint of remote peer. 221 // Fingerprint of remote peer.
224 struct RemoteFingerprint { 222 struct RemoteFingerprint {
225 std::string value; 223 std::string value;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; 295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_;
298 // 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.
299 rtc::Optional<RemoteFingerprint> remote_fingerprint_; 297 rtc::Optional<RemoteFingerprint> remote_fingerprint_;
300 298
301 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); 299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel);
302 }; 300 };
303 301
304 } // namespace cricket 302 } // namespace cricket
305 303
306 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ 304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/faketransportcontroller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698