OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_INTERFACE_H_ | 5 #ifndef NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_ |
6 #define NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_ | 6 #define NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include "net/quic/platform/api/quic_export.h" |
| 12 |
11 namespace net { | 13 namespace net { |
12 | 14 |
13 // Sends and receives data with a particular QUIC stream ID, reliably and | 15 // Sends and receives data with a particular QUIC stream ID, reliably and |
14 // in-order. To send/receive data out of order, use separate streams. To | 16 // in-order. To send/receive data out of order, use separate streams. To |
15 // send/receive unreliably, close a stream after reliability is no longer | 17 // send/receive unreliably, close a stream after reliability is no longer |
16 // needed. | 18 // needed. |
17 class QUIC_EXPORT_PRIVATE QuartcStreamInterface { | 19 class QUIC_EXPORT_PRIVATE QuartcStreamInterface { |
18 public: | 20 public: |
19 virtual ~QuartcStreamInterface() {} | 21 virtual ~QuartcStreamInterface() {} |
20 | 22 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual void OnBufferedAmountDecrease(QuartcStreamInterface* stream) = 0; | 73 virtual void OnBufferedAmountDecrease(QuartcStreamInterface* stream) = 0; |
72 }; | 74 }; |
73 | 75 |
74 // The |delegate| is not owned by QuartcStream. | 76 // The |delegate| is not owned by QuartcStream. |
75 virtual void SetDelegate(Delegate* delegate) = 0; | 77 virtual void SetDelegate(Delegate* delegate) = 0; |
76 }; | 78 }; |
77 | 79 |
78 } // namespace net | 80 } // namespace net |
79 | 81 |
80 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_ | 82 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_ |
OLD | NEW |