summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl')
-rw-r--r--chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl17
1 files changed, 14 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl b/chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
index 3db592745d7..07d2dbfde12 100644
--- a/chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
+++ b/chromium/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
@@ -27,12 +27,23 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-interface
[
- GlobalContext=ServiceWorkerGlobalScope,
+ Exposed=ServiceWorker,
+ Global=Worker&ServiceWorker,
RuntimeEnabled=ServiceWorker,
] interface ServiceWorkerGlobalScope : WorkerGlobalScope {
- attribute EventHandler oninstall;
+
+ readonly attribute ServiceWorkerClients clients;
+ [CallWith=ExecutionContext, Unforgeable] readonly attribute ScalarValueString scope;
+
+ [CallWith=ScriptState] Promise fetch(ScalarValueString request);
+ [CallWith=ScriptState] Promise fetch(Request request);
+
attribute EventHandler onactivate;
attribute EventHandler onfetch;
+ attribute EventHandler oninstall;
+ attribute EventHandler onmessage;
+ attribute EventHandler onsync;
};
-