OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SPDY_PINNABLE_BUFFER_PIECE_H_ | 5 #ifndef NET_SPDY_SPDY_PINNABLE_BUFFER_PIECE_H_ |
6 #define NET_SPDY_SPDY_PINNABLE_BUFFER_PIECE_H_ | 6 #define NET_SPDY_SPDY_PINNABLE_BUFFER_PIECE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 const char * buffer_; | 51 const char * buffer_; |
52 size_t length_; | 52 size_t length_; |
53 // Null iff |buffer_| isn't pinned. | 53 // Null iff |buffer_| isn't pinned. |
54 std::unique_ptr<char[]> storage_; | 54 std::unique_ptr<char[]> storage_; |
55 }; | 55 }; |
56 | 56 |
57 } // namespace net | 57 } // namespace net |
58 | 58 |
59 #endif // NET_SPDY_SPDY_PINNABLE_BUFFER_PIECE_H_ | 59 #endif // NET_SPDY_SPDY_PINNABLE_BUFFER_PIECE_H_ |
OLD | NEW |