The maximum amount (in bytes) of data that can be stored in local storage,
as measured by the JSON stringification of every value plus every key's
length. This value will be ignored if the extension has the
unlimitedStorage permission. Updates that would cause this limit to be
exceeded fail immediately and set runtime.lastError.
Gets one or more items from storage.
keys A single key to get, list of keys to get, or a dictionary
specifying default values (see description of the object). An empty
list or object will return an empty result object. Pass in null to
get the entire contents of storage.
returns Callback with storage items, or on failure (in which case
runtime.lastError will be set).
Gets the amount of space (in bytes) being used by one or more items.
keys A single key or list of keys to get the total usage for. An empty
list will return 0. Pass in null to get the total usage of all of
storage.
returns Callback with the amount of space being used by storage, or on
failure (in which case runtime.lastError will be set).
Removes one or more items from storage.
keys A single key or a list of keys for items to remove.
returns Callback on success, or on failure (in which case
runtime.lastError will be set).
Sets multiple items.
items An object which gives each key/value pair to update storage
with. Any other key/value pairs in storage will not be affected.
Sets the desired access level for the storage area. The default will be
only trusted contexts.
returns Callback on success, or on failure (in which case
runtime.lastError will be set).