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

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

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Comment addressed, Merged. Created 3 years, 6 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
« no previous file with comments | « content/common/typemaps.gni ('k') | content/network/network_service_url_loader_factory_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 };
OLDNEW
« no previous file with comments | « content/common/typemaps.gni ('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