OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module content.mojom; |
| 6 |
| 7 // mojom::ServiceWorkerProviderHost is a browser-side |
| 8 // interface bound to content::ServiceWorkerProviderHost. The renderer uses this |
| 9 // interface to request the browser to do operations involving service worker |
| 10 // registrations. |
| 11 // A content::ServiceWorkerProviderHost bound with this interface will be destro
yed when |
| 12 // the connection is disconnected. |
| 13 interface ServiceWorkerProviderHost { |
| 14 // TODO(shimazu): implement them. |
| 15 // register() => (); |
| 16 // getRegistation() => (); |
| 17 // getRegistrations() => (); |
| 18 // getRegistrationForReady() => (); |
| 19 }; |
| 20 |
| 21 // mojom::ServiceWorkerProvider is a renderer-side interface bound to |
| 22 // content::ServiceWorkerProviderContext. |
| 23 interface ServiceWorkerProvider { |
| 24 // TODO(shimazu): implement them. |
| 25 // associateRegistration(); |
| 26 // disassociateRegistration(); |
| 27 // setControllerServiceWorker(); |
| 28 // messageToDocument(); |
| 29 }; |
OLD | NEW |