diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-16 21:04:55 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-16 21:04:55 +0000 |
commit | 68b745055e85cc466a0c867e87eacb43539baaa4 (patch) | |
tree | 498188bc84f5ac6c95f4c1dfb47ded34b7897a9a /net/spdy/spdy_framer.h | |
parent | 7e5708ed452a9dc5b84f0b6c605cb9ed70d3548c (diff) | |
download | chromium_src-68b745055e85cc466a0c867e87eacb43539baaa4.zip chromium_src-68b745055e85cc466a0c867e87eacb43539baaa4.tar.gz chromium_src-68b745055e85cc466a0c867e87eacb43539baaa4.tar.bz2 |
Fix crash in WriteSocket() when sending Settings frames
and compression is enabled.
We need better unit tests for the compressed-frame testing. Filed
bug 41805 to implement those.
BUG=41803
TEST=NONE
Review URL: http://codereview.chromium.org/1648014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_framer.h')
-rw-r--r-- | net/spdy/spdy_framer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h index c265be9..b07dd02 100644 --- a/net/spdy/spdy_framer.h +++ b/net/spdy/spdy_framer.h @@ -223,6 +223,9 @@ class SpdyFramer { // Returned frame must be freed with "delete". SpdyFrame* DuplicateFrame(const SpdyFrame* frame); + // Returns true if a frame could be compressed. + bool IsCompressible(const SpdyFrame* frame) const; + // For debugging. static const char* StateToString(int state); static const char* ErrorCodeToString(int error_code); |