diff options
author | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-28 17:51:19 +0000 |
---|---|---|
committer | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-28 17:51:19 +0000 |
commit | 2258c1c968ab008aa0bc75f2cbe56b2249194aff (patch) | |
tree | 72f799611e613f40c5e26bf8adb7622356edcbf9 /chrome/common/net/raw_host_resolver_proc.cc | |
parent | d7b99393eb462ee93633028cfda04d33e8c37904 (diff) | |
download | chromium_src-2258c1c968ab008aa0bc75f2cbe56b2249194aff.zip chromium_src-2258c1c968ab008aa0bc75f2cbe56b2249194aff.tar.gz chromium_src-2258c1c968ab008aa0bc75f2cbe56b2249194aff.tar.bz2 |
Initial support for built-in DNS resolver/cache.
BUG=60149
TEST=None
Review URL: http://codereview.chromium.org/4216001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net/raw_host_resolver_proc.cc')
-rw-r--r-- | chrome/common/net/raw_host_resolver_proc.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/common/net/raw_host_resolver_proc.cc b/chrome/common/net/raw_host_resolver_proc.cc new file mode 100644 index 0000000..474afa2 --- /dev/null +++ b/chrome/common/net/raw_host_resolver_proc.cc @@ -0,0 +1,28 @@ +// Copyright (c) 2010 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. + +#include "chrome/common/net/raw_host_resolver_proc.h" + +#include "base/logging.h" +#include "net/base/net_errors.h" + +namespace chrome_common_net { + +RawHostResolverProc::RawHostResolverProc(const net::IPAddressNumber& dns_server, + net::HostResolverProc* previous) + : HostResolverProc(previous), dns_server_(dns_server) {} + +int RawHostResolverProc::Resolve(const std::string& host, + net::AddressFamily address_family, + net::HostResolverFlags host_resolver_flags, + net::AddressList* addrlist, + int* os_error) { + // TODO(agayev): Implement raw DNS resolution. + LOG(INFO) << "trying to resolve " << host; + return net::ERR_NAME_NOT_RESOLVED; +} + +RawHostResolverProc::~RawHostResolverProc() {} + +} // namespace chrome_common_net |