Chromium Code Reviews| 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; |