OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SPDY_ZERO_COPY_OUTPUT_BUFFER_H_ | 5 #ifndef NET_SPDY_ZERO_COPY_OUTPUT_BUFFER_H_ |
6 #define NET_SPDY_ZERO_COPY_OUTPUT_BUFFER_H_ | 6 #define NET_SPDY_ZERO_COPY_OUTPUT_BUFFER_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 10 matching lines...) Expand all Loading... |
21 // this method to indicate how many bytes were written. | 21 // this method to indicate how many bytes were written. |
22 virtual void AdvanceWritePtr(int64_t count) = 0; | 22 virtual void AdvanceWritePtr(int64_t count) = 0; |
23 | 23 |
24 // Returns the available capacity of the buffer. | 24 // Returns the available capacity of the buffer. |
25 virtual uint64_t BytesFree() const = 0; | 25 virtual uint64_t BytesFree() const = 0; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace net | 28 } // namespace net |
29 | 29 |
30 #endif // NET_SPDY_ZERO_COPY_OUTPUT_BUFFER_H_ | 30 #endif // NET_SPDY_ZERO_COPY_OUTPUT_BUFFER_H_ |
OLD | NEW |