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

Unified Diff: content/common/service_worker/embedded_worker.mojom

Issue 2227593002: ServiceWorker: Implement StartWorker by using mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added argument check and updated comment and BUILD.gn 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 side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/embedded_worker.mojom
diff --git a/content/common/service_worker/embedded_worker.mojom b/content/common/service_worker/embedded_worker.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..4fa4c9826960ec7c380ec93d82322830547a672f
--- /dev/null
+++ b/content/common/service_worker/embedded_worker.mojom
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content.mojom;
+
+import "content/public/common/web_preferences.mojom";
+import "services/shell/public/interfaces/interface_provider.mojom";
+import "url/mojo/url.mojom";
+
+struct EmbeddedWorkerSettings {
+ V8CacheOptions v8_cache_options;
+ bool data_saver_enabled;
+};
+
+struct EmbeddedWorkerStartWorkerParams {
+ int32 embedded_worker_id;
+ int64 service_worker_version_id;
+ url.mojom.Url scope;
+ url.mojom.Url script_url;
+ int32 worker_devtools_agent_route_id;
+ bool pause_after_download;
+ bool wait_for_debugger;
+ bool is_installed;
+ EmbeddedWorkerSettings settings;
+};
+
+interface EmbeddedWorkerInstanceClient {
+ StartWorker(EmbeddedWorkerStartWorkerParams params);
+};

Powered by Google App Engine
This is Rietveld 408576698