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

Unified Diff: net/http/http_network_transaction.h

Issue 4264: If we read nothing (EOF) after sending a request on a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/ssl_client_socket.cc ('k') | 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 2563)
+++ net/http/http_network_transaction.h (working copy)
@@ -87,9 +87,14 @@
// is returned.
int HandleIOError(int error);
+ // Called when we reached EOF or got an error. If we should resend the
+ // request, sets next_state_ and returns true. Otherwise, does nothing and
+ // returns false.
+ bool ShouldResendRequest();
+
// Return true if based on the bytes read so far, the start of the
// status line is known. This is used to distingish between HTTP/0.9
- // responses (which have no status line).
+ // responses (which have no status line) and HTTP/1.x responses.
bool has_found_status_line_start() const {
return header_buf_http_offset_ != -1;
}
« no previous file with comments | « net/base/ssl_client_socket.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698