diff options
author | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-20 04:19:49 +0000 |
---|---|---|
committer | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-20 04:19:49 +0000 |
commit | 4f38642501dba0b9d93f24392daf26db428b8ea8 (patch) | |
tree | 4952ee7910b3d0fbde0cd469b74d749034e03e7c /net/spdy/spdy_framer.h | |
parent | a38afbfe24dea4fcbece532908af76c52cf3d85a (diff) | |
download | chromium_src-4f38642501dba0b9d93f24392daf26db428b8ea8.zip chromium_src-4f38642501dba0b9d93f24392daf26db428b8ea8.tar.gz chromium_src-4f38642501dba0b9d93f24392daf26db428b8ea8.tar.bz2 |
Refactor SpdyStream state for WebSocket support
In HTTP, it doesn't use STATE_READ_BODY/STATE_READ_BODY_COMPLETE states. Reading body message is handled in OnDataReceived() and DoLoop() is not involved in this state.
In WebSocket, it will send frame after handshake has been finished, and need to get how many data has been written.
STATE_OPEN handles this.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2962015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_framer.h')
-rw-r--r-- | net/spdy/spdy_framer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h index a0ea64d..1122474 100644 --- a/net/spdy/spdy_framer.h +++ b/net/spdy/spdy_framer.h @@ -28,6 +28,7 @@ class HttpNetworkLayer; class HttpNetworkTransactionTest; class SpdyNetworkTransactionTest; class SpdySessionTest; +class SpdyStreamTest; } namespace spdy { @@ -248,6 +249,7 @@ class SpdyFramer { friend class net::HttpNetworkTransactionTest; friend class net::HttpNetworkLayer; // This is temporary for the server. friend class net::SpdySessionTest; + friend class net::SpdyStreamTest; friend class test::TestSpdyVisitor; friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer, bool compress); |