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

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

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: rebase Created 3 years, 8 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 2017 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 "url_loader_factory.mojom";
8
9 interface ServiceWorkerWorkerClient {
kinuko 2017/04/18 08:00:31 can we also have an interface-level comment for th
horo 2017/04/18 12:53:34 Done.
10 // Called when the ServiceWorkerWorkerClient (which is a dedicated worker or
11 // a shared worker) is controlled by a new service worker.
12 SetControllerServiceWorker(int64 controller_version_id);
13 };
14
15 // An interface which provides URLLoaderFactory for worker context.
kinuko 2017/04/18 08:00:31 nit: can you make it clear about the IPC direction
horo 2017/04/18 12:53:34 Done.
16 interface WorkerURLLoaderFactoryProvider {
17 // Called from a dedicated (or shared) worker thread to create a worker fetch
18 // context. The browser process returns a URLLoaderFactory for the worker.
19 // SetControllerServiceWorker method of the passed ServiceWorkerWorkerClient
20 // interface will be called when the parent frame and the worker context is
21 // controlled by a service worker. |service_worker_provider_id| is the service
22 // worker provider id of the parent frame.
23 CreateWorkerFetchContext(associated URLLoaderFactory& loader,
24 associated ServiceWorkerWorkerClient client,
25 int32 service_worker_provider_id);
26
27 // Called from the service worker thread to get the URLLoaderFactory.
28 GetURLLoaderFactory(associated URLLoaderFactory& loader);
29 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698