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

Unified Diff: net/http/http_basic_stream.h

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
« no previous file with comments | « no previous file | net/http/http_basic_stream.cc » ('j') | net/spdy/spdy_http_stream.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_stream.h
===================================================================
--- net/http/http_basic_stream.h (revision 53864)
+++ net/http/http_basic_stream.h (working copy)
@@ -27,12 +27,15 @@
class HttpBasicStream : public HttpStream {
public:
- HttpBasicStream(ClientSocketHandle* handle, const BoundNetLog& net_log);
+ explicit HttpBasicStream(ClientSocketHandle* connection);
virtual ~HttpBasicStream();
// HttpStream methods:
- virtual int SendRequest(const HttpRequestInfo* request,
- const std::string& headers,
+ virtual int InitializeStream(const HttpRequestInfo* request_info,
+ const BoundNetLog& net_log,
+ CompletionCallback* callback);
vandebo (ex-Chrome) 2010/07/28 23:30:39 nit: callback is unused
+
+ virtual int SendRequest(const std::string& headers,
UploadDataStream* request_body,
HttpResponseInfo* response,
CompletionCallback* callback);
@@ -57,6 +60,8 @@
scoped_ptr<HttpStreamParser> parser_;
+ ClientSocketHandle* connection_;
+
DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
};
« no previous file with comments | « no previous file | net/http/http_basic_stream.cc » ('j') | net/spdy/spdy_http_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698