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

Unified Diff: net/http/http_network_transaction.h

Issue 3064033: Refactor HttpNetworkTransaction to eliminate the SPDY... (Closed) Base URL: svn://svn.chromium.org/chrome/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_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.h
===================================================================
--- net/http/http_network_transaction.h (revision 54789)
+++ net/http/http_network_transaction.h (working copy)
@@ -36,7 +36,7 @@
class HttpNetworkSession;
class HttpRequestHeaders;
class HttpStream;
-class SpdyHttpStream;
+class SpdySession;
class HttpNetworkTransaction : public HttpTransaction {
public:
@@ -91,6 +91,8 @@
STATE_RESOLVE_PROXY_COMPLETE,
STATE_INIT_CONNECTION,
STATE_INIT_CONNECTION_COMPLETE,
+ STATE_INIT_STREAM,
+ STATE_INIT_STREAM_COMPLETE,
STATE_RESTART_TUNNEL_AUTH,
STATE_RESTART_TUNNEL_AUTH_COMPLETE,
STATE_GENERATE_PROXY_AUTH_TOKEN,
@@ -105,14 +107,6 @@
STATE_READ_BODY_COMPLETE,
STATE_DRAIN_BODY_FOR_AUTH_RESTART,
STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE,
- STATE_SPDY_GET_STREAM,
- STATE_SPDY_GET_STREAM_COMPLETE,
- STATE_SPDY_SEND_REQUEST,
- STATE_SPDY_SEND_REQUEST_COMPLETE,
- STATE_SPDY_READ_HEADERS,
- STATE_SPDY_READ_HEADERS_COMPLETE,
- STATE_SPDY_READ_BODY,
- STATE_SPDY_READ_BODY_COMPLETE,
STATE_NONE
};
@@ -136,6 +130,8 @@
int DoResolveProxyComplete(int result);
int DoInitConnection();
int DoInitConnectionComplete(int result);
+ int DoInitStream();
+ int DoInitStreamComplete(int result);
int DoRestartTunnelAuth();
int DoRestartTunnelAuthComplete(int result);
int DoGenerateProxyAuthToken();
@@ -150,14 +146,6 @@
int DoReadBodyComplete(int result);
int DoDrainBodyForAuthRestart();
int DoDrainBodyForAuthRestartComplete(int result);
- int DoSpdyGetStream();
- int DoSpdyGetStreamComplete(int result);
- int DoSpdySendRequest();
- int DoSpdySendRequestComplete(int result);
- int DoSpdyReadHeaders();
- int DoSpdyReadHeadersComplete(int result);
- int DoSpdyReadBody();
- int DoSpdyReadBodyComplete(int result);
// Record histograms of latency until Connect() completes.
static void LogHttpConnectedMetrics(const ClientSocketHandle& handle);
@@ -277,8 +265,8 @@
ProxyInfo proxy_info_;
scoped_ptr<ClientSocketHandle> connection_;
- scoped_ptr<HttpStream> http_stream_;
- scoped_ptr<SpdyHttpStream> spdy_http_stream_;
+ scoped_ptr<HttpStream> stream_;
+ scoped_refptr<SpdySession> spdy_session_;
bool reused_socket_;
// True if we've validated the headers that the stream parser has returned.
« no previous file with comments | « no previous file | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698