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

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

Issue 2653493009: Add two interfaces for ServiceWorkerProviderContext/ProviderHost (Closed)
Patch Set: Skip unittest for CrossSiteTransfer when PlzNavigate Created 3 years, 7 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/service_worker_provider_interfaces.mojom
diff --git a/content/common/service_worker/service_worker_provider_interfaces.mojom b/content/common/service_worker/service_worker_provider_interfaces.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..9f62bba4e84c0daf02bb86fbd6b89e3f8ce8f117
--- /dev/null
+++ b/content/common/service_worker/service_worker_provider_interfaces.mojom
@@ -0,0 +1,27 @@
+// Copyright 2017 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;
+
+// mojom::ServiceWorkerProviderHost is a browser-side interface. The renderer
+// uses this interface to request the browser to do operations involving service
+// worker registrations.
+interface ServiceWorkerProviderHost {
+ // TODO(shimazu): implement them.
+ // register() => ();
+ // getRegistation() => ();
+ // getRegistrations() => ();
+ // getRegistrationForReady() => ();
+};
+
+// mojom::ServiceWorkerProvider is a renderer-side interface.
+// The browser process uses this interface to send messages to pages or
+// the service worker's context.
+interface ServiceWorkerProvider {
+ // TODO(shimazu): implement them.
+ // associateRegistration();
+ // disassociateRegistration();
+ // setControllerServiceWorker();
+ // messageToDocument();
+};

Powered by Google App Engine
This is Rietveld 408576698