| 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_FLIP_FRAME_BUILDER_H_ | 5 #ifndef NET_FLIP_FRAME_BUILDER_H_ |
| 6 #define NET_FLIP_FRAME_BUILDER_H_ | 6 #define NET_FLIP_FRAME_BUILDER_H_ |
| 7 | 7 |
| 8 #ifdef WIN32 | 8 #ifdef WIN32 |
| 9 #include <winsock2.h> // for htonl() functions | 9 #include <winsock2.h> // for htonl() functions |
| 10 #else | 10 #else |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 char* buffer_; | 175 char* buffer_; |
| 176 size_t capacity_; // Allocation size of payload (or -1 if buffer is const). | 176 size_t capacity_; // Allocation size of payload (or -1 if buffer is const). |
| 177 size_t length_; // current length of the buffer | 177 size_t length_; // current length of the buffer |
| 178 size_t variable_buffer_offset_; // IF non-zero, then offset to a buffer. | 178 size_t variable_buffer_offset_; // IF non-zero, then offset to a buffer. |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace flip | 181 } // namespace flip |
| 182 | 182 |
| 183 #endif // NET_FLIP_FRAME_BUILDER_H_ | 183 #endif // NET_FLIP_FRAME_BUILDER_H_ |
| 184 | 184 |
| OLD | NEW |