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

Unified Diff: net/http/http_stream_parser.cc

Issue 3079002: Refactor SpdyHttpStream to implement HttpStream. Required adding a new... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 5 months 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/http/http_stream_parser.cc
===================================================================
--- net/http/http_stream_parser.cc (revision 53864)
+++ net/http/http_stream_parser.cc (working copy)
@@ -14,10 +14,11 @@
namespace net {
HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection,
+ const HttpRequestInfo* request,
GrowableIOBuffer* read_buffer,
const BoundNetLog& net_log)
: io_state_(STATE_NONE),
- request_(NULL),
+ request_(request),
request_headers_(NULL),
request_body_(NULL),
read_buf_(read_buffer),
@@ -38,8 +39,7 @@
HttpStreamParser::~HttpStreamParser() {}
-int HttpStreamParser::SendRequest(const HttpRequestInfo* request,
- const std::string& headers,
+int HttpStreamParser::SendRequest(const std::string& headers,
UploadDataStream* request_body,
HttpResponseInfo* response,
CompletionCallback* callback) {
@@ -48,7 +48,6 @@
DCHECK(callback);
DCHECK(response);
- request_ = request;
response_ = response;
scoped_refptr<StringIOBuffer> headers_io_buf = new StringIOBuffer(headers);
request_headers_ = new DrainableIOBuffer(headers_io_buf,

Powered by Google App Engine
This is Rietveld 408576698