| OLD | NEW |
| 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 Loading... |
| 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 }; |
| OLD | NEW |