| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // |report_raw_headers| is set and |download_to_file| is unset in the request. | 52 // |report_raw_headers| is set and |download_to_file| is unset in the request. |
| 53 // The transfer size is the length of the response (including both headers | 53 // The transfer size is the length of the response (including both headers |
| 54 // and the body) over the network. |transfer_size_diff| is the difference from | 54 // and the body) over the network. |transfer_size_diff| is the difference from |
| 55 // the value previously reported one (including the one in OnReceiveResponse | 55 // the value previously reported one (including the one in OnReceiveResponse |
| 56 // and OnReceiveRedirect). It must be positive. | 56 // and OnReceiveRedirect). It must be positive. |
| 57 // TODO(yhirano): Dispatch this notification even when |download_to_file| is | 57 // TODO(yhirano): Dispatch this notification even when |download_to_file| is |
| 58 // set. | 58 // set. |
| 59 // TODO(yhirano): Consider using an unsigned type. | 59 // TODO(yhirano): Consider using an unsigned type. |
| 60 OnTransferSizeUpdated(int32 transfer_size_diff); | 60 OnTransferSizeUpdated(int32 transfer_size_diff); |
| 61 | 61 |
| 62 // Called when the service made some progress on the file upload. This is |
| 63 // called only when the request has an upload data. |
| 64 // Call the response closure when the client is ready to receive the next |
| 65 // upload progress. |
| 66 OnUploadProgress(int64 current_position, int64 total_size) => (); |
| 67 |
| 62 // Called when the loader starts loading response body. | 68 // Called when the loader starts loading response body. |
| 63 OnStartLoadingResponseBody(handle<data_pipe_consumer> body); | 69 OnStartLoadingResponseBody(handle<data_pipe_consumer> body); |
| 64 | 70 |
| 65 // Called when the loading completes. No notification will be dispatched for | 71 // Called when the loading completes. No notification will be dispatched for |
| 66 // this client after this message arrives. | 72 // this client after this message arrives. |
| 67 OnComplete(URLLoaderStatus completion_status); | 73 OnComplete(URLLoaderStatus completion_status); |
| 68 }; | 74 }; |
| 69 | 75 |
| OLD | NEW |