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