synchronous_host_resolver.h 682 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. //
  5. // A simple class for resolving hostname synchronously.
  6. #ifndef NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_
  7. #define NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_
  8. #include "net/base/address_list.h"
  9. #include "net/dns/host_resolver.h"
  10. #include "url/scheme_host_port.h"
  11. namespace net {
  12. class SynchronousHostResolver {
  13. public:
  14. static int Resolve(url::SchemeHostPort scheme_host_port,
  15. AddressList* addresses);
  16. };
  17. } // namespace net
  18. #endif // NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_