Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: net/spdy/spdy_http_stream.cc

Issue 4935001: Allow a non-200 (or non-407) response for a CONNECT request from an HTTPS pro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Cleaned up Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_http_stream.cc
===================================================================
--- net/spdy/spdy_http_stream.cc (revision 68026)
+++ net/spdy/spdy_http_stream.cc (working copy)
@@ -33,6 +33,20 @@
more_read_data_pending_(false),
direct_(direct) { }
+SpdyHttpStream::SpdyHttpStream(SpdyStream* spdy_stream)
+ : ALLOW_THIS_IN_INITIALIZER_LIST(read_callback_factory_(this)),
+ stream_(spdy_stream),
+ spdy_session_(NULL),
+ response_info_(NULL),
+ download_finished_(false),
+ user_callback_(NULL),
+ user_buffer_len_(0),
+ buffered_read_callback_pending_(false),
vandebo (ex-Chrome) 2010/12/04 00:30:37 Should some of these settings come from the passed
Ryan Hamilton 2010/12/09 21:19:35 I don't *think* any of the fields need to come fro
+ more_read_data_pending_(false),
+ direct_(false) {
+ stream_->SetDelegate(this);
+}
+
SpdyHttpStream::~SpdyHttpStream() {
if (stream_)
stream_->DetachDelegate();
@@ -41,6 +55,7 @@
int SpdyHttpStream::InitializeStream(const HttpRequestInfo* request_info,
const BoundNetLog& stream_net_log,
CompletionCallback* callback) {
+ DCHECK(!stream_.get());
if (spdy_session_->IsClosed())
return ERR_CONNECTION_CLOSED;

Powered by Google App Engine
This is Rietveld 408576698