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_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ | 5 #ifndef NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ |
6 #define NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ | 6 #define NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "base/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "googleurl/src/gurl.h" |
16 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
17 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
18 #include "googleurl/src/gurl.h" | |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 class ProxyScriptFetcher; | 22 class ProxyScriptFetcher; |
23 class URLRequestContext; | 23 class URLRequestContext; |
24 | 24 |
25 // For a given adapter, this class takes care of first doing a DHCP lookup | 25 // For a given adapter, this class takes care of first doing a DHCP lookup |
26 // to get the PAC URL, then if there is one, trying to fetch it. | 26 // to get the PAC URL, then if there is one, trying to fetch it. |
27 class NET_EXPORT_PRIVATE DhcpProxyScriptAdapterFetcher | 27 class NET_EXPORT_PRIVATE DhcpProxyScriptAdapterFetcher |
28 : public base::SupportsWeakPtr<DhcpProxyScriptAdapterFetcher>, | 28 : public base::SupportsWeakPtr<DhcpProxyScriptAdapterFetcher>, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 base::OneShotTimer<DhcpProxyScriptAdapterFetcher> wait_timer_; | 167 base::OneShotTimer<DhcpProxyScriptAdapterFetcher> wait_timer_; |
168 | 168 |
169 URLRequestContext* const url_request_context_; | 169 URLRequestContext* const url_request_context_; |
170 | 170 |
171 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptAdapterFetcher); | 171 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptAdapterFetcher); |
172 }; | 172 }; |
173 | 173 |
174 } // namespace net | 174 } // namespace net |
175 | 175 |
176 #endif // NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ | 176 #endif // NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ |
OLD | NEW |