| 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-registration | 5 // https://wicg.github.io/background-fetch/#background-fetch-registration |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 Exposed=(Window,Worker), | 8 Exposed=(Window,Worker), |
| 9 RuntimeEnabled=BackgroundFetch | 9 RuntimeEnabled=BackgroundFetch |
| 10 ] interface BackgroundFetchRegistration { | 10 ] interface BackgroundFetchRegistration { |
| 11 readonly attribute DOMString tag; | 11 readonly attribute DOMString tag; |
| 12 readonly attribute FrozenArray<IconDefinition> icons; | 12 readonly attribute FrozenArray<IconDefinition> icons; |
| 13 readonly attribute long totalDownloadSize; | 13 readonly attribute long totalDownloadSize; |
| 14 readonly attribute DOMString title; | 14 readonly attribute DOMString title; |
| 15 // TODO(crbug.com/699957): Implement the `activeFetches` attribute. | 15 // TODO(crbug.com/699957): Implement the `activeFetches` attribute. |
| 16 | 16 |
| 17 void abort(); | 17 [CallWith=ScriptState] Promise<bool> abort(); |
| 18 }; | 18 }; |
| OLD | NEW |