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

Side by Side Diff: net/http/http_network_transaction.h

Issue 10829188: Use net::UploadDataStream::Init() instead of InitSync() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 enum State { 112 enum State {
113 STATE_CREATE_STREAM, 113 STATE_CREATE_STREAM,
114 STATE_CREATE_STREAM_COMPLETE, 114 STATE_CREATE_STREAM_COMPLETE,
115 STATE_INIT_STREAM, 115 STATE_INIT_STREAM,
116 STATE_INIT_STREAM_COMPLETE, 116 STATE_INIT_STREAM_COMPLETE,
117 STATE_GENERATE_PROXY_AUTH_TOKEN, 117 STATE_GENERATE_PROXY_AUTH_TOKEN,
118 STATE_GENERATE_PROXY_AUTH_TOKEN_COMPLETE, 118 STATE_GENERATE_PROXY_AUTH_TOKEN_COMPLETE,
119 STATE_GENERATE_SERVER_AUTH_TOKEN, 119 STATE_GENERATE_SERVER_AUTH_TOKEN,
120 STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE, 120 STATE_GENERATE_SERVER_AUTH_TOKEN_COMPLETE,
121 STATE_INIT_REQUEST_BODY,
122 STATE_INIT_REQUEST_BODY_COMPLETE,
121 STATE_BUILD_REQUEST, 123 STATE_BUILD_REQUEST,
122 STATE_BUILD_REQUEST_COMPLETE, 124 STATE_BUILD_REQUEST_COMPLETE,
123 STATE_SEND_REQUEST, 125 STATE_SEND_REQUEST,
124 STATE_SEND_REQUEST_COMPLETE, 126 STATE_SEND_REQUEST_COMPLETE,
125 STATE_READ_HEADERS, 127 STATE_READ_HEADERS,
126 STATE_READ_HEADERS_COMPLETE, 128 STATE_READ_HEADERS_COMPLETE,
127 STATE_READ_BODY, 129 STATE_READ_BODY,
128 STATE_READ_BODY_COMPLETE, 130 STATE_READ_BODY_COMPLETE,
129 STATE_DRAIN_BODY_FOR_AUTH_RESTART, 131 STATE_DRAIN_BODY_FOR_AUTH_RESTART,
130 STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE, 132 STATE_DRAIN_BODY_FOR_AUTH_RESTART_COMPLETE,
(...skipping 13 matching lines...) Expand all
144 // ERR_IO_PENDING, then the result from OnIOComplete will be passed to the 146 // ERR_IO_PENDING, then the result from OnIOComplete will be passed to the
145 // next state method as the result arg. 147 // next state method as the result arg.
146 int DoCreateStream(); 148 int DoCreateStream();
147 int DoCreateStreamComplete(int result); 149 int DoCreateStreamComplete(int result);
148 int DoInitStream(); 150 int DoInitStream();
149 int DoInitStreamComplete(int result); 151 int DoInitStreamComplete(int result);
150 int DoGenerateProxyAuthToken(); 152 int DoGenerateProxyAuthToken();
151 int DoGenerateProxyAuthTokenComplete(int result); 153 int DoGenerateProxyAuthTokenComplete(int result);
152 int DoGenerateServerAuthToken(); 154 int DoGenerateServerAuthToken();
153 int DoGenerateServerAuthTokenComplete(int result); 155 int DoGenerateServerAuthTokenComplete(int result);
156 int DoInitRequestBody();
157 int DoInitRequestBodyComplete(int result);
154 int DoBuildRequest(); 158 int DoBuildRequest();
155 int DoBuildRequestComplete(int result); 159 int DoBuildRequestComplete(int result);
156 int DoSendRequest(); 160 int DoSendRequest();
157 int DoSendRequestComplete(int result); 161 int DoSendRequestComplete(int result);
158 int DoReadHeaders(); 162 int DoReadHeaders();
159 int DoReadHeadersComplete(int result); 163 int DoReadHeadersComplete(int result);
160 int DoReadBody(); 164 int DoReadBody();
161 int DoReadBodyComplete(int result); 165 int DoReadBodyComplete(int result);
162 int DoDrainBodyForAuthRestart(); 166 int DoDrainBodyForAuthRestart();
163 int DoDrainBodyForAuthRestartComplete(int result); 167 int DoDrainBodyForAuthRestartComplete(int result);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // True when the tunnel is in the process of being established - we can't 297 // True when the tunnel is in the process of being established - we can't
294 // read from the socket until the tunnel is done. 298 // read from the socket until the tunnel is done.
295 bool establishing_tunnel_; 299 bool establishing_tunnel_;
296 300
297 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 301 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
298 }; 302 };
299 303
300 } // namespace net 304 } // namespace net
301 305
302 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 306 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« 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