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

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

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify transaction unit tests Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Called to possibly recover from an SSL handshake error. Sets next_state_ 158 // Called to possibly recover from an SSL handshake error. Sets next_state_
159 // and returns OK if recovering from the error. Otherwise, the same error 159 // and returns OK if recovering from the error. Otherwise, the same error
160 // code is returned. 160 // code is returned.
161 int HandleSSLHandshakeError(int error); 161 int HandleSSLHandshakeError(int error);
162 162
163 // Called to possibly recover from the given error. Sets next_state_ and 163 // Called to possibly recover from the given error. Sets next_state_ and
164 // returns OK if recovering from the error. Otherwise, the same error code 164 // returns OK if recovering from the error. Otherwise, the same error code
165 // is returned. 165 // is returned.
166 int HandleIOError(int error); 166 int HandleIOError(int error);
167 167
168 // Called when an ERR_PIPELINE_EVICTION is returned from the stream. Attempts
169 // to restart the transaction from the beginning.
170 int RestartAfterPipelineEviction();
171
168 // Gets the response headers from the HttpStream. 172 // Gets the response headers from the HttpStream.
169 HttpResponseHeaders* GetResponseHeaders() const; 173 HttpResponseHeaders* GetResponseHeaders() const;
170 174
171 // Called when we reached EOF or got an error. Returns true if we should 175 // Called when we reached EOF or got an error. Returns true if we should
172 // resend the request. |error| is OK when we reached EOF. 176 // resend the request. |error| is OK when we reached EOF.
173 bool ShouldResendRequest(int error) const; 177 bool ShouldResendRequest(int error) const;
174 178
175 // Resets the connection and the request headers for resend. Called when 179 // Resets the connection and the request headers for resend. Called when
176 // ShouldResendRequest() is true. 180 // ShouldResendRequest() is true.
177 void ResetConnectionAndRequestForResend(); 181 void ResetConnectionAndRequestForResend();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // True when the tunnel is in the process of being established - we can't 275 // True when the tunnel is in the process of being established - we can't
272 // read from the socket until the tunnel is done. 276 // read from the socket until the tunnel is done.
273 bool establishing_tunnel_; 277 bool establishing_tunnel_;
274 278
275 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 279 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
276 }; 280 };
277 281
278 } // namespace net 282 } // namespace net
279 283
280 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 284 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698