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_SCRIPT_DECIDER_H_ | 5 #ifndef NET_PROXY_PROXY_SCRIPT_DECIDER_H_ |
6 #define NET_PROXY_PROXY_SCRIPT_DECIDER_H_ | 6 #define NET_PROXY_PROXY_SCRIPT_DECIDER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
18 #include "net/base/address_list.h" | 18 #include "net/base/address_list.h" |
19 #include "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
20 #include "net/base/net_export.h" | 20 #include "net/base/net_export.h" |
21 #include "net/dns/host_resolver.h" | 21 #include "net/dns/host_resolver.h" |
22 #include "net/log/net_log.h" | 22 #include "net/log/net_log_with_source.h" |
23 #include "net/proxy/proxy_config.h" | 23 #include "net/proxy/proxy_config.h" |
24 #include "net/proxy/proxy_resolver.h" | 24 #include "net/proxy/proxy_resolver.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
| 27 namespace base { |
| 28 class Value; |
| 29 } |
| 30 |
27 namespace net { | 31 namespace net { |
28 | 32 |
29 class DhcpProxyScriptFetcher; | 33 class DhcpProxyScriptFetcher; |
| 34 class NetLog; |
| 35 class NetLogCaptureMode; |
30 class NetLogParameter; | 36 class NetLogParameter; |
31 class ProxyResolver; | 37 class ProxyResolver; |
32 class ProxyScriptFetcher; | 38 class ProxyScriptFetcher; |
33 | 39 |
34 // ProxyScriptDecider is a helper class used by ProxyService to determine which | 40 // ProxyScriptDecider is a helper class used by ProxyService to determine which |
35 // PAC script to use given our proxy configuration. | 41 // PAC script to use given our proxy configuration. |
36 // | 42 // |
37 // This involves trying to use PAC scripts in this order: | 43 // This involves trying to use PAC scripts in this order: |
38 // | 44 // |
39 // (1) WPAD (DHCP) if auto-detect is on. | 45 // (1) WPAD (DHCP) if auto-detect is on. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 HostResolver* host_resolver_; | 207 HostResolver* host_resolver_; |
202 std::unique_ptr<HostResolver::Request> request_; | 208 std::unique_ptr<HostResolver::Request> request_; |
203 base::Time quick_check_start_time_; | 209 base::Time quick_check_start_time_; |
204 | 210 |
205 DISALLOW_COPY_AND_ASSIGN(ProxyScriptDecider); | 211 DISALLOW_COPY_AND_ASSIGN(ProxyScriptDecider); |
206 }; | 212 }; |
207 | 213 |
208 } // namespace net | 214 } // namespace net |
209 | 215 |
210 #endif // NET_PROXY_PROXY_SCRIPT_DECIDER_H_ | 216 #endif // NET_PROXY_PROXY_SCRIPT_DECIDER_H_ |
OLD | NEW |