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

Side by Side Diff: content/common/service_worker/service_worker_provider.mojom

Issue 2959903002: Revert of Implement dumb URLLoader{Factory} for ServiceWorker script loading (Closed)
Patch Set: pull master and rebase 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "content/common/service_worker/service_worker_provider_interfaces.mojom"; 7 import "content/common/service_worker/service_worker_provider_interfaces.mojom";
8 import "content/common/service_worker/service_worker_types.mojom"; 8 import "content/common/service_worker/service_worker_types.mojom";
9 import "content/common/url_loader_factory.mojom";
10 9
11 // A container object carried from the browser to the renderer process. 10 // A container object carried from the browser to the renderer process.
12 // This contains the params for the constructor of ServiceWorkerNetworkProvider 11 // This contains the params for the constructor of ServiceWorkerNetworkProvider
13 // used for starting a service worker. 12 // used for starting a service worker.
14 struct ServiceWorkerProviderInfoForStartWorker { 13 struct ServiceWorkerProviderInfoForStartWorker {
15 int32 provider_id; 14 int32 provider_id;
16 // |registration| and |attributes| are information about the service worker's 15 // |registration| and |attributes| are information about the service worker's
17 // registration used to populate ServiceWorkerGlobalScope#registration. 16 // registration used to populate ServiceWorkerGlobalScope#registration.
18 ServiceWorkerRegistrationObjectInfo registration; 17 ServiceWorkerRegistrationObjectInfo registration;
19 ServiceWorkerVersionAttributes attributes; 18 ServiceWorkerVersionAttributes attributes;
20 19
21 associated ServiceWorkerProviderHost host_ptr_info; 20 associated ServiceWorkerProviderHost host_ptr_info;
22 associated ServiceWorkerProvider& client_request; 21 associated ServiceWorkerProvider& client_request;
23 associated URLLoaderFactory? script_loader_factory_ptr_info;
24 }; 22 };
25 23
26 // A container object carried from the renderer to the browser process. 24 // A container object carried from the renderer to the browser process.
27 // This contains the parameters to specify the provider on the browser side. 25 // This contains the parameters to specify the provider on the browser side.
28 // See also comments in 26 // See also comments in
29 // content/common/service_worker/service_worker_provider_host_info.h. 27 // content/common/service_worker/service_worker_provider_host_info.h.
30 struct ServiceWorkerProviderHostInfo { 28 struct ServiceWorkerProviderHostInfo {
31 int32 provider_id; 29 int32 provider_id;
32 int32 route_id; 30 int32 route_id;
33 ServiceWorkerProviderType type; 31 ServiceWorkerProviderType type;
34 bool is_parent_frame_secure; 32 bool is_parent_frame_secure;
35 associated ServiceWorkerProviderHost& host_request; 33 associated ServiceWorkerProviderHost& host_request;
36 associated ServiceWorkerProvider client_ptr_info; 34 associated ServiceWorkerProvider client_ptr_info;
37 }; 35 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698