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

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

Issue 2895993003: Misc cleanup in net/spdy/core. (Closed)
Patch Set: Rebase. Created 3 years, 6 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
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_CORE_SPDY_FRAME_BUILDER_H_ 5 #ifndef NET_SPDY_CORE_SPDY_FRAME_BUILDER_H_
6 #define NET_SPDY_CORE_SPDY_FRAME_BUILDER_H_ 6 #define NET_SPDY_CORE_SPDY_FRAME_BUILDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool Seek(size_t length); 47 bool Seek(size_t length);
48 48
49 // Populates this frame with a HTTP2 frame prefix using length information 49 // Populates this frame with a HTTP2 frame prefix using length information
50 // from |capacity_|. The given type must be a control frame type. 50 // from |capacity_|. The given type must be a control frame type.
51 bool BeginNewFrame(const SpdyFramer& framer, 51 bool BeginNewFrame(const SpdyFramer& framer,
52 SpdyFrameType type, 52 SpdyFrameType type,
53 uint8_t flags, 53 uint8_t flags,
54 SpdyStreamId stream_id); 54 SpdyStreamId stream_id);
55 55
56 // Populates this frame with a HTTP2 frame prefix with type and length 56 // Populates this frame with a HTTP2 frame prefix with type and length
57 // information. |type| must be a defined type. 57 // information. |type| must be a defined frame type.
58 bool BeginNewFrame(const SpdyFramer& framer, 58 bool BeginNewFrame(const SpdyFramer& framer,
59 SpdyFrameType type, 59 SpdyFrameType type,
60 uint8_t flags, 60 uint8_t flags,
61 SpdyStreamId stream_id, 61 SpdyStreamId stream_id,
62 size_t length); 62 size_t length);
63 63
64 // Populates this frame with a HTTP2 frame prefix with type and length 64 // Populates this frame with a HTTP2 frame prefix with type and length
65 // information. |raw_frame_type| must not be a defined frame type. 65 // information. |raw_frame_type| must not be a defined frame type.
66 bool BeginNewExtensionFrame(const SpdyFramer& framer, 66 bool BeginNewExtensionFrame(const SpdyFramer& framer,
67 uint8_t raw_frame_type, 67 uint8_t raw_frame_type,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ZeroCopyOutputBuffer* output_ = nullptr; // Does not own. 144 ZeroCopyOutputBuffer* output_ = nullptr; // Does not own.
145 145
146 size_t capacity_; // Allocation size of payload, set by constructor. 146 size_t capacity_; // Allocation size of payload, set by constructor.
147 size_t length_; // Length of the latest frame in the buffer. 147 size_t length_; // Length of the latest frame in the buffer.
148 size_t offset_; // Position at which the latest frame begins. 148 size_t offset_; // Position at which the latest frame begins.
149 }; 149 };
150 150
151 } // namespace net 151 } // namespace net
152 152
153 #endif // NET_SPDY_CORE_SPDY_FRAME_BUILDER_H_ 153 #endif // NET_SPDY_CORE_SPDY_FRAME_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698