Chromium Code Reviews| 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 [ | 7 [ |
| 8 Exposed=(Window,Worker), | 8 Exposed=(Window,Worker), |
| 9 RuntimeEnabled=DurableStorage, | 9 OriginTrialEnabled=DurableStorage, |
| 10 ] interface StorageManager { | 10 ] interface StorageManager { |
| 11 [CallWith=ScriptState] Promise<boolean> persisted(); | 11 [CallWith=ScriptState, MeasureAs=DurableStoragePersisted] Promise<boolean> p ersisted(); |
| 12 [Exposed=Window, CallWith=ScriptState] Promise<boolean> persist(); | 12 [Exposed=Window, CallWith=ScriptState, MeasureAs=DurableStoragePersist] Prom ise<boolean> persist(); |
| 13 | 13 |
| 14 [RuntimeEnabled=StorageEstimate, CallWith=ScriptState] Promise<StorageEstima te> estimate(); | 14 [RuntimeEnabled=StorageEstimate, CallWith=ScriptState, MeasureAs=DurableStor ageEstimate] Promise<StorageEstimate> estimate(); |
|
chasej
2016/05/17 03:00:42
Given that estimate() isn't being exposed as part
| |
| 15 }; | 15 }; |
| OLD | NEW |