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" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 // A do-nothing retriever, always returns synchronously with | 80 // A do-nothing retriever, always returns synchronously with |
81 // ERR_NOT_IMPLEMENTED result and empty text. | 81 // ERR_NOT_IMPLEMENTED result and empty text. |
82 class NET_EXPORT_PRIVATE DoNothingDhcpProxyScriptFetcher | 82 class NET_EXPORT_PRIVATE DoNothingDhcpProxyScriptFetcher |
83 : public DhcpProxyScriptFetcher { | 83 : public DhcpProxyScriptFetcher { |
84 public: | 84 public: |
85 DoNothingDhcpProxyScriptFetcher(); | 85 DoNothingDhcpProxyScriptFetcher(); |
86 virtual ~DoNothingDhcpProxyScriptFetcher(); | 86 virtual ~DoNothingDhcpProxyScriptFetcher(); |
87 | 87 |
88 virtual int Fetch(base::string16* utf16_text, | 88 virtual int Fetch(base::string16* utf16_text, |
89 const CompletionCallback& callback) OVERRIDE; | 89 const CompletionCallback& callback) override; |
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 |