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

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

Issue 1391963004: Correctly record and pass around navigation start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « components/web_view/web_view_impl.cc ('k') | no next file » | 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 module mojo; 5 module mojo;
6 6
7 import "network/public/interfaces/http_message.mojom"; 7 import "network/public/interfaces/http_message.mojom";
8 import "network/public/interfaces/network_error.mojom"; 8 import "network/public/interfaces/network_error.mojom";
9 9
10 struct URLRequest { 10 struct URLRequest {
(...skipping 17 matching lines...) Expand all
28 28
29 // If set to true, then redirects will be automatically followed. Otherwise, 29 // If set to true, then redirects will be automatically followed. Otherwise,
30 // when a redirect is encounterd, FollowRedirect must be called to proceed. 30 // when a redirect is encounterd, FollowRedirect must be called to proceed.
31 bool auto_follow_redirects = false; 31 bool auto_follow_redirects = false;
32 32
33 // If set to true, then the HTTP request will bypass the local cache and will 33 // If set to true, then the HTTP request will bypass the local cache and will
34 // have a 'Cache-Control: nocache' header added in that causes any proxy 34 // have a 'Cache-Control: nocache' header added in that causes any proxy
35 // servers to also not satisfy the request from their cache. This has the 35 // servers to also not satisfy the request from their cache. This has the
36 // effect of forcing a full end-to-end fetch. 36 // effect of forcing a full end-to-end fetch.
37 bool bypass_cache = false; 37 bool bypass_cache = false;
38
39 // The time when this request originated. 0 indicates that it is not recorded.
40 int64 originating_time_ticks = 0;
38 }; 41 };
39 42
40 struct URLResponse { 43 struct URLResponse {
41 // If the response resulted in a network level error, this field will be set. 44 // If the response resulted in a network level error, this field will be set.
42 NetworkError? error; 45 NetworkError? error;
43 46
44 // The response body stream. Read from this data pipe to receive the bytes of 47 // The response body stream. Read from this data pipe to receive the bytes of
45 // response body. 48 // response body.
46 handle<data_pipe_consumer>? body; 49 handle<data_pipe_consumer>? body;
47 50
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Start(URLRequest request) => (URLResponse response); 98 Start(URLRequest request) => (URLResponse response);
96 99
97 // If the request passed to |Start| had |auto_follow_redirects| set to false, 100 // If the request passed to |Start| had |auto_follow_redirects| set to false,
98 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, 101 // then upon receiving an URLResponse with a non-NULL |redirect_url| field,
99 // |FollowRedirect| may be called to load the URL indicated by the redirect. 102 // |FollowRedirect| may be called to load the URL indicated by the redirect.
100 FollowRedirect() => (URLResponse response); 103 FollowRedirect() => (URLResponse response);
101 104
102 // Query status about the URLLoader. 105 // Query status about the URLLoader.
103 QueryStatus() => (URLLoaderStatus status); 106 QueryStatus() => (URLLoaderStatus status);
104 }; 107 };
OLDNEW
« no previous file with comments | « components/web_view/web_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698