OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 // https://w3c.github.io/ServiceWorker/#service-worker-global-scope-interface | 31 // https://w3c.github.io/ServiceWorker/#service-worker-global-scope-interface |
32 | 32 |
33 [ | 33 [ |
34 Exposed=ServiceWorker, | 34 Exposed=ServiceWorker, |
35 Global=(Worker,ServiceWorker), | 35 Global=(Worker,ServiceWorker), |
36 ] interface ServiceWorkerGlobalScope : WorkerGlobalScope { | 36 ] interface ServiceWorkerGlobalScope : WorkerGlobalScope { |
37 | 37 |
38 readonly attribute Clients clients; | 38 [Measure] readonly attribute Clients clients; |
39 readonly attribute ServiceWorkerRegistration registration; | 39 [Measure] readonly attribute ServiceWorkerRegistration registration; |
40 | 40 |
41 [CallWith=ScriptState, RaisesException] Promise<Response> fetch(RequestInfo in
put, optional Dictionary init); | 41 [Measure, CallWith=ScriptState, RaisesException] Promise<Response> fetch(Reque
stInfo input, optional Dictionary init); |
42 | 42 |
43 [CallWith=ScriptState] Promise<void> skipWaiting(); | 43 [Measure, CallWith=ScriptState] Promise<void> skipWaiting(); |
44 | 44 |
45 attribute EventHandler onactivate; | 45 [Measure] attribute EventHandler onactivate; |
46 attribute EventHandler onfetch; | 46 [Measure] attribute EventHandler onfetch; |
47 attribute EventHandler oninstall; | 47 [Measure] attribute EventHandler oninstall; |
48 attribute EventHandler onmessage; | 48 [Measure] attribute EventHandler onmessage; |
49 [OriginTrialEnabled=ForeignFetch] attribute EventHandler onforeignfetch; | 49 [Measure, OriginTrialEnabled=ForeignFetch] attribute EventHandler onforeignfet
ch; |
50 }; | 50 }; |
OLD | NEW |