diff options
author | rcs@chromium.org <rcs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-09 05:23:54 +0000 |
---|---|---|
committer | rcs@chromium.org <rcs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-09 05:23:54 +0000 |
commit | a702da7952a19cc3def379d573dca5a6c191273c (patch) | |
tree | 58f3f0fc5f626d551659afe05e785840b3febe63 /net/proxy/proxy_service.h | |
parent | 30759127f43d6be58149b1fa363813fb016f5b71 (diff) | |
download | chromium_src-a702da7952a19cc3def379d573dca5a6c191273c.zip chromium_src-a702da7952a19cc3def379d573dca5a6c191273c.tar.gz chromium_src-a702da7952a19cc3def379d573dca5a6c191273c.tar.bz2 |
Add Finch experiment for selectively bypassing proxies.
Add option to bypass the data compression proxy if the request resource
type (as inferred by the renderer process) is not an image.
For background, see this design doc:
https://docs.google.com/a/google.com/document/d/1Kz92Fmw3lv_R-2aNvLp8jW9lkfKOZciTZtni2qQ_Adc/edit
BUG=391836
Review URL: https://codereview.chromium.org/332313003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_service.h')
-rw-r--r-- | net/proxy/proxy_service.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h index 036dbb3..baca9da 100644 --- a/net/proxy/proxy_service.h +++ b/net/proxy/proxy_service.h @@ -124,9 +124,11 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver, // // Profiling information for the request is saved to |net_log| if non-NULL. int ResolveProxy(const GURL& url, + int load_flags, ProxyInfo* results, const net::CompletionCallback& callback, PacRequest** pac_request, + NetworkDelegate* network_delegate, const BoundNetLog& net_log); // This method is called after a failure to connect or resolve a host name. @@ -144,10 +146,12 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver, // // Profiling information for the request is saved to |net_log| if non-NULL. int ReconsiderProxyAfterError(const GURL& url, + int load_flags, int net_error, ProxyInfo* results, const CompletionCallback& callback, PacRequest** pac_request, + NetworkDelegate* network_delegate, const BoundNetLog& net_log); // Explicitly trigger proxy fallback for the given |results| by updating our @@ -367,7 +371,10 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver, // Returns ERR_IO_PENDING if the request cannot be completed synchronously. // Otherwise it fills |result| with the proxy information for |url|. // Completing synchronously means we don't need to query ProxyResolver. - int TryToCompleteSynchronously(const GURL& url, ProxyInfo* result); + int TryToCompleteSynchronously(const GURL& url, + int load_flags, + NetworkDelegate* network_delegate, + ProxyInfo* result); // Cancels all of the requests sent to the ProxyResolver. These will be // restarted when calling SetReady(). @@ -386,7 +393,10 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver, // Called when proxy resolution has completed (either synchronously or // asynchronously). Handles logging the result, and cleaning out // bad entries from the results list. - int DidFinishResolvingProxy(ProxyInfo* result, + int DidFinishResolvingProxy(const GURL& url, + int load_flags, + NetworkDelegate* network_delegate, + ProxyInfo* result, int result_code, const BoundNetLog& net_log); |