Chromium Code Reviews| Index: net/tools/quic/synchronous_host_resolver.h |
| diff --git a/net/tools/quic/synchronous_host_resolver.h b/net/tools/quic/synchronous_host_resolver.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4601d6f8f1a1325dde4eb92047454929550f643d |
| --- /dev/null |
| +++ b/net/tools/quic/synchronous_host_resolver.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2012 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. |
| +// |
| +// A toy client, which connects to a specified port and sends QUIC |
|
ramant (doing other things)
2015/03/20 17:46:56
nit: Consider either updating/deleting the comment
Ryan Hamilton
2015/03/20 21:38:48
Good point! Done.
|
| +// request to that endpoint. |
| + |
| +#ifndef NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_ |
| +#define NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_ |
| + |
| +#include "net/base/address_list.h" |
| +#include "net/base/net_export.h" |
| +#include "net/dns/host_resolver.h" |
| + |
| +namespace net { |
| + |
| +namespace tools { |
| + |
| +class NET_EXPORT_PRIVATE SynchronousHostResolver { |
| + public: |
| + static int Resolve(const std::string& host, AddressList* addresses); |
| +}; |
| + |
| +} // namespace tools |
| +} // namespace net |
| + |
| +#endif // NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_ |