| 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 import "mutable_network_traffic_annotation_tag.mojom"; |
| 7 import "url_loader.mojom"; | 8 import "url_loader.mojom"; |
| 8 | 9 |
| 9 [Native] | 10 [Native] |
| 10 struct URLSyncLoadResult; | 11 struct URLSyncLoadResult; |
| 11 | 12 |
| 12 const uint32 kURLLoadOptionNone = 0; | 13 const uint32 kURLLoadOptionNone = 0; |
| 13 // Sends the net::SSLInfo struct in OnReceiveResponse. | 14 // Sends the net::SSLInfo struct in OnReceiveResponse. |
| 14 const uint32 kURLLoadOptionSendSSLInfo = 1; | 15 const uint32 kURLLoadOptionSendSSLInfo = 1; |
| 15 | 16 |
| 16 interface URLLoaderFactory { | 17 interface URLLoaderFactory { |
| 17 // Creats a URLLoader and starts loading with the given |request|. |client|'s | 18 // Creats a URLLoader and starts loading with the given |request|. |client|'s |
| 18 // method will be called when certain events related to that loading | 19 // method will be called when certain events related to that loading |
| 19 // (e.g., response arrival) happen. |request_id| is for compatibility with | 20 // (e.g., response arrival) happen. |request_id| is for compatibility with |
| 20 // the existing Chrome IPC. | 21 // the existing Chrome IPC. |
| 21 CreateLoaderAndStart(associated URLLoader& loader, | 22 CreateLoaderAndStart(associated URLLoader& loader, |
| 22 int32 routing_id, | 23 int32 routing_id, |
| 23 int32 request_id, | 24 int32 request_id, |
| 24 uint32 options, | 25 uint32 options, |
| 25 URLRequest request, | 26 URLRequest request, |
| 26 URLLoaderClient client); | 27 URLLoaderClient client, |
| 28 MutableNetworkTrafficAnnotationTag traffic_annotation); |
| 27 | 29 |
| 28 // Loads the resource for the given |request| synchronously. | 30 // Loads the resource for the given |request| synchronously. |
| 29 // |request_id| is for compatibility with the existing Chrome IPC. | 31 // |request_id| is for compatibility with the existing Chrome IPC. |
| 30 [Sync] SyncLoad(int32 routing_id, | 32 [Sync] SyncLoad(int32 routing_id, |
| 31 int32 request_id, | 33 int32 request_id, |
| 32 URLRequest request) | 34 URLRequest request) |
| 33 => (URLSyncLoadResult result); | 35 => (URLSyncLoadResult result); |
| 34 }; | 36 }; |
| OLD | NEW |