| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_PROXY_PROXY_SERVICE_H_ | 5 #ifndef NET_PROXY_PROXY_SERVICE_H_ |
| 6 #define NET_PROXY_PROXY_SERVICE_H_ | 6 #define NET_PROXY_PROXY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "net/base/net_export.h" | 22 #include "net/base/net_export.h" |
| 23 #include "net/base/network_change_notifier.h" | 23 #include "net/base/network_change_notifier.h" |
| 24 #include "net/proxy/proxy_config_service.h" | 24 #include "net/proxy/proxy_config_service.h" |
| 25 #include "net/proxy/proxy_info.h" | 25 #include "net/proxy/proxy_info.h" |
| 26 #include "net/proxy/proxy_server.h" | 26 #include "net/proxy/proxy_server.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 class GURL; | 29 class GURL; |
| 30 | 30 |
| 31 namespace base { | 31 namespace base { |
| 32 class SingleThreadTaskRunner; | 32 class SequencedTaskRunner; |
| 33 class TimeDelta; | 33 class TimeDelta; |
| 34 } // namespace base | 34 } // namespace base |
| 35 | 35 |
| 36 namespace net { | 36 namespace net { |
| 37 | 37 |
| 38 class DhcpProxyScriptFetcher; | 38 class DhcpProxyScriptFetcher; |
| 39 class NetLog; | 39 class NetLog; |
| 40 class NetLogWithSource; | 40 class NetLogWithSource; |
| 41 class ProxyDelegate; | 41 class ProxyDelegate; |
| 42 class ProxyResolver; | 42 class ProxyResolver; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // hardcoded proxy fallback list (|pac_string|) for every URL. | 285 // hardcoded proxy fallback list (|pac_string|) for every URL. |
| 286 // | 286 // |
| 287 // |pac_string| is a list of proxy servers, in the format that a PAC script | 287 // |pac_string| is a list of proxy servers, in the format that a PAC script |
| 288 // would return it. For example, "PROXY foobar:99; SOCKS fml:2; DIRECT" | 288 // would return it. For example, "PROXY foobar:99; SOCKS fml:2; DIRECT" |
| 289 static std::unique_ptr<ProxyService> CreateFixedFromPacResult( | 289 static std::unique_ptr<ProxyService> CreateFixedFromPacResult( |
| 290 const std::string& pac_string); | 290 const std::string& pac_string); |
| 291 | 291 |
| 292 // Creates a config service appropriate for this platform that fetches the | 292 // Creates a config service appropriate for this platform that fetches the |
| 293 // system proxy settings. | 293 // system proxy settings. |
| 294 static std::unique_ptr<ProxyConfigService> CreateSystemProxyConfigService( | 294 static std::unique_ptr<ProxyConfigService> CreateSystemProxyConfigService( |
| 295 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); | 295 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); |
| 296 | 296 |
| 297 // This method should only be used by unit tests. | 297 // This method should only be used by unit tests. |
| 298 void set_stall_proxy_auto_config_delay(base::TimeDelta delay) { | 298 void set_stall_proxy_auto_config_delay(base::TimeDelta delay) { |
| 299 stall_proxy_auto_config_delay_ = delay; | 299 stall_proxy_auto_config_delay_ = delay; |
| 300 } | 300 } |
| 301 | 301 |
| 302 // This method should only be used by unit tests. Returns the previously | 302 // This method should only be used by unit tests. Returns the previously |
| 303 // active policy. | 303 // active policy. |
| 304 static const PacPollPolicy* set_pac_script_poll_policy( | 304 static const PacPollPolicy* set_pac_script_poll_policy( |
| 305 const PacPollPolicy* policy); | 305 const PacPollPolicy* policy); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 SanitizeUrlPolicy sanitize_url_policy_; | 481 SanitizeUrlPolicy sanitize_url_policy_; |
| 482 | 482 |
| 483 THREAD_CHECKER(thread_checker_); | 483 THREAD_CHECKER(thread_checker_); |
| 484 | 484 |
| 485 DISALLOW_COPY_AND_ASSIGN(ProxyService); | 485 DISALLOW_COPY_AND_ASSIGN(ProxyService); |
| 486 }; | 486 }; |
| 487 | 487 |
| 488 } // namespace net | 488 } // namespace net |
| 489 | 489 |
| 490 #endif // NET_PROXY_PROXY_SERVICE_H_ | 490 #endif // NET_PROXY_PROXY_SERVICE_H_ |
| OLD | NEW |