OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BALSA_SIMPLE_BUFFER_H__ | 5 #ifndef NET_TOOLS_BALSA_SIMPLE_BUFFER_H__ |
6 #define NET_TOOLS_BALSA_SIMPLE_BUFFER_H__ | 6 #define NET_TOOLS_BALSA_SIMPLE_BUFFER_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
11 #include "net/tools/balsa/buffer_interface.h" | 12 #include "net/tools/balsa/buffer_interface.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 class SimpleBuffer : public BufferInterface { | 16 class SimpleBuffer : public BufferInterface { |
16 public: | 17 public: |
17 SimpleBuffer(); | 18 SimpleBuffer(); |
18 explicit SimpleBuffer(int size); | 19 explicit SimpleBuffer(int size); |
19 ~SimpleBuffer() override; | 20 ~SimpleBuffer() override; |
20 | 21 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int read_idx_; | 84 int read_idx_; |
84 int storage_size_; | 85 int storage_size_; |
85 | 86 |
86 private: | 87 private: |
87 //DISALLOW_COPY_AND_ASSIGN(SimpleBuffer); | 88 //DISALLOW_COPY_AND_ASSIGN(SimpleBuffer); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace net | 91 } // namespace net |
91 | 92 |
92 #endif // NET_TOOLS_BALSA_SIMPLE_BUFFER_H__ | 93 #endif // NET_TOOLS_BALSA_SIMPLE_BUFFER_H__ |
OLD | NEW |