diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-05 17:34:47 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-06 10:04:14 +0000 |
commit | eaf1da4d961fbbda9455f9af3b23d1af777f43fa (patch) | |
tree | 95970599ecee31c4f7f940bc97ac98c61a3d0cad /chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h | |
parent | 38a9a29f4f9436cace7f0e7abf9c586057df8a4e (diff) |
BASELINE: Update Chromium to 73.0.3683.64
Change-Id: I76517dc277ba4e16bfd7e098fda3d079656b3b9f
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h')
-rw-r--r-- | chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h b/chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h index fc461452e78..d8d7edaf02b 100644 --- a/chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h +++ b/chromium/components/data_reduction_proxy/content/common/data_reduction_proxy_url_loader_throttle.h @@ -45,8 +45,16 @@ class DataReductionProxyURLLoaderThrottle : public content::URLLoaderThrottle { void WillProcessResponse(const GURL& response_url, network::ResourceResponseHead* response_head, bool* defer) override; + void WillOnCompleteWithError(const network::URLLoaderCompletionStatus& status, + bool* defer) override; private: + // Retry the request bypassing proxies or falling back to next proxy based on + // |net_error| and the response headers. + void MaybeRetry(const net::ProxyServer& proxy_server, + const net::HttpResponseHeaders* headers, + net::Error net_error, + bool* defer); // Marks |bad_proxies| to be bypassed for |bypass_duration|. Once that action // has completed will call OnMarkProxiesAsBadComplete(). void MarkProxiesAsBad(const std::vector<net::ProxyServer>& bad_proxies, |