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

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

Issue 2701753003: [WIP] off-main-thread loading
Patch Set: small fix 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ServiceWorkerClient {
10 // Called when the ServiceWorkerClient (which is Dedicated Worker or Shared
11 // Worker) is controlled by a new service worker.
12 SetControllerServiceWorker(int64 controller_version_id);
13 };
14
15 interface WorkerFetchContextFactory {
16 // Called from a dedicated (or shared) worker thread to create a worker fetch
17 // context.
18 // The browser process returns a URLLoaderFactory. SetControllerServiceWorker
19 // method of the passed ServiceWorkerClient interface will be called when the
20 // parent frame and the worker context is controlled by a service worker.
21 // |service_worker_provider_id| is the service worker provider id of the
22 // parent frame.
23 CreateWorkerFetchContext(associated URLLoaderFactory& loader,
24 associated ServiceWorkerClient 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698