OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module net.proxy; |
| 6 |
| 7 import "../dns/host_resolver.mojom"; |
| 8 |
| 9 interface Resolver { |
| 10 SetPacScript(string data, SetPacScriptClient client); |
| 11 |
| 12 GetProxyForUrl(string url, ResolveRequestClient client); |
| 13 }; |
| 14 |
| 15 interface ResolveRequestClient { |
| 16 ReportResult(string pac_string); |
| 17 ReportError(int32 error); |
| 18 UpdateLoadState(int32 load_state); |
| 19 // AppendLog(???); |
| 20 }; |
| 21 |
| 22 interface SetPacScriptClient { |
| 23 ReportResult(int32 error); |
| 24 }; |
| 25 |
| 26 interface ErrorObserver { |
| 27 OnPacScriptError(int32 line_number, string error); |
| 28 }; |
| 29 |
| 30 interface ResolverFactory { |
| 31 CreateResolver(Resolver& resolver, net.dns.Resolver host_resolver, |
| 32 ErrorObserver error_observer); |
| 33 }; |
OLD | NEW |