Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Unified Diff: net/tools/quic/synchronous_host_resolver.h

Issue 1004173004: Make the simple QUIC client able to resolve hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove EXPORT to fix Win Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/synchronous_host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..258c8e4dedc9f93e8950091e3363b7c235d93bcf
--- /dev/null
+++ b/net/tools/quic/synchronous_host_resolver.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2015 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 simple class for resolving hostname synchronously.
+
+#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 SynchronousHostResolver {
+ public:
+ static int Resolve(const std::string& host, AddressList* addresses);
+};
+
+} // namespace tools
+} // namespace net
+
+#endif // NET_TOOLS_QUIC_SYNCHRONOUS_HOST_RESOLVER_H_
« no previous file with comments | « net/tools/quic/quic_simple_client_bin.cc ('k') | net/tools/quic/synchronous_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698