OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // Called when the request has been redirected. The receiver is expected to | 40 // Called when the request has been redirected. The receiver is expected to |
41 // call FollowRedirect or cancel the request. | 41 // call FollowRedirect or cancel the request. |
42 OnReceiveRedirect(URLRequestRedirectInfo redirect_info, URLResponseHead head); | 42 OnReceiveRedirect(URLRequestRedirectInfo redirect_info, URLResponseHead head); |
43 | 43 |
44 // Called when some data from a resource request has been downloaded to the | 44 // Called when some data from a resource request has been downloaded to the |
45 // file. This is only called in the 'download_to_file' case and replaces | 45 // file. This is only called in the 'download_to_file' case and replaces |
46 // OnStartLoadingResponseBody in the call sequence in that case. | 46 // OnStartLoadingResponseBody in the call sequence in that case. |
47 OnDataDownloaded(int64 data_length, int64 encoded_length); | 47 OnDataDownloaded(int64 data_length, int64 encoded_length); |
48 | 48 |
| 49 // Called when the service made some progress on the file upload. This is |
| 50 // called only when the request has an upload data. |
| 51 // Call the response closure when the client is ready to receive the next |
| 52 // upload progress. |
| 53 OnUploadProgress(int64 current_position, int64 total_size) => (); |
| 54 |
49 // Called when the loader starts loading response body. | 55 // Called when the loader starts loading response body. |
50 OnStartLoadingResponseBody(handle<data_pipe_consumer> body); | 56 OnStartLoadingResponseBody(handle<data_pipe_consumer> body); |
51 | 57 |
52 // Called when the loading completes. No notification will be dispatched for | 58 // Called when the loading completes. No notification will be dispatched for |
53 // this client after this message arrives. | 59 // this client after this message arrives. |
54 OnComplete(URLLoaderStatus completion_status); | 60 OnComplete(URLLoaderStatus completion_status); |
55 }; | 61 }; |
56 | 62 |
OLD | NEW |