| 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_SCRIPT_FETCHER_H_ | 5 #ifndef NET_PROXY_DHCP_SCRIPT_FETCHER_H_ |
| 6 #define NET_PROXY_DHCP_SCRIPT_FETCHER_H_ | 6 #define NET_PROXY_DHCP_SCRIPT_FETCHER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "googleurl/src/gurl.h" | |
| 12 #include "net/base/completion_callback.h" | 11 #include "net/base/completion_callback.h" |
| 13 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 14 #include "net/proxy/proxy_script_fetcher.h" | 13 #include "net/proxy/proxy_script_fetcher.h" |
| 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 // Interface for classes that can fetch a proxy script as configured via DHCP. | 18 // Interface for classes that can fetch a proxy script as configured via DHCP. |
| 19 // | 19 // |
| 20 // The Fetch method on this interface tries to retrieve the most appropriate | 20 // The Fetch method on this interface tries to retrieve the most appropriate |
| 21 // PAC script configured via DHCP. | 21 // PAC script configured via DHCP. |
| 22 // | 22 // |
| 23 // Normally there are zero or one DHCP scripts configured, but in the | 23 // Normally there are zero or one DHCP scripts configured, but in the |
| 24 // presence of multiple adapters with DHCP enabled, the fetcher resolves | 24 // presence of multiple adapters with DHCP enabled, the fetcher resolves |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual void Cancel() OVERRIDE; | 90 virtual void Cancel() OVERRIDE; |
| 91 virtual const GURL& GetPacURL() const OVERRIDE; | 91 virtual const GURL& GetPacURL() const OVERRIDE; |
| 92 private: | 92 private: |
| 93 GURL gurl_; | 93 GURL gurl_; |
| 94 DISALLOW_COPY_AND_ASSIGN(DoNothingDhcpProxyScriptFetcher); | 94 DISALLOW_COPY_AND_ASSIGN(DoNothingDhcpProxyScriptFetcher); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace net | 97 } // namespace net |
| 98 | 98 |
| 99 #endif // NET_PROXY_DHCP_SCRIPT_FETCHER_H_ | 99 #endif // NET_PROXY_DHCP_SCRIPT_FETCHER_H_ |
| OLD | NEW |