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

Unified Diff: mojo/services/network/public/interfaces/network_service.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/network_service.mojom
diff --git a/mojo/services/network/public/interfaces/network_service.mojom b/mojo/services/network/public/interfaces/network_service.mojom
index f8ab7e2779f3b5e4abff5d4bf065973b13a78be5..3d3b811d962a1f00ca82731734abd11c4f8a1ebd 100644
--- a/mojo/services/network/public/interfaces/network_service.mojom
+++ b/mojo/services/network/public/interfaces/network_service.mojom
@@ -6,6 +6,7 @@ module mojo;
import "mojo/public/interfaces/network/network_error.mojom";
import "network/public/interfaces/cookie_store.mojom";
+import "network/public/interfaces/host_resolver.mojom";
import "network/public/interfaces/http_server.mojom";
import "network/public/interfaces/net_address.mojom";
import "network/public/interfaces/tcp_bound_socket.mojom";
@@ -75,7 +76,11 @@ interface NetworkService {
NetAddress? bound_to);
// Register a new url loader interceptor that will be used on any new
- // URLLoader. Interceptor are chained. The last registed interceptor will
- // received the requests first and the responses last.
+ // URLLoader created with the current connection to the network service.
+ // Interceptors are chained. The last registered interceptor will received the
+ // requests first and the responses last.
RegisterURLLoaderInterceptor(URLLoaderInterceptorFactory factory);
+
+ // Create a HostResolver that can be used to do ip <-> host lookups.
+ CreateHostResolver(HostResolver& host_resolver);
};

Powered by Google App Engine
This is Rietveld 408576698