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

Unified Diff: mojo/services/public/interfaces/network/url_loader.mojom

Issue 728043002: Revert of Update mojo sdk to rev afb4440fd5a10cba980878c326180b7ad7960480 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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: mojo/services/public/interfaces/network/url_loader.mojom
diff --git a/mojo/services/public/interfaces/network/url_loader.mojom b/mojo/services/public/interfaces/network/url_loader.mojom
index c1d2bd3b1249b55cf79d1aa26bc04548426c386e..b258fc4c4cba71757126dbceb78894f9638cdab0 100644
--- a/mojo/services/public/interfaces/network/url_loader.mojom
+++ b/mojo/services/public/interfaces/network/url_loader.mojom
@@ -8,17 +8,17 @@
struct URLRequest {
// The URL to load.
- string url;
+ string? url;
// The HTTP method if applicable.
- string method = "GET";
+ string? method = "GET";
// Additional HTTP request headers.
- array<string>? headers;
+ array<string?>? headers;
// The payload for the request body, represented as a concatenation of data
// streams. For HTTP requests, the method must be set to "POST" or "PUT".
- array<handle<data_pipe_consumer>>? body;
+ array<handle<data_pipe_consumer>?>? body;
// The number of bytes to be read from |body|. A Content-Length header of
// this value will be sent. Set to -1 if length is unknown, which will cause
@@ -59,7 +59,7 @@
string? status_line;
// The HTTP response headers.
- array<string>? headers;
+ array<string?>? headers;
// The MIME type of the response body.
string? mime_type;
@@ -92,13 +92,13 @@
// Loads the given |request|, asynchronously producing |response|. Consult
// |response| to determine if the request resulted in an error, was
// redirected, or has a response body to be consumed.
- Start(URLRequest request) => (URLResponse response);
+ Start(URLRequest? request) => (URLResponse? response);
// If the request passed to |Start| had |auto_follow_redirects| set to false,
// then upon receiving an URLResponse with a non-NULL |redirect_url| field,
// |FollowRedirect| may be called to load the URL indicated by the redirect.
- FollowRedirect() => (URLResponse response);
+ FollowRedirect() => (URLResponse? response);
// Query status about the URLLoader.
- QueryStatus() => (URLLoaderStatus status);
+ QueryStatus() => (URLLoaderStatus? status);
};

Powered by Google App Engine
This is Rietveld 408576698