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

Side by Side Diff: net/quic/quartc/quartc_stream.h

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 years, 1 month 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 | « net/quic/quartc/quartc_session.cc ('k') | net/quic/quartc/quartc_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUARTC_QUARTC_STREAM_H_ 5 #ifndef NET_QUIC_QUARTC_QUARTC_STREAM_H_
6 #define NET_QUIC_QUARTC_QUARTC_STREAM_H_ 6 #define NET_QUIC_QUARTC_QUARTC_STREAM_H_
7 7
8 #include "net/quic/core/quic_session.h" 8 #include "net/quic/core/quic_session.h"
9 #include "net/quic/core/reliable_quic_stream.h" 9 #include "net/quic/core/quic_stream.h"
10 #include "net/quic/quartc/quartc_stream_interface.h" 10 #include "net/quic/quartc/quartc_stream_interface.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 // Implements a QuartcStreamInterface using a ReliableQuicStream. 14 // Implements a QuartcStreamInterface using a QuicStream.
15 class NET_EXPORT_PRIVATE QuartcStream : public ReliableQuicStream, 15 class NET_EXPORT_PRIVATE QuartcStream : public QuicStream,
16 public QuartcStreamInterface { 16 public QuartcStreamInterface {
17 public: 17 public:
18 QuartcStream(QuicStreamId id, QuicSession* session); 18 QuartcStream(QuicStreamId id, QuicSession* session);
19 19
20 ~QuartcStream() override; 20 ~QuartcStream() override;
21 21
22 // ReliableQuicStream overrides. 22 // QuicStream overrides.
23 void OnDataAvailable() override; 23 void OnDataAvailable() override;
24 24
25 void OnClose() override; 25 void OnClose() override;
26 26
27 void OnCanWrite() override; 27 void OnCanWrite() override;
28 28
29 // QuartcStreamInterface overrides. 29 // QuartcStreamInterface overrides.
30 uint32_t stream_id() override; 30 uint32_t stream_id() override;
31 31
32 uint64_t buffered_amount() override; 32 uint64_t buffered_amount() override;
33 33
34 bool fin_sent() override; 34 bool fin_sent() override;
35 35
36 void Write(const char* data, 36 void Write(const char* data,
37 size_t size, 37 size_t size,
38 const WriteParameters& param) override; 38 const WriteParameters& param) override;
39 39
40 void Close() override; 40 void Close() override;
41 41
42 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override; 42 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override;
43 43
44 private: 44 private:
45 QuartcStreamInterface::Delegate* delegate_ = nullptr; 45 QuartcStreamInterface::Delegate* delegate_ = nullptr;
46 }; 46 };
47 47
48 } // namespace net 48 } // namespace net
49 49
50 #endif // NET_QUIC_QUARTC_STREAM_H_ 50 #endif // NET_QUIC_QUARTC_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_session.cc ('k') | net/quic/quartc/quartc_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698