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

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

Issue 2964503003: Move NetworkService mojom files to content/public/common. (Closed)
Patch Set: Merge 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
(Empty)
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
3 // found in the LICENSE file.
4
5 module content.mojom;
6
7 import "mutable_network_traffic_annotation_tag.mojom";
8 import "url_loader.mojom";
9
10 [Native]
11 struct URLSyncLoadResult;
12
13 const uint32 kURLLoadOptionNone = 0;
14 // Sends the net::SSLInfo struct in OnReceiveResponse.
15 const uint32 kURLLoadOptionSendSSLInfo = 1;
16
17 interface URLLoaderFactory {
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
20 // (e.g., response arrival) happen. |request_id| is for compatibility with
21 // the existing Chrome IPC.
22 CreateLoaderAndStart(associated URLLoader& loader,
23 int32 routing_id,
24 int32 request_id,
25 uint32 options,
26 URLRequest request,
27 URLLoaderClient client,
28 MutableNetworkTrafficAnnotationTag traffic_annotation);
29
30 // Loads the resource for the given |request| synchronously.
31 // |request_id| is for compatibility with the existing Chrome IPC.
32 [Sync] SyncLoad(int32 routing_id,
33 int32 request_id,
34 URLRequest request)
35 => (URLSyncLoadResult result);
36 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698