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

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

Issue 2954853002: Use Independent URLLoader
Patch Set: . Created 3 years, 5 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
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 import "mutable_network_traffic_annotation_tag.mojom"; 7 import "mutable_network_traffic_annotation_tag.mojom";
8 import "url_loader.mojom"; 8 import "url_loader.mojom";
9 9
10 [Native] 10 [Native]
11 struct URLSyncLoadResult; 11 struct URLSyncLoadResult;
12 12
13 const uint32 kURLLoadOptionNone = 0; 13 const uint32 kURLLoadOptionNone = 0;
14 // Sends the net::SSLInfo struct in OnReceiveResponse. 14 // Sends the net::SSLInfo struct in OnReceiveResponse.
15 const uint32 kURLLoadOptionSendSSLInfo = 1; 15 const uint32 kURLLoadOptionSendSSLInfo = 1;
16 16
17 interface URLLoaderFactory { 17 interface URLLoaderFactory {
18 // 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
19 // method will be called when certain events related to that loading 19 // method will be called when certain events related to that loading
20 // (e.g., response arrival) happen. |request_id| is for compatibility with 20 // (e.g., response arrival) happen. |request_id| is for compatibility with
21 // the existing Chrome IPC. 21 // the existing Chrome IPC.
22 CreateLoaderAndStart(associated URLLoader& loader, 22 CreateLoaderAndStart(URLLoader& loader,
23 int32 routing_id, 23 int32 routing_id,
24 int32 request_id, 24 int32 request_id,
25 uint32 options, 25 uint32 options,
26 URLRequest request, 26 URLRequest request,
27 URLLoaderClient client, 27 URLLoaderClient client,
28 MutableNetworkTrafficAnnotationTag traffic_annotation); 28 MutableNetworkTrafficAnnotationTag traffic_annotation);
29 29
30 // Loads the resource for the given |request| synchronously. 30 // Loads the resource for the given |request| synchronously.
31 // |request_id| is for compatibility with the existing Chrome IPC. 31 // |request_id| is for compatibility with the existing Chrome IPC.
32 [Sync] SyncLoad(int32 routing_id, 32 [Sync] SyncLoad(int32 routing_id,
33 int32 request_id, 33 int32 request_id,
34 URLRequest request) 34 URLRequest request)
35 => (URLSyncLoadResult result); 35 => (URLSyncLoadResult result);
36 }; 36 };
OLDNEW
« no previous file with comments | « content/common/throttling_url_loader_unittest.cc ('k') | content/network/network_service_url_loader_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698