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

Unified Diff: mojo/services/network/public/interfaces/host_resolver.mojom

Issue 1187313002: Add host_resolver.mojom and update network_service.mojom (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
Index: mojo/services/network/public/interfaces/host_resolver.mojom
diff --git a/mojo/services/network/public/interfaces/host_resolver.mojom b/mojo/services/network/public/interfaces/host_resolver.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..14c2f14683d828d2475685ed4413beb858097d0b
--- /dev/null
+++ b/mojo/services/network/public/interfaces/host_resolver.mojom
@@ -0,0 +1,14 @@
+// Copyright 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.
+
+module mojo;
+
+import "mojo/public/interfaces/network/network_error.mojom";
+import "network/public/interfaces/net_address.mojom";
+
+interface HostResolver {
+ // Get the list of IP addresses for host.
+ GetHostAddresses(string host, NetAddressFamily family) =>
+ (NetworkError result, array<NetAddress>? addresses);
+};
« no previous file with comments | « mojo/services/network/public/interfaces/BUILD.gn ('k') | mojo/services/network/public/interfaces/network_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698