1 // Copyright 2015 The Chromium Authors 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 7 #ifndef NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_ 8 #define NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_ 9 10 #include "net/base/address_list.h" 11 #include "net/dns/host_resolver.h" 12 #include "url/scheme_host_port.h" 13 14 namespace net { 15 16 class SynchronousHostResolver { 17 public: 18 static int Resolve(url::SchemeHostPort scheme_host_port, 19 AddressList* addresses); 20 }; 21 22 } // namespace net 23 24 #endif // NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_ 25