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

Side by Side Diff: mojo/services/public/interfaces/network/url_loader.mojom

Issue 323593002: Mojo: Use network service to load non-local Mojo Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/services/network/url_loader_impl.cc ('k') | mojo/shell/app_child_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import "network_error.mojom" 5 import "network_error.mojom"
6 6
7 module mojo { 7 module mojo {
8 8
9 struct URLRequest { 9 struct URLRequest {
10 string url; 10 string url;
11 string method; 11 string method = "GET";
12 string[] headers; 12 string[] headers;
13 handle<data_pipe_consumer> body; 13 handle<data_pipe_consumer> body;
14 int64 body_length; // Set to -1 if length is unknown. 14 int64 body_length = 0; // Set to -1 if length is unknown.
15 bool follow_redirects; 15 bool follow_redirects = false;
16 bool bypass_cache = false;
16 }; 17 };
17 18
18 struct URLResponse { 19 struct URLResponse {
19 string url; 20 string url;
20 string[] redirects; // The sequence of redirected URLs. 21 string[] redirects; // The sequence of redirected URLs.
21 uint32 status_code; 22 uint32 status_code;
22 string status_line; 23 string status_line;
23 string[] headers; 24 string[] headers;
24 }; 25 };
25 26
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 59
59 // This method is called when the response body has been successfully 60 // This method is called when the response body has been successfully
60 // downloaded and copied in its entirety to |response_body_stream|. 61 // downloaded and copied in its entirety to |response_body_stream|.
61 // 62 //
62 // NOTE: Because |response_body_stream| is limited in size, this event may be 63 // NOTE: Because |response_body_stream| is limited in size, this event may be
63 // delayed until |response_body_stream| is consumed. 64 // delayed until |response_body_stream| is consumed.
64 OnReceivedEndOfResponseBody(); 65 OnReceivedEndOfResponseBody();
65 }; 66 };
66 67
67 } 68 }
OLDNEW
« no previous file with comments | « mojo/services/network/url_loader_impl.cc ('k') | mojo/shell/app_child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698