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

Side by Side Diff: net/interfaces/host_resolver_service.mojom

Issue 892393005: Implement browser-side host resolver Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-interfaces
Patch Set: Change VLOG and remove unnecessary WeakPtr. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // WARNING! Do NOT use this mojom. It is intended as a temporary interface to 5 // WARNING! Do NOT use this mojom. It is intended as a temporary interface to
6 // implement out-of-process proxy resolution. If you wish to use a Mojo DNS 6 // implement out-of-process proxy resolution. If you wish to use a Mojo DNS
7 // service, contact amistry@/sammc@ and net-dev to discuss a permanent Mojo DNS 7 // service, contact amistry@/sammc@ and net-dev to discuss a permanent Mojo DNS
8 // interface. 8 // interface.
9 9
10 // Put Mojo definitions into their own namespace to avoid collisions with C++ 10 // Put Mojo definitions into their own namespace to avoid collisions with C++
(...skipping 22 matching lines...) Expand all
33 // Will be of length 4 for IPv4 addresses and 16 for IPv6. 33 // Will be of length 4 for IPv4 addresses and 16 for IPv6.
34 array<uint8> address; 34 array<uint8> address;
35 uint16 port; 35 uint16 port;
36 }; 36 };
37 37
38 // Mirror of net::AddressList. 38 // Mirror of net::AddressList.
39 struct AddressList { 39 struct AddressList {
40 array<IPEndPoint> addresses; 40 array<IPEndPoint> addresses;
41 }; 41 };
42 42
43 interface HostResolverService { 43 interface HostResolver {
44 // Use a HostResolverRequestClient instead of returning a result so we can 44 // Use a HostResolverRequestClient instead of returning a result so we can
45 // cancel in-flight requests by destroying the client. IPC requests in Mojo 45 // cancel in-flight requests by destroying the client. IPC requests in Mojo
46 // cannot be cancelled directly. 46 // cannot be cancelled directly.
47 // TODO(amistry): Add BoundNetLog. 47 // TODO(amistry): Add BoundNetLog.
48 Resolve(HostResolverRequestInfo request_info, 48 Resolve(HostResolverRequestInfo request_info,
49 HostResolverRequestClient client); 49 HostResolverRequestClient client);
50 }; 50 };
51 51
52 interface HostResolverRequestClient { 52 interface HostResolverRequestClient {
53 // |error| is a value in net::Error. 53 // |error| is a value in net::Error.
54 ReportResult(int32 error, AddressList? result); 54 ReportResult(int32 error, AddressList? result);
eroman 2015/02/12 02:30:18 Thinking out loud here... There is an expectatio
Anand Mistry (off Chromium) 2015/02/12 04:47:15 I think we have a couple of different options here
55 }; 55 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698