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 // TODO(peter): Implement the `fetch` method. | 11 // TODO(peter): The `requests` argument of `fetch()` should accept either an |
12 // TODO(peter): Implement the `get` method. | 12 // individual RequestInfo, or a sequence of them. |
| 13 [CallWith=ScriptState] Promise<BackgroundFetchRegistration> fetch(DOMString
tag, sequence<RequestInfo> requests, optional BackgroundFetchOptions options); |
13 | 14 |
| 15 [CallWith=ScriptState] Promise<BackgroundFetchRegistration?> get(DOMString t
ag); |
14 [CallWith=ScriptState] Promise<FrozenArray<DOMString>> getTags(); | 16 [CallWith=ScriptState] Promise<FrozenArray<DOMString>> getTags(); |
15 }; | 17 }; |
OLD | NEW |