Implement a quota of 5MB per origin for localstorage and sessionstorage

This commit is contained in:
Louis Chan 2015-10-02 19:43:33 +08:00
parent a8ad990c6d
commit fb45b0e691
6 changed files with 66 additions and 36 deletions

View file

@ -28,8 +28,7 @@ pub enum StorageTaskMsg {
GetItem(IpcSender<Option<DOMString>>, Url, StorageType, DOMString),
/// sets the value of the given key in the associated storage data
/// TODO throw QuotaExceededError in case of error
SetItem(IpcSender<(bool, Option<DOMString>)>, Url, StorageType, DOMString, DOMString),
SetItem(IpcSender<Result<(bool, Option<DOMString>), ()>>, Url, StorageType, DOMString, DOMString),
/// removes the key/value pair for the given key in the associated storage data
RemoveItem(IpcSender<Option<DOMString>>, Url, StorageType, DOMString),