summaryrefslogtreecommitdiffstats
path: root/net/base/fixed_host_resolver.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-18 08:03:38 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-18 08:03:38 +0000
commit9087aa3c473281af9c216d060d00baa4e1af4216 (patch)
tree11020a066a239d0042247611052c43f7fd0859ef /net/base/fixed_host_resolver.h
parent3517fd50b20611670f08aedfff25451f6fe9e313 (diff)
downloadchromium_src-9087aa3c473281af9c216d060d00baa4e1af4216.zip
chromium_src-9087aa3c473281af9c216d060d00baa4e1af4216.tar.gz
chromium_src-9087aa3c473281af9c216d060d00baa4e1af4216.tar.bz2
Add a command-line flag to remap hostnames based on patterns.
This is a generalization of the --testing-fixed-server flag. BUG=36053 TEST=MappedHostResolverTest.* Review URL: http://codereview.chromium.org/647001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/fixed_host_resolver.h')
-rw-r--r--net/base/fixed_host_resolver.h41
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_