diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-14 17:31:21 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-14 17:31:21 +0000 |
commit | 1f73d5478f1a940cefb256d1d6aef9694532fb65 (patch) | |
tree | 2a71ef2d30e73020c9805d3fa0306096e7dd544a /net/spdy/spdy_framer.h | |
parent | 1ff07180ea3505cea1b70f81a034b4ef734082f5 (diff) | |
download | chromium_src-1f73d5478f1a940cefb256d1d6aef9694532fb65.zip chromium_src-1f73d5478f1a940cefb256d1d6aef9694532fb65.tar.gz chromium_src-1f73d5478f1a940cefb256d1d6aef9694532fb65.tar.bz2 |
net: workaround compression leaks
BUG=139744
Review URL: https://chromiumcodereview.appspot.com/10837057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_framer.h')
-rw-r--r-- | net/spdy/spdy_framer.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h index 1f82876..93f60e7 100644 --- a/net/spdy/spdy_framer.h +++ b/net/spdy/spdy_framer.h @@ -417,9 +417,6 @@ class NET_EXPORT_PRIVATE SpdyFramer { // Returns true if a frame could be compressed. bool IsCompressible(const SpdyFrame& frame) const; - // Returns a new SpdyControlFrame with the compressed payload of |frame|. - SpdyControlFrame* CompressControlFrame(const SpdyControlFrame& frame); - // Get the minimum size of the control frame for the given control frame // type. This is useful for validating frame blocks. static size_t GetMinimumControlFrameSize(int version, SpdyControlType type); @@ -528,6 +525,9 @@ class NET_EXPORT_PRIVATE SpdyFramer { void WriteHeaderBlock(SpdyFrameBuilder* frame, const SpdyHeaderBlock* headers) const; + void WriteHeaderBlockToZ(const SpdyHeaderBlock* headers, + z_stream* out) const; + // Set the error code and moves the framer into the error state. void set_error(SpdyError error); @@ -536,6 +536,10 @@ class NET_EXPORT_PRIVATE SpdyFramer { bool GetFrameBoundaries(const SpdyFrame& frame, int* payload_length, int* header_length, const char** payload) const; + // Returns a new SpdyControlFrame with the compressed payload of |frame|. + SpdyControlFrame* CompressControlFrame(const SpdyControlFrame& frame, + const SpdyHeaderBlock* headers); + // The size of the control frame buffer. // Since this is only used for control frame headers, the maximum control // frame header size (SYN_STREAM) is sufficient; all remaining control |