mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replaced DOMString by String in storage APIs.
This commit is contained in:
parent
582273eb07
commit
cf340be758
3 changed files with 36 additions and 35 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use url::Url;
|
||||
use util::str::DOMString;
|
||||
|
||||
#[derive(Copy, Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub enum StorageType {
|
||||
|
@ -19,19 +18,19 @@ pub enum StorageTaskMsg {
|
|||
Length(IpcSender<usize>, Url, StorageType),
|
||||
|
||||
/// gets the name of the key at the specified index in the associated storage data
|
||||
Key(IpcSender<Option<DOMString>>, Url, StorageType, u32),
|
||||
Key(IpcSender<Option<String>>, Url, StorageType, u32),
|
||||
|
||||
/// Gets the available keys in the associated storage data
|
||||
Keys(IpcSender<Vec<DOMString>>, Url, StorageType),
|
||||
Keys(IpcSender<Vec<String>>, Url, StorageType),
|
||||
|
||||
/// gets the value associated with the given key in the associated storage data
|
||||
GetItem(IpcSender<Option<DOMString>>, Url, StorageType, DOMString),
|
||||
GetItem(IpcSender<Option<String>>, Url, StorageType, String),
|
||||
|
||||
/// sets the value of the given key in the associated storage data
|
||||
SetItem(IpcSender<Result<(bool, Option<DOMString>), ()>>, Url, StorageType, DOMString, DOMString),
|
||||
SetItem(IpcSender<Result<(bool, Option<String>), ()>>, Url, StorageType, String, String),
|
||||
|
||||
/// removes the key/value pair for the given key in the associated storage data
|
||||
RemoveItem(IpcSender<Option<DOMString>>, Url, StorageType, DOMString),
|
||||
RemoveItem(IpcSender<Option<String>>, Url, StorageType, String),
|
||||
|
||||
/// clears the associated storage data by removing all the key/value pairs
|
||||
Clear(IpcSender<bool>, Url, StorageType),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue