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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_worker/embedded_worker_setup.mojom
diff --git a/content/common/service_worker/embedded_worker_setup.mojom b/content/common/service_worker/embedded_worker_setup.mojom
index 6b1dfb5d91cd5d13098c9c59f9e114ca379ee97c..bbd25920fb2d1a74449fc8d609c7b493fd73e92c 100644
--- a/content/common/service_worker/embedded_worker_setup.mojom
+++ b/content/common/service_worker/embedded_worker_setup.mojom
@@ -4,11 +4,31 @@
module content.mojom;
+import "url/mojo/url.mojom";
import "services/shell/public/interfaces/interface_provider.mojom";
+
interface EmbeddedWorkerSetup {
ExchangeInterfaceProviders(
int32 thread_id,
shell.mojom.InterfaceProvider& remote_interfaces,
shell.mojom.InterfaceProvider local_interfaces);
};
+
+struct WorkerScript {
+ string url;
+ handle<data_pipe_consumer> data_pipe;
+ handle<data_pipe_consumer>? meta_data_pipe;
+};
+
+struct WorkerScriptList {
+ array<WorkerScript> scripts;
+};
+
+interface IsolatedWorkerDispatcher {
+ StartServiceWorker(int64 version_id, string scope, string script_url, shell.mojom.InterfaceProvider& remote_interfaces, shell.mojom.InterfaceProvider local_interfaces, WorkerScriptList script_list);
+};
+
+interface IsolatedWorkerDispatcherReciever{
+ SetDispatcher(IsolatedWorkerDispatcher dispatcher);
+};
« 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