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_DHCP_SCRIPT_ADAPTER_FETCHER_WIN_H_ | 5 #ifndef NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ |
6 #define NET_PROXY_DHCP_SCRIPT_ADAPTER_FETCHER_WIN_H_ | 6 #define NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
12 #include "base/string16.h" | 14 #include "base/string16.h" |
13 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
14 #include "base/timer.h" | 16 #include "base/timer.h" |
15 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
16 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
17 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
18 | 20 |
19 namespace base { | |
20 class MessageLoopProxy; | |
21 } | |
22 | |
23 namespace net { | 21 namespace net { |
24 | 22 |
25 class ProxyScriptFetcher; | 23 class ProxyScriptFetcher; |
26 class URLRequestContext; | 24 class URLRequestContext; |
27 | 25 |
28 // For a given adapter, this class takes care of first doing a DHCP lookup | 26 // For a given adapter, this class takes care of first doing a DHCP lookup |
29 // to get the PAC URL, then if there is one, trying to fetch it. | 27 // to get the PAC URL, then if there is one, trying to fetch it. |
30 class NET_EXPORT_PRIVATE DhcpProxyScriptAdapterFetcher | 28 class NET_EXPORT_PRIVATE DhcpProxyScriptAdapterFetcher |
31 : public base::SupportsWeakPtr<DhcpProxyScriptAdapterFetcher>, | 29 : public base::SupportsWeakPtr<DhcpProxyScriptAdapterFetcher>, |
32 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 30 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // Implements a timeout on the call to the Win32 DHCP API. | 171 // Implements a timeout on the call to the Win32 DHCP API. |
174 base::OneShotTimer<DhcpProxyScriptAdapterFetcher> wait_timer_; | 172 base::OneShotTimer<DhcpProxyScriptAdapterFetcher> wait_timer_; |
175 | 173 |
176 scoped_refptr<URLRequestContext> url_request_context_; | 174 scoped_refptr<URLRequestContext> url_request_context_; |
177 | 175 |
178 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptAdapterFetcher); | 176 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptAdapterFetcher); |
179 }; | 177 }; |
180 | 178 |
181 } // namespace net | 179 } // namespace net |
182 | 180 |
183 #endif // NET_PROXY_DHCP_SCRIPT_ADAPTER_FETCHER_WIN_H_ | 181 #endif // NET_PROXY_DHCP_PROXY_SCRIPT_ADAPTER_FETCHER_WIN_H_ |
OLD | NEW |