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

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

Issue 1834233002: Update QuicTransportChannel to latest version of libquic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
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 11 matching lines...) Expand all
22 class ReliableQuicStream : public net::ReliableQuicStream, 22 class ReliableQuicStream : public net::ReliableQuicStream,
23 public sigslot::has_slots<> { 23 public sigslot::has_slots<> {
24 public: 24 public:
25 ReliableQuicStream(net::QuicStreamId id, net::QuicSession* session); 25 ReliableQuicStream(net::QuicStreamId id, net::QuicSession* session);
26 26
27 ~ReliableQuicStream() override; 27 ~ReliableQuicStream() override;
28 28
29 // ReliableQuicStream overrides. 29 // ReliableQuicStream overrides.
30 void OnDataAvailable() override; 30 void OnDataAvailable() override;
31 void OnClose() override; 31 void OnClose() override;
32 net::SpdyPriority Priority() const override { return 0; }
33 32
34 // Process decrypted data into encrypted QUIC packets, which get sent to the 33 // Process decrypted data into encrypted QUIC packets, which get sent to the
35 // QuicPacketWriter. rtc::SR_BLOCK is returned if the operation blocks instead 34 // QuicPacketWriter. rtc::SR_BLOCK is returned if the operation blocks instead
36 // of writing, in which case the data is queued until OnCanWrite() is called. 35 // of writing, in which case the data is queued until OnCanWrite() is called.
37 rtc::StreamResult Write(const char* data, size_t len); 36 rtc::StreamResult Write(const char* data, size_t len);
38 37
39 // Called when decrypted data is ready to be read. 38 // Called when decrypted data is ready to be read.
40 sigslot::signal3<net::QuicStreamId, const char*, size_t> SignalDataReceived; 39 sigslot::signal3<net::QuicStreamId, const char*, size_t> SignalDataReceived;
41 // Called when stream closed. 40 // Called when stream closed.
42 sigslot::signal2<net::QuicStreamId, net::QuicErrorCode> SignalClosed; 41 sigslot::signal2<net::QuicStreamId, net::QuicErrorCode> SignalClosed;
43 42
44 private: 43 private:
45 RTC_DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); 44 RTC_DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream);
46 }; 45 };
47 46
48 } // namespace cricket 47 } // namespace cricket
49 48
50 #endif // WEBRTC_P2P_QUIC_RELIABLEQUICSTREAM_H_ 49 #endif // WEBRTC_P2P_QUIC_RELIABLEQUICSTREAM_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/quic/quictransportchannel_unittest.cc ('k') | webrtc/p2p/quic/reliablequicstream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698