Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: net/spdy/core/spdy_frame_builder.h

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/core/spdy_deframer_visitor_test.cc ('k') | net/spdy/core/spdy_frame_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/sys_byteorder.h" 14 #include "base/sys_byteorder.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/spdy/core/spdy_bug_tracker.h"
17 #include "net/spdy/core/spdy_protocol.h"
18 #include "net/spdy/core/zero_copy_output_buffer.h"
16 #include "net/spdy/platform/api/spdy_string_piece.h" 19 #include "net/spdy/platform/api/spdy_string_piece.h"
17 #include "net/spdy/spdy_bug_tracker.h"
18 #include "net/spdy/spdy_protocol.h"
19 #include "net/spdy/zero_copy_output_buffer.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 class SpdyFramer; 23 class SpdyFramer;
24 24
25 // This class provides facilities for basic binary value packing 25 // This class provides facilities for basic binary value packing
26 // into Spdy frames. 26 // into Spdy frames.
27 // 27 //
28 // The SpdyFrameBuilder supports appending primitive values (int, string, etc) 28 // The SpdyFrameBuilder supports appending primitive values (int, string, etc)
29 // to a frame instance. The SpdyFrameBuilder grows its internal memory buffer 29 // to a frame instance. The SpdyFrameBuilder grows its internal memory buffer
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 const size_t kLengthFieldLength = 3; 159 const size_t kLengthFieldLength = 3;
160 char* start_of_current_frame_ = nullptr; 160 char* start_of_current_frame_ = nullptr;
161 size_t bytes_of_length_written_in_first_block_ = kLengthFieldLength; 161 size_t bytes_of_length_written_in_first_block_ = kLengthFieldLength;
162 // In case length of a new frame is cross blocks. 162 // In case length of a new frame is cross blocks.
163 char* start_of_current_frame_in_next_block_ = nullptr; 163 char* start_of_current_frame_in_next_block_ = nullptr;
164 }; 164 };
165 165
166 } // namespace net 166 } // namespace net
167 167
168 #endif // NET_SPDY_SPDY_FRAME_BUILDER_H_ 168 #endif // NET_SPDY_SPDY_FRAME_BUILDER_H_
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_deframer_visitor_test.cc ('k') | net/spdy/core/spdy_frame_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698