Chromium Code Reviews| 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..d1215e48e382a642612dd241a67318215eca2d57 |
| --- /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 carry messages to the page's or |
|
falken
2017/05/30 04:12:32
s/carry/send
s/the page's/pages
shimazu
2017/05/30 07:24:35
Done.
|
| +// the service worker's context. |
| +interface ServiceWorkerProvider { |
| + // TODO(shimazu): implement them. |
| + // associateRegistration(); |
| + // disassociateRegistration(); |
| + // setControllerServiceWorker(); |
| + // messageToDocument(); |
| +}; |