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

Side by Side Diff: content/common/url_loader.mojom

Issue 2633123002: [Mojo-Loading] OnStartLoadingResponseBody should be called after OnReceiveResponse (Closed)
Patch Set: fix Created 3 years, 11 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 | « content/child/url_response_body_consumer_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 content.mojom; 5 module content.mojom;
6 6
7 [Native] 7 [Native]
8 struct URLRequest; 8 struct URLRequest;
9 9
10 [Native] 10 [Native]
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // |report_raw_headers| is set and |download_to_file| is unset in the request. 55 // |report_raw_headers| is set and |download_to_file| is unset in the request.
56 // The transfer size is the length of the response (including both headers 56 // The transfer size is the length of the response (including both headers
57 // and the body) over the network. |transfer_size_diff| is the difference from 57 // and the body) over the network. |transfer_size_diff| is the difference from
58 // the value previously reported one (including the one in OnReceiveResponse 58 // the value previously reported one (including the one in OnReceiveResponse
59 // and OnReceiveRedirect). It must be positive. 59 // and OnReceiveRedirect). It must be positive.
60 // TODO(yhirano): Dispatch this notification even when |download_to_file| is 60 // TODO(yhirano): Dispatch this notification even when |download_to_file| is
61 // set. 61 // set.
62 // TODO(yhirano): Consider using an unsigned type. 62 // TODO(yhirano): Consider using an unsigned type.
63 OnTransferSizeUpdated(int32 transfer_size_diff); 63 OnTransferSizeUpdated(int32 transfer_size_diff);
64 64
65 // Called when the loader starts loading response body. 65 // Called when the loader starts loading response body. This is called after
66 // OnReceiveResponse is called.
66 OnStartLoadingResponseBody(handle<data_pipe_consumer> body); 67 OnStartLoadingResponseBody(handle<data_pipe_consumer> body);
67 68
68 // Called when the loading completes. No notification will be dispatched for 69 // Called when the loading completes. No notification will be dispatched for
69 // this client after this message arrives. 70 // this client after this message arrives.
70 OnComplete(URLLoaderStatus completion_status); 71 OnComplete(URLLoaderStatus completion_status);
71 }; 72 };
72 73
OLDNEW
« no previous file with comments | « content/child/url_response_body_consumer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698