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..3ba61e046c543fec0966d8270e49b2bb7cd50182 |
--- /dev/null |
+++ b/content/common/service_worker/service_worker_provider_interfaces.mojom |
@@ -0,0 +1,29 @@ |
+// 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 bound to content::ServiceWorkerProviderHost. The renderer uses this |
+// interface to request the browser to do operations involving service worker |
+// registrations. |
+// A content::ServiceWorkerProviderHost bound with this interface will be destroyed when |
+// the connection is disconnected. |
+interface ServiceWorkerProviderHost { |
+ // TODO(shimazu): implement them. |
+ // register() => (); |
+ // getRegistation() => (); |
+ // getRegistrations() => (); |
+ // getRegistrationForReady() => (); |
+}; |
+ |
+// mojom::ServiceWorkerProvider is a renderer-side interface bound to |
+// content::ServiceWorkerProviderContext. |
+interface ServiceWorkerProvider { |
+ // TODO(shimazu): implement them. |
+ // associateRegistration(); |
+ // disassociateRegistration(); |
+ // setControllerServiceWorker(); |
+ // messageToDocument(); |
+}; |