Index: net/proxy/proxy_resolver.mojom |
diff --git a/net/proxy/proxy_resolver.mojom b/net/proxy/proxy_resolver.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..179855edf36c1d49ead192e9f91e7297f9ce6d5f |
--- /dev/null |
+++ b/net/proxy/proxy_resolver.mojom |
@@ -0,0 +1,33 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module net.proxy; |
+ |
+import "../dns/host_resolver.mojom"; |
+ |
+interface Resolver { |
+ SetPacScript(string data, SetPacScriptClient client); |
+ |
+ GetProxyForUrl(string url, ResolveRequestClient client); |
+}; |
+ |
+interface ResolveRequestClient { |
+ ReportResult(string pac_string); |
+ ReportError(int32 error); |
+ UpdateLoadState(int32 load_state); |
+ // AppendLog(???); |
+}; |
+ |
+interface SetPacScriptClient { |
+ ReportResult(int32 error); |
+}; |
+ |
+interface ErrorObserver { |
+ OnPacScriptError(int32 line_number, string error); |
+}; |
+ |
+interface ResolverFactory { |
+ CreateResolver(Resolver& resolver, net.dns.Resolver host_resolver, |
+ ErrorObserver error_observer); |
+}; |