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

Unified Diff: net/interfaces/host_resolver_service.mojom

Issue 892373006: Revert of Add Mojo interfaces for out-of-process proxy resolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/interfaces/BUILD.gn ('k') | net/interfaces/proxy_resolver_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/interfaces/host_resolver_service.mojom
diff --git a/net/interfaces/host_resolver_service.mojom b/net/interfaces/host_resolver_service.mojom
deleted file mode 100644
index c8acc38c1a5e0b2618374b2b18446bf93849a09a..0000000000000000000000000000000000000000
--- a/net/interfaces/host_resolver_service.mojom
+++ /dev/null
@@ -1,55 +0,0 @@
-// 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.
-
-// WARNING! Do NOT use this mojom. It is intended as a temporary interface to
-// implement out-of-process proxy resolution. If you wish to use a Mojo DNS
-// service, contact amistry@/sammc@ and net-dev to discuss a permanent Mojo DNS
-// interface.
-
-// Put Mojo definitions into their own namespace to avoid collisions with C++
-// definitions.
-// TODO(amistry): Resolve the conflict between these two sets of definitions.
-module net.interfaces;
-
-// Mirror of net::AddressFamily.
-enum AddressFamily {
- UNSPECIFIED,
- IPV4,
- IPV6,
-};
-
-// Mirror of net::HostResolver::RequestInfo.
-struct HostResolverRequestInfo {
- string host;
- uint16 port;
- AddressFamily address_family;
- bool is_my_ip_address;
-};
-
-// Mirror of net::IPEndPoint.
-struct IPEndPoint {
- // IP address as a numeric value from most to least significant byte.
- // Will be of length 4 for IPv4 addresses and 16 for IPv6.
- array<uint8> address;
- uint16 port;
-};
-
-// Mirror of net::AddressList.
-struct AddressList {
- array<IPEndPoint> addresses;
-};
-
-interface HostResolverService {
- // Use a HostResolverRequestClient instead of returning a result so we can
- // cancel in-flight requests by destroying the client. IPC requests in Mojo
- // cannot be cancelled directly.
- // TODO(amistry): Add BoundNetLog.
- Resolve(HostResolverRequestInfo request_info,
- HostResolverRequestClient client);
-};
-
-interface HostResolverRequestClient {
- // |error| is a value in net::Error.
- ReportResult(int32 error, AddressList? result);
-};
« no previous file with comments | « net/interfaces/BUILD.gn ('k') | net/interfaces/proxy_resolver_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698