| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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://storage.spec.whatwg.org/#storagemanager | 5 // https://storage.spec.whatwg.org/#storagemanager |
| 6 | 6 |
| 7 // TODO(jsbell): Should have [SecureContext] on interface |
| 7 [ | 8 [ |
| 8 Exposed=(Window,Worker), | 9 Exposed=(Window,Worker), |
| 9 RuntimeEnabled=DurableStorage, | 10 RuntimeEnabled=DurableStorage, |
| 10 ] interface StorageManager { | 11 ] interface StorageManager { |
| 11 [CallWith=ScriptState, MeasureAs=DurableStoragePersisted] Promise<boolean> p
ersisted(); | 12 [CallWith=ScriptState, MeasureAs=DurableStoragePersisted] Promise<boolean> p
ersisted(); |
| 12 [Exposed=Window, CallWith=ScriptState, MeasureAs=DurableStoragePersist] Prom
ise<boolean> persist(); | 13 [Exposed=Window, CallWith=ScriptState, MeasureAs=DurableStoragePersist] Prom
ise<boolean> persist(); |
| 13 | 14 |
| 14 [RuntimeEnabled=StorageEstimate, CallWith=ScriptState, MeasureAs=DurableStor
ageEstimate] Promise<StorageEstimate> estimate(); | 15 [RuntimeEnabled=StorageEstimate, CallWith=ScriptState, MeasureAs=DurableStor
ageEstimate] Promise<StorageEstimate> estimate(); |
| 15 }; | 16 }; |
| OLD | NEW |