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

Unified Diff: mojo/public/interfaces/network/url_request.mojom

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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: mojo/public/interfaces/network/url_request.mojom
diff --git a/mojo/public/interfaces/network/url_request.mojom b/mojo/public/interfaces/network/url_request.mojom
deleted file mode 100644
index 55bfb48f7334ab55ca8c2fd08e4320a4a165abe2..0000000000000000000000000000000000000000
--- a/mojo/public/interfaces/network/url_request.mojom
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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.
-
-[DartPackage="mojo"]
-module mojo;
-
-import "mojo/public/interfaces/network/http_header.mojom";
-
-struct URLRequest {
- // Specify the cache behavior of the request.
- enum CacheMode {
- // Default behavior.
- DEFAULT,
-
- // The HTTP request will bypass the local cache and will have a
- // 'Cache-Control: nocache' header added in that causes any proxy servers
- // to also not satisfy the request from their cache. This has the effect
- // of forcing a full end-to-end fetch.
- BYPASS_CACHE,
-
- // The HTTP request will fail if it cannot serve the requested resource
- // from the cache (or some equivalent local store).
- ONLY_FROM_CACHE,
- };
-
- // The URL to load.
- string url;
-
- // The HTTP method if applicable.
- string method = "GET";
-
- // Additional HTTP request headers.
- array<HttpHeader>? 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;
-
- // The buffer size of the data pipe returned in URLResponse's |body| member.
- // A value of 0 indicates that the default buffer size should be used. This
- // value is just a suggestion. The URLLoader may choose to ignore this value.
- uint32 response_body_buffer_size = 0;
-
- // If set to true, then redirects will be automatically followed. Otherwise,
- // when a redirect is encounterd, FollowRedirect must be called to proceed.
- bool auto_follow_redirects = false;
-
- // The cache behavior for the request.
- CacheMode cache_mode = DEFAULT;
-};
« no previous file with comments | « mojo/public/interfaces/network/network_error.mojom ('k') | mojo/public/interfaces/network/url_response.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698