1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/proxy_resolution/win/windows_system_proxy_resolution_service.h"
6 
7 #include "base/values.h"
8 #include "net/base/net_errors.h"
9 
10 namespace net {
11 
12 WindowsSystemProxyResolutionService::WindowsSystemProxyResolutionService() =
13     default;
14 WindowsSystemProxyResolutionService::~WindowsSystemProxyResolutionService() =
15     default;
16 
ResolveProxy(const GURL & url,const std::string & method,const NetworkIsolationKey & network_isolation_key,ProxyInfo * results,CompletionOnceCallback callback,std::unique_ptr<ProxyResolutionRequest> * request,const NetLogWithSource & net_log)17 int WindowsSystemProxyResolutionService::ResolveProxy(
18     const GURL& url,
19     const std::string& method,
20     const NetworkIsolationKey& network_isolation_key,
21     ProxyInfo* results,
22     CompletionOnceCallback callback,
23     std::unique_ptr<ProxyResolutionRequest>* request,
24     const NetLogWithSource& net_log) {
25   return ERR_NOT_IMPLEMENTED;
26 }
27 
ReportSuccess(const ProxyInfo & proxy_info)28 void WindowsSystemProxyResolutionService::ReportSuccess(
29     const ProxyInfo& proxy_info) {}
30 
SetProxyDelegate(ProxyDelegate * delegate)31 void WindowsSystemProxyResolutionService::SetProxyDelegate(
32     ProxyDelegate* delegate) {}
33 
OnShutdown()34 void WindowsSystemProxyResolutionService::OnShutdown() {}
35 
MarkProxiesAsBadUntil(const ProxyInfo & results,base::TimeDelta retry_delay,const std::vector<ProxyServer> & additional_bad_proxies,const NetLogWithSource & net_log)36 bool WindowsSystemProxyResolutionService::MarkProxiesAsBadUntil(
37     const ProxyInfo& results,
38     base::TimeDelta retry_delay,
39     const std::vector<ProxyServer>& additional_bad_proxies,
40     const NetLogWithSource& net_log) {
41   return false;
42 }
43 
ClearBadProxiesCache()44 void WindowsSystemProxyResolutionService::ClearBadProxiesCache() {}
45 
proxy_retry_info() const46 const ProxyRetryInfoMap& WindowsSystemProxyResolutionService::proxy_retry_info()
47     const {
48   return proxy_retry_info_;
49 }
50 
51 std::unique_ptr<base::DictionaryValue>
GetProxyNetLogValues(int info_sources)52 WindowsSystemProxyResolutionService::GetProxyNetLogValues(int info_sources) {
53   std::unique_ptr<base::DictionaryValue> net_info_dict(
54       new base::DictionaryValue());
55   return net_info_dict;
56 }
57 
58 bool WindowsSystemProxyResolutionService::
CastToConfiguredProxyResolutionService(ConfiguredProxyResolutionService ** configured_proxy_resolution_service)59     CastToConfiguredProxyResolutionService(
60         ConfiguredProxyResolutionService**
61             configured_proxy_resolution_service) {
62   *configured_proxy_resolution_service = nullptr;
63   return false;
64 }
65 
66 }  // namespace net
67