diff options
author | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 22:40:42 +0000 |
---|---|---|
committer | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 22:40:42 +0000 |
commit | 7af985a498165e9ba74d7e428be4ffe9a054f053 (patch) | |
tree | 88a20282a57a9b0bffc1d99f34e0ba7ae65f4063 /net/socket/client_socket_pool.h | |
parent | ab108f2658ea9da9572085ea8bd501505f3f38c5 (diff) | |
download | chromium_src-7af985a498165e9ba74d7e428be4ffe9a054f053.zip chromium_src-7af985a498165e9ba74d7e428be4ffe9a054f053.tar.gz chromium_src-7af985a498165e9ba74d7e428be4ffe9a054f053.tar.bz2 |
Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error.
BUG=164363
Review URL: https://codereview.chromium.org/11464028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r-- | net/socket/client_socket_pool.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h index 1d2246c..7a274b7 100644 --- a/net/socket/client_socket_pool.h +++ b/net/socket/client_socket_pool.h @@ -115,10 +115,11 @@ class NET_EXPORT ClientSocketPool { int id) = 0; // This flushes all state from the ClientSocketPool. This means that all - // idle and connecting sockets are discarded. Active sockets being - // held by ClientSocketPool clients will be discarded when released back to - // the pool. Does not flush any pools wrapped by |this|. - virtual void Flush() = 0; + // idle and connecting sockets are discarded with the given |error|. + // Active sockets being held by ClientSocketPool clients will be discarded + // when released back to the pool. + // Does not flush any pools wrapped by |this|. + virtual void FlushWithError(int error) = 0; // Returns true if a there is currently a request blocked on the // per-pool (not per-host) max socket limit. |