Chromium Code Reviews| Index: chrome/browser/net/chrome_network_delegate.cc |
| diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc |
| index 3d0f1b62094f43b673b08e6e476bc14a16313171..fb933c68a48561b650135d2258754fe941954259 100644 |
| --- a/chrome/browser/net/chrome_network_delegate.cc |
| +++ b/chrome/browser/net/chrome_network_delegate.cc |
| @@ -47,7 +47,9 @@ |
| #include "net/cookies/cookie_options.h" |
| #include "net/http/http_request_headers.h" |
| #include "net/http/http_response_headers.h" |
| +#include "net/proxy/proxy_config.h" |
| #include "net/proxy/proxy_info.h" |
| +#include "net/proxy/proxy_retry_info.h" |
| #include "net/proxy/proxy_server.h" |
| #include "net/socket_stream/socket_stream.h" |
| #include "net/url_request/url_request.h" |
| @@ -427,9 +429,17 @@ int ChromeNetworkDelegate::OnBeforeURLRequest( |
| } |
| void ChromeNetworkDelegate::OnResolveProxy( |
| - const GURL& url, int load_flags, net::ProxyInfo* result) { |
| - if (!on_resolve_proxy_handler_.is_null()) { |
| + const GURL& url, |
| + int load_flags, |
| + const net::ProxyService* proxy_service, |
| + net::ProxyInfo* result) { |
| + if (!on_resolve_proxy_handler_.is_null() && |
| + !proxy_config_getter_.is_null()) { |
| + net::ProxyConfig data_reduction_proxy_config; |
| + proxy_config_getter_.Run(&data_reduction_proxy_config); |
| on_resolve_proxy_handler_.Run(url, load_flags, |
| + data_reduction_proxy_config, |
| + proxy_service->proxy_retry_info(), |
|
mef
2014/08/11 19:44:40
If proxy_service is never NULL, should it be a con
bengr
2014/08/11 23:03:19
Done.
|
| data_reduction_proxy_params_, result); |
| } |
| } |