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