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

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

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years 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_stream.h ('k') | net/tools/quic/quic_default_packet_writer.h » ('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_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/base/net_export.h" 11 #include "net/quic/platform/api/quic_export.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // 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
16 // 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
17 // send/receive unreliably, close a stream after reliability is no longer 17 // send/receive unreliably, close a stream after reliability is no longer
18 // needed. 18 // needed.
19 class NET_EXPORT_PRIVATE QuartcStreamInterface { 19 class QUIC_EXPORT_PRIVATE QuartcStreamInterface {
20 public: 20 public:
21 virtual ~QuartcStreamInterface() {} 21 virtual ~QuartcStreamInterface() {}
22 22
23 // The QUIC stream ID. 23 // The QUIC stream ID.
24 virtual uint32_t stream_id() = 0; 24 virtual uint32_t stream_id() = 0;
25 25
26 // The amount of data buffered by the QuicConnection. 26 // The amount of data buffered by the QuicConnection.
27 virtual uint64_t buffered_amount() = 0; 27 virtual uint64_t buffered_amount() = 0;
28 28
29 // Return true if the FIN has been sent. Used by the outgoing streams to 29 // Return true if the FIN has been sent. Used by the outgoing streams to
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void OnBufferedAmountDecrease(QuartcStreamInterface* stream) = 0; 69 virtual void OnBufferedAmountDecrease(QuartcStreamInterface* stream) = 0;
70 }; 70 };
71 71
72 // The |delegate| is not owned by QuartcStream. 72 // The |delegate| is not owned by QuartcStream.
73 virtual void SetDelegate(Delegate* delegate) = 0; 73 virtual void SetDelegate(Delegate* delegate) = 0;
74 }; 74 };
75 75
76 } // namespace net 76 } // namespace net
77 77
78 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_ 78 #endif // NET_QUIC_QUARTC_QUARTC_STREAM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_stream.h ('k') | net/tools/quic/quic_default_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698