Index: net/http/http_basic_stream.cc |
=================================================================== |
--- net/http/http_basic_stream.cc (revision 68026) |
+++ net/http/http_basic_stream.cc (working copy) |
@@ -23,9 +23,18 @@ |
request_info_(NULL) { |
} |
+HttpBasicStream::HttpBasicStream(HttpStreamParser* parser, |
+ ClientSocketHandle* connection) |
+ : parser_(parser), |
+ connection_(connection), |
+ using_proxy_(false), |
+ request_info_(NULL) { |
+} |
+ |
int HttpBasicStream::InitializeStream(const HttpRequestInfo* request_info, |
const BoundNetLog& net_log, |
CompletionCallback* callback) { |
+ DCHECK(!parser_.get()); |
request_info_ = request_info; |
parser_.reset(new HttpStreamParser(connection_.get(), request_info, |
read_buf_, net_log)); |
@@ -38,6 +47,7 @@ |
HttpResponseInfo* response, |
CompletionCallback* callback) { |
DCHECK(parser_.get()); |
+ DCHECK(request_info_); |
const std::string path = using_proxy_ ? |
HttpUtil::SpecForRequest(request_info_->url) : |
HttpUtil::PathForRequest(request_info_->url); |