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

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

Issue 939503004: Add LoadState reporting to the mojo proxy resolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proxy-resolver-mojo
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/proxy/mojo_proxy_resolver_factory_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Put Mojo definitions into their own namespace to avoid collisions with C++ 5 // Put Mojo definitions into their own namespace to avoid collisions with C++
6 // definitions. 6 // definitions.
7 // TODO(amistry): Resolve the conflict between these two sets of definitions. 7 // TODO(amistry): Resolve the conflict between these two sets of definitions.
8 module net.interfaces; 8 module net.interfaces;
9 9
10 import "host_resolver_service.mojom"; 10 import "host_resolver_service.mojom";
(...skipping 23 matching lines...) Expand all
34 34
35 // Use a ProxyResolverRequestClient instead of returning a result so we can 35 // Use a ProxyResolverRequestClient instead of returning a result so we can
36 // receive load state updates and cancel in-flight requests by destroying the 36 // receive load state updates and cancel in-flight requests by destroying the
37 // client. 37 // client.
38 // TODO(amistry): Add BoundNetLog. 38 // TODO(amistry): Add BoundNetLog.
39 GetProxyForUrl(string url, ProxyResolverRequestClient client); 39 GetProxyForUrl(string url, ProxyResolverRequestClient client);
40 }; 40 };
41 41
42 interface ProxyResolverRequestClient { 42 interface ProxyResolverRequestClient {
43 ReportResult(int32 error, array<ProxyServer>? proxy_servers); 43 ReportResult(int32 error, array<ProxyServer>? proxy_servers);
44 LoadStateChanged(int32 load_state);
44 }; 45 };
45 46
46 interface ProxyResolverFactory { 47 interface ProxyResolverFactory {
47 // TODO(amistry): Add NetLog and ProxyResolverErrorObserver. 48 // TODO(amistry): Add NetLog and ProxyResolverErrorObserver.
48 CreateResolver(ProxyResolver& resolver, 49 CreateResolver(ProxyResolver& resolver,
49 HostResolver host_resolver); 50 HostResolver host_resolver);
50 }; 51 };
OLDNEW
« no previous file with comments | « no previous file | net/proxy/mojo_proxy_resolver_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698