summaryrefslogtreecommitdiffstats
path: root/chrome/common/net/raw_host_resolver_proc.cc
blob: 474afa210bac68ae404a2a954b55f4edb7f4a478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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