diff options
Diffstat (limited to 'net/base/fixed_host_resolver.h')
-rw-r--r-- | net/base/fixed_host_resolver.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/net/base/fixed_host_resolver.h b/net/base/fixed_host_resolver.h deleted file mode 100644 index ee7b114..0000000 --- a/net/base/fixed_host_resolver.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef NET_BASE_FIXED_HOST_RESOLVER_H_ -#define NET_BASE_FIXED_HOST_RESOLVER_H_ - -#include <string> - -#include "net/base/address_list.h" -#include "net/base/host_resolver.h" - -namespace net { - -// A FixedHostResolver resolves all addresses to a single address. -class FixedHostResolver : public HostResolver { - public: - // |host| is a string representing the resolution. - // example: foo.myproxy.com - explicit FixedHostResolver(const std::string& host); - - // HostResolver methods: - virtual int Resolve(const RequestInfo& info, - AddressList* addresses, - CompletionCallback* callback, - RequestHandle* out_req, - LoadLog* load_log); - virtual void CancelRequest(RequestHandle req) {} - virtual void AddObserver(Observer* observer) {} - virtual void RemoveObserver(Observer* observer) {} - - private: - ~FixedHostResolver() {} - - AddressList address_; - bool initialized_; -}; - -} // namespace net - -#endif // NET_BASE_MOCK_HOST_RESOLVER_H_ |