summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_websocket_stream.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-02 01:00:45 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-02 01:00:45 +0000
commite3861ca766137c03543b2aa9b115bc7ef5af57ab (patch)
tree1a023e95d58571d60231c68fdc936a8c808da6b7 /net/spdy/spdy_websocket_stream.h
parent7ab2d1bd8d58531d60eaafca1160b1426a451f89 (diff)
downloadchromium_src-e3861ca766137c03543b2aa9b115bc7ef5af57ab.zip
chromium_src-e3861ca766137c03543b2aa9b115bc7ef5af57ab.tar.gz
chromium_src-e3861ca766137c03543b2aa9b115bc7ef5af57ab.tar.bz2
[SPDY] Create SpdyStreamRequest class to help manage delayed creation of streams
This avoids passing around pointers to memory locations that are asynchronously filled, which is scary. Rework how SpdySession manages its pending stream requests. In particular, avoid leaking streams if a pending request is cancelled before the created stream is handed off to it. Also, replace a list-based queue with an easier to manage deque. Move StreamReleaserCallback to spdy_test_util_common.{h,cc}. BUG=178943 Review URL: https://codereview.chromium.org/12380005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_websocket_stream.h')
-rw-r--r--net/spdy/spdy_websocket_stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/spdy/spdy_websocket_stream.h b/net/spdy/spdy_websocket_stream.h
index 5ab4c48..c003a4b 100644
--- a/net/spdy/spdy_websocket_stream.h
+++ b/net/spdy/spdy_websocket_stream.h
@@ -14,6 +14,7 @@
#include "net/base/request_priority.h"
#include "net/spdy/spdy_framer.h"
#include "net/spdy/spdy_header_block.h"
+#include "net/spdy/spdy_session.h"
#include "net/spdy/spdy_stream.h"
namespace net {
@@ -91,6 +92,7 @@ class NET_EXPORT_PRIVATE SpdyWebSocketStream
void OnSpdyStreamCreated(int status);
+ SpdyStreamRequest stream_request_;
scoped_refptr<SpdyStream> stream_;
scoped_refptr<SpdySession> spdy_session_;
Delegate* delegate_;