OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_IO_BUFFER_H_ | 5 #ifndef NET_BASE_IO_BUFFER_H_ |
6 #define NET_BASE_IO_BUFFER_H_ | 6 #define NET_BASE_IO_BUFFER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
| 12 #include "base/memory/free_deleter.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/pickle.h" | 15 #include "base/pickle.h" |
15 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 // IOBuffers are reference counted data buffers used for easier asynchronous | 20 // IOBuffers are reference counted data buffers used for easier asynchronous |
20 // IO handling. | 21 // IO handling. |
21 // | 22 // |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 public: | 249 public: |
249 explicit WrappedIOBuffer(const char* data); | 250 explicit WrappedIOBuffer(const char* data); |
250 | 251 |
251 protected: | 252 protected: |
252 ~WrappedIOBuffer() override; | 253 ~WrappedIOBuffer() override; |
253 }; | 254 }; |
254 | 255 |
255 } // namespace net | 256 } // namespace net |
256 | 257 |
257 #endif // NET_BASE_IO_BUFFER_H_ | 258 #endif // NET_BASE_IO_BUFFER_H_ |
OLD | NEW |