OLD | NEW |
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/quic_stream.h" | 9 #include "net/quic/core/quic_stream.h" |
| 10 #include "net/quic/platform/api/quic_export.h" |
10 #include "net/quic/quartc/quartc_stream_interface.h" | 11 #include "net/quic/quartc/quartc_stream_interface.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 // Implements a QuartcStreamInterface using a QuicStream. | 15 // Implements a QuartcStreamInterface using a QuicStream. |
15 class NET_EXPORT_PRIVATE QuartcStream : public QuicStream, | 16 class QUIC_EXPORT_PRIVATE QuartcStream : public QuicStream, |
16 public QuartcStreamInterface { | 17 public QuartcStreamInterface { |
17 public: | 18 public: |
18 QuartcStream(QuicStreamId id, QuicSession* session); | 19 QuartcStream(QuicStreamId id, QuicSession* session); |
19 | 20 |
20 ~QuartcStream() override; | 21 ~QuartcStream() override; |
21 | 22 |
22 // QuicStream overrides. | 23 // QuicStream overrides. |
23 void OnDataAvailable() override; | 24 void OnDataAvailable() override; |
24 | 25 |
25 void OnClose() override; | 26 void OnClose() override; |
26 | 27 |
(...skipping 14 matching lines...) Expand all Loading... |
41 | 42 |
42 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override; | 43 void SetDelegate(QuartcStreamInterface::Delegate* delegate) override; |
43 | 44 |
44 private: | 45 private: |
45 QuartcStreamInterface::Delegate* delegate_ = nullptr; | 46 QuartcStreamInterface::Delegate* delegate_ = nullptr; |
46 }; | 47 }; |
47 | 48 |
48 } // namespace net | 49 } // namespace net |
49 | 50 |
50 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_H_ | 51 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_H_ |
OLD | NEW |