OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://wicg.github.io/background-fetch/#background-fetch-manager | 5 // https://wicg.github.io/background-fetch/#background-fetch-manager |
6 | 6 |
7 [ | 7 [ |
8 Exposed=(Window,Worker), | 8 Exposed=(Window,Worker), |
9 RuntimeEnabled=BackgroundFetch | 9 RuntimeEnabled=BackgroundFetch |
10 ] interface BackgroundFetchManager { | 10 ] interface BackgroundFetchManager { |
11 [CallWith=ScriptState] Promise<BackgroundFetchRegistration> fetch(DOMString
tag, (RequestInfo or sequence<RequestInfo>) requests, optional BackgroundFetchOp
tions options); | 11 [CallWith=ScriptState, RaisesException] Promise<BackgroundFetchRegistration>
fetch(DOMString tag, (RequestInfo or sequence<RequestInfo>) requests, optional
BackgroundFetchOptions options); |
12 [CallWith=ScriptState] Promise<BackgroundFetchRegistration?> get(DOMString t
ag); | 12 [CallWith=ScriptState] Promise<BackgroundFetchRegistration?> get(DOMString t
ag); |
13 [CallWith=ScriptState] Promise<FrozenArray<DOMString>> getTags(); | 13 [CallWith=ScriptState] Promise<FrozenArray<DOMString>> getTags(); |
14 }; | 14 }; |
OLD | NEW |