| 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_SPDY_SPDY_FRAME_BUILDER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAME_BUILDER_H_ |
| 6 #define NET_SPDY_SPDY_FRAME_BUILDER_H_ | 6 #define NET_SPDY_SPDY_FRAME_BUILDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "base/sys_byteorder.h" | 13 #include "base/sys_byteorder.h" |
| 14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
| 15 #include "net/spdy/spdy_protocol.h" | 15 #include "net/spdy/spdy_protocol.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 class SpdyFramer; | 19 class SpdyFramer; |
| 20 | 20 |
| 21 // This class provides facilities for basic binary value packing | 21 // This class provides facilities for basic binary value packing |
| 22 // into Spdy frames. | 22 // into Spdy frames. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 bool CanWrite(size_t length) const; | 110 bool CanWrite(size_t length) const; |
| 111 | 111 |
| 112 scoped_ptr<char[]> buffer_; | 112 scoped_ptr<char[]> buffer_; |
| 113 size_t capacity_; // Allocation size of payload, set by constructor. | 113 size_t capacity_; // Allocation size of payload, set by constructor. |
| 114 size_t length_; // Current length of the buffer. | 114 size_t length_; // Current length of the buffer. |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace net | 117 } // namespace net |
| 118 | 118 |
| 119 #endif // NET_SPDY_SPDY_FRAME_BUILDER_H_ | 119 #endif // NET_SPDY_SPDY_FRAME_BUILDER_H_ |
| OLD | NEW |