summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_framer.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-15 20:52:15 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-15 20:52:15 +0000
commit5447136397d97ae08318d3e51a98ef4f61ed2514 (patch)
tree6312d4bdf02055d031578065313156c68d7631eb /net/spdy/spdy_framer.h
parent9141a4c74644554171ca279d8093d0b468431f25 (diff)
downloadchromium_src-5447136397d97ae08318d3e51a98ef4f61ed2514.zip
chromium_src-5447136397d97ae08318d3e51a98ef4f61ed2514.tar.gz
chromium_src-5447136397d97ae08318d3e51a98ef4f61ed2514.tar.bz2
Remove SpdyControlFrame, and associated cleanup.
Useful for SPDY 4 development. Including the following refactor line items, among others: * Rename SpdyFramer::current_frame_len_ to current_frame_buffer_length_ * Add fields, and centralize processing, for common frame header in SpdyFramer. * Add SpdyFrameReader::ReadUInt24(), useful for reading those pesky 24-bit length fields. This lands server change 42289618. Review URL: https://codereview.chromium.org/12212186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_framer.h')
-rw-r--r--net/spdy/spdy_framer.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h
index 7264100..14dd478 100644
--- a/net/spdy/spdy_framer.h
+++ b/net/spdy/spdy_framer.h
@@ -621,7 +621,18 @@ class NET_EXPORT_PRIVATE SpdyFramer {
size_t remaining_control_header_;
scoped_array<char> current_frame_buffer_;
- size_t current_frame_len_; // Number of bytes read into the current_frame_.
+ // Number of bytes read into the current_frame_buffer_.
+ size_t current_frame_buffer_length_;
+
+ // The type of the frame currently being read. Set to NUM_CONTROL_FRAME_TYPES
+ // if currently processing a DATA frame.
+ SpdyControlType current_frame_type_;
+
+ // The flags field of the frame currently being read.
+ uint8 current_frame_flags_;
+
+ // The length field of the frame currently being read.
+ uint32 current_frame_length_;
// Scratch space for handling SETTINGS frames.
// TODO(hkhalil): Unify memory for this scratch space with