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: third_party/WebKit/public/platform/modules/serviceworker/service_worker.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
Index: third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom b/third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..44b3239251dc4e9b69fcee83086194e310d75280
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/serviceworker/service_worker.mojom
@@ -0,0 +1,39 @@
+
+// Copyright 2015 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 blink.mojom;
+
+import "url/mojo/url.mojom";
+
+interface ServiceWorkerService {
+ WorkerStarted(int32 embedded_worker_id);
+};
+
+struct ServiceWorkerResponse {
+ string? url;
+ uint16 status_code;
+ string? status_text;
+ // blink::WebServiceWorkerResponseType response_type;
+ // ServiceWorkerHeaderMap headers;
+ string? blob_uuid;
+ uint64 blob_size;
+ string? stream_url;
+ // blink::WebServiceWorkerResponseError error;
+ // base::Time response_time;
+ // bool is_in_cache_storage = false;
+ // std::string cache_storage_cache_name;
+ // ServiceWorkerHeaderList cors_exposed_header_names;
+};
+
+
+interface IsolatedWorkerClient {
+ OnFetchEvent(int32 response_id, int32 event_finish_id, string url, bool is_navigate) => (bool handled, ServiceWorkerResponse? response);
+};
+
+interface IsolatedWorkerHostService {
+ OnThreadStarted(int64 version_id, IsolatedWorkerClient client);
+ OnScriptEvaluated();
+ OnWorkerStarted();
+};
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/web/modules/serviceworker/WebIsolatedWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698