OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TOOLS_FLIP_SERVER_BUFFER_INTERFACE_H__ | 5 #ifndef NET_TOOLS_BALSA_BUFFER_INTERFACE_H__ |
6 #define NET_TOOLS_FLIP_SERVER_BUFFER_INTERFACE_H__ | 6 #define NET_TOOLS_BALSA_BUFFER_INTERFACE_H__ |
7 | 7 |
8 namespace net { | 8 namespace net { |
9 | 9 |
10 class BufferInterface { | 10 class BufferInterface { |
11 public: | 11 public: |
12 | 12 |
13 // Returns the bytes which can be read from the buffer. There is no | 13 // Returns the bytes which can be read from the buffer. There is no |
14 // guarantee that the bytes are contiguous. | 14 // guarantee that the bytes are contiguous. |
15 virtual int ReadableBytes() const = 0; | 15 virtual int ReadableBytes() const = 0; |
16 | 16 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual void AdvanceWritablePtr(int amount_to_advance) = 0; | 110 virtual void AdvanceWritablePtr(int amount_to_advance) = 0; |
111 | 111 |
112 virtual ~BufferInterface() {} | 112 virtual ~BufferInterface() {} |
113 | 113 |
114 protected: | 114 protected: |
115 BufferInterface() {} | 115 BufferInterface() {} |
116 }; | 116 }; |
117 | 117 |
118 } // namespace net | 118 } // namespace net |
119 | 119 |
120 #endif // NET_TOOLS_FLIP_SERVER_BUFFER_INTERFACE__H__ | 120 #endif // NET_TOOLS_BALSA_BUFFER_INTERFACE__H__ |
121 | 121 |
OLD | NEW |