| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | |
| 13 | 12 |
| 14 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 15 #include "base/sys_byteorder.h" | 14 #include "base/sys_byteorder.h" |
| 16 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
| 17 #include "net/spdy/platform/api/spdy_string_piece.h" | 16 #include "net/spdy/platform/api/spdy_string_piece.h" |
| 18 #include "net/spdy/spdy_bug_tracker.h" | 17 #include "net/spdy/spdy_bug_tracker.h" |
| 19 #include "net/spdy/spdy_protocol.h" | 18 #include "net/spdy/spdy_protocol.h" |
| 20 #include "net/spdy/zero_copy_output_buffer.h" | 19 #include "net/spdy/zero_copy_output_buffer.h" |
| 21 | 20 |
| 22 namespace net { | 21 namespace net { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 const size_t kLengthFieldLength = 3; | 143 const size_t kLengthFieldLength = 3; |
| 145 char* start_of_current_frame_ = nullptr; | 144 char* start_of_current_frame_ = nullptr; |
| 146 size_t bytes_of_length_written_in_first_block_ = kLengthFieldLength; | 145 size_t bytes_of_length_written_in_first_block_ = kLengthFieldLength; |
| 147 // In case length of a new frame is cross blocks. | 146 // In case length of a new frame is cross blocks. |
| 148 char* start_of_current_frame_in_next_block_ = nullptr; | 147 char* start_of_current_frame_in_next_block_ = nullptr; |
| 149 }; | 148 }; |
| 150 | 149 |
| 151 } // namespace net | 150 } // namespace net |
| 152 | 151 |
| 153 #endif // NET_SPDY_SPDY_FRAME_BUILDER_H_ | 152 #endif // NET_SPDY_SPDY_FRAME_BUILDER_H_ |
| OLD | NEW |