OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INIT_PROXY_RESOLVER_H_ | 5 #ifndef NET_PROXY_INIT_PROXY_RESOLVER_H_ |
6 #define NET_PROXY_INIT_PROXY_RESOLVER_H_ | 6 #define NET_PROXY_INIT_PROXY_RESOLVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "base/timer.h" | 14 #include "base/timer.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 class DhcpProxyScriptFetcher; | 22 class DhcpProxyScriptFetcher; |
23 class NetLogParameter; | 23 class NetLogParameter; |
24 class ProxyConfig; | 24 class ProxyConfig; |
25 class ProxyResolver; | 25 class ProxyResolver; |
26 class ProxyScriptFetcher; | 26 class ProxyScriptFetcher; |
27 class URLRequestContext; | |
28 | 27 |
29 // InitProxyResolver is a helper class used by ProxyService to | 28 // InitProxyResolver is a helper class used by ProxyService to |
30 // initialize a ProxyResolver with the PAC script data specified | 29 // initialize a ProxyResolver with the PAC script data specified |
31 // by a particular ProxyConfig. | 30 // by a particular ProxyConfig. |
32 // | 31 // |
33 // This involves trying to use PAC scripts in this order: | 32 // This involves trying to use PAC scripts in this order: |
34 // | 33 // |
35 // (1) WPAD (DNS) if auto-detect is on. | 34 // (1) WPAD (DNS) if auto-detect is on. |
36 // (2) Custom PAC script if a URL was given. | 35 // (2) Custom PAC script if a URL was given. |
37 // | 36 // |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 base::OneShotTimer<InitProxyResolver> wait_timer_; | 157 base::OneShotTimer<InitProxyResolver> wait_timer_; |
159 | 158 |
160 ProxyConfig* effective_config_; | 159 ProxyConfig* effective_config_; |
161 | 160 |
162 DISALLOW_COPY_AND_ASSIGN(InitProxyResolver); | 161 DISALLOW_COPY_AND_ASSIGN(InitProxyResolver); |
163 }; | 162 }; |
164 | 163 |
165 } // namespace net | 164 } // namespace net |
166 | 165 |
167 #endif // NET_PROXY_INIT_PROXY_RESOLVER_H_ | 166 #endif // NET_PROXY_INIT_PROXY_RESOLVER_H_ |
OLD | NEW |