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

Unified Diff: net/interfaces/proxy_resolver_service.mojom

Issue 2083463002: Replace //net TypeConverters with StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-converter-cleanup--gurl
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: net/interfaces/proxy_resolver_service.mojom
diff --git a/net/interfaces/proxy_resolver_service.mojom b/net/interfaces/proxy_resolver_service.mojom
index 2ae84e14e8fa140a758e1b45c68aa51fb209f7e8..ff343de9a2dc2262c59e9882b6e980e99146292b 100644
--- a/net/interfaces/proxy_resolver_service.mojom
+++ b/net/interfaces/proxy_resolver_service.mojom
@@ -26,10 +26,14 @@ struct ProxyServer {
ProxyScheme scheme;
// |host| and |port| are only valid if |scheme| is not INVALID or DIRECT.
- string? host;
+ string host;
uint16 port;
};
+struct ProxyInfo {
+ array<ProxyServer> proxy_servers;
+};
+
interface ProxyResolver {
// Use a ProxyResolverRequestClient instead of returning a result so we can
// cancel in-flight requests by destroying the client.
@@ -37,7 +41,7 @@ interface ProxyResolver {
};
interface ProxyResolverRequestClient {
- ReportResult(int32 error, array<ProxyServer>? proxy_servers);
+ ReportResult(int32 error, ProxyInfo proxy_info);
Alert(string error);
OnError(int32 line_number, string error);

Powered by Google App Engine
This is Rietveld 408576698