summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_transaction.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-29 21:53:54 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-29 21:53:54 +0000
commit86ec30d6710923cf1c193eb88b1e6251f831e0ef (patch)
tree5e94a3f1151ad85696e6a6ac4509413c645db148 /net/http/http_network_transaction.h
parentaa4edea0dcdec0733c01e3f2c7487969d17b4a51 (diff)
downloadchromium_src-86ec30d6710923cf1c193eb88b1e6251f831e0ef.zip
chromium_src-86ec30d6710923cf1c193eb88b1e6251f831e0ef.tar.gz
chromium_src-86ec30d6710923cf1c193eb88b1e6251f831e0ef.tar.bz2
Add code to call ReconsiderProxyAfterError when we encounter a failure to resolve a hostname or a failure to connect a client socket.
BUG=2962 R=wtc Review URL: http://codereview.chromium.org/5033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.h')
-rw-r--r--net/http/http_network_transaction.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h
index 533d4a2..2414050 100644
--- a/net/http/http_network_transaction.h
+++ b/net/http/http_network_transaction.h
@@ -94,6 +94,14 @@ class HttpNetworkTransaction : public HttpTransaction {
// returns false.
bool ShouldResendRequest();
+ // Called when we encounter a network error that could be resolved by trying
+ // a new proxy configuration. If there is another proxy configuration to try
+ // then this method sets next_state_ appropriately and returns either OK or
+ // ERR_IO_PENDING depending on whether or not the new proxy configuration is
+ // available synchronously or asynchronously. Otherwise, the given error
+ // code is simply returned.
+ int ReconsiderProxyAfterError(int error);
+
// 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) and HTTP/1.x responses.