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

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

Issue 2118243002: [proof-of-concept] SW thread independent of the main thread Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "url/mojo/url.mojom";
7 import "services/shell/public/interfaces/interface_provider.mojom"; 8 import "services/shell/public/interfaces/interface_provider.mojom";
8 9
10
9 interface EmbeddedWorkerSetup { 11 interface EmbeddedWorkerSetup {
10 ExchangeInterfaceProviders( 12 ExchangeInterfaceProviders(
11 int32 thread_id, 13 int32 thread_id,
12 shell.mojom.InterfaceProvider& remote_interfaces, 14 shell.mojom.InterfaceProvider& remote_interfaces,
13 shell.mojom.InterfaceProvider local_interfaces); 15 shell.mojom.InterfaceProvider local_interfaces);
14 }; 16 };
17
18 struct WorkerScript {
19 string url;
20 handle<data_pipe_consumer> data_pipe;
21 handle<data_pipe_consumer>? meta_data_pipe;
22 };
23
24 struct WorkerScriptList {
25 array<WorkerScript> scripts;
26 };
27
28 interface IsolatedWorkerDispatcher {
29 StartServiceWorker(int64 version_id, string scope, string script_url, shell.mo jom.InterfaceProvider& remote_interfaces, shell.mojom.InterfaceProvider local_in terfaces, WorkerScriptList script_list);
30 };
31
32 interface IsolatedWorkerDispatcherReciever{
33 SetDispatcher(IsolatedWorkerDispatcher dispatcher);
34 };
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_registration_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698