diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-16 18:06:11 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-16 18:06:11 +0000 |
commit | 6909932454f38eb563d8fee30bcc41994eeb8166 (patch) | |
tree | 3cff4c99cd14c0bc94e87bc8b9cb08e596ee7436 /net/spdy/spdy_frame_builder.h | |
parent | 640565b41d381acd2b026823c2fde132b97dd80a (diff) | |
download | chromium_src-6909932454f38eb563d8fee30bcc41994eeb8166.zip chromium_src-6909932454f38eb563d8fee30bcc41994eeb8166.tar.gz chromium_src-6909932454f38eb563d8fee30bcc41994eeb8166.tar.bz2 |
Factor out the code to write control and frame headers into a new constructors of SpdyFrameBuilder.
Remove unused empty SpdyFrameBuilder constructor.
Review URL: http://codereview.chromium.org/10053029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_frame_builder.h')
-rw-r--r-- | net/spdy/spdy_frame_builder.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h index 31d0211..ed7c78c 100644 --- a/net/spdy/spdy_frame_builder.h +++ b/net/spdy/spdy_frame_builder.h @@ -27,10 +27,16 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder { public: ~SpdyFrameBuilder(); - SpdyFrameBuilder(); - - // Initiailizes a SpdyFrameBuilder with a buffer of given size. - explicit SpdyFrameBuilder(size_t size); + // Initializes a SpdyFrameBuilder with a buffer of given size, + // populate with a SPDY control frame header based + // on |type|, |flags|, and |spdy_version|. + SpdyFrameBuilder(SpdyControlType type, SpdyControlFlags flags, + int spdy_version, size_t size); + + // Initiailizes a SpdyFrameBuilder with a buffer of given size, + // populated with a SPDY data frame header based on + // |stream_id| and |flags|. + SpdyFrameBuilder(SpdyStreamId stream_id, SpdyDataFlags flags, size_t size); // Returns the size of the SpdyFrameBuilder's data. int length() const { return length_; } |