| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "storage", | 7 "namespace": "storage", |
| 8 "description": "Use the <code>chrome.storage</code> API to store, retrieve,
and track changes to user data.", | 8 "description": "Use the <code>chrome.storage</code> API to store, retrieve,
and track changes to user data.", |
| 9 "unprivileged": true, | 9 "unprivileged": true, |
| 10 "types": [ | 10 "types": [ |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 }, | 182 }, |
| 183 "QUOTA_BYTES_PER_ITEM": { | 183 "QUOTA_BYTES_PER_ITEM": { |
| 184 "value": 8192, | 184 "value": 8192, |
| 185 "description": "The maximum size (in bytes) of each individual item
in sync storage, as measured by the JSON stringification of its value plus its k
ey length. Updates containing items larger than this limit will fail immediately
and set $(ref:runtime.lastError)." | 185 "description": "The maximum size (in bytes) of each individual item
in sync storage, as measured by the JSON stringification of its value plus its k
ey length. Updates containing items larger than this limit will fail immediately
and set $(ref:runtime.lastError)." |
| 186 }, | 186 }, |
| 187 "MAX_ITEMS": { | 187 "MAX_ITEMS": { |
| 188 "value": 512, | 188 "value": 512, |
| 189 "description": "The maximum number of items that can be stored in sy
nc storage. Updates that would cause this limit to be exceeded will fail immedia
tely and set $(ref:runtime.lastError)." | 189 "description": "The maximum number of items that can be stored in sy
nc storage. Updates that would cause this limit to be exceeded will fail immedia
tely and set $(ref:runtime.lastError)." |
| 190 }, | 190 }, |
| 191 "MAX_WRITE_OPERATIONS_PER_HOUR": { | 191 "MAX_WRITE_OPERATIONS_PER_HOUR": { |
| 192 "value": 1000, | 192 "value": 1800, |
| 193 "description": "The maximum number of <code>set</code>, <code>remove
</code>, or <code>clear</code> operations that can be performed each hour. Updat
es that would cause this limit to be exceeded fail immediately and set $(ref:run
time.lastError)." | 193 "description": "<p>The maximum number of <code>set</code>, <code>rem
ove</code>, or <code>clear</code> operations that can be performed each hour. Th
is is 1 every 2 seconds, a lower ceiling than the short term higher writes-per-m
inute limit.</p><p>Updates that would cause this limit to be exceeded fail immed
iately and set $(ref:runtime.lastError).</p>" |
| 194 }, |
| 195 "MAX_WRITE_OPERATIONS_PER_MINUTE": { |
| 196 "value": 120, |
| 197 "description": "<p>The maximum number of <code>set</code>, <code>rem
ove</code>, or <code>clear</code> operations that can be performed each minute.
This is 2 per second, providing higher throughput than writes-per-hour over a sh
orter period of time.</p><p>Updates that would cause this limit to be exceeded f
ail immediately and set $(ref:runtime.lastError).</p>" |
| 194 }, | 198 }, |
| 195 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": { | 199 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": { |
| 196 "value": 1000000, | 200 "value": 1000000, |
| 197 "deprecated": "The storage.sync API no longer has a sustained write
operation quota.", | 201 "deprecated": "The storage.sync API no longer has a sustained write
operation quota.", |
| 198 "description": "" | 202 "description": "" |
| 199 } | 203 } |
| 200 } | 204 } |
| 201 }, | 205 }, |
| 202 "local": { | 206 "local": { |
| 203 "$ref": "StorageArea", | 207 "$ref": "StorageArea", |
| 204 "description": "Items in the <code>local</code> storage area are local t
o each machine.", | 208 "description": "Items in the <code>local</code> storage area are local t
o each machine.", |
| 205 "value": [ "local" ], | 209 "value": [ "local" ], |
| 206 "properties": { | 210 "properties": { |
| 207 "QUOTA_BYTES": { | 211 "QUOTA_BYTES": { |
| 208 "value": 5242880, | 212 "value": 5242880, |
| 209 "description": "The maximum amount (in bytes) of data that can be st
ored in local storage, as measured by the JSON stringification of every value pl
us every key's length. This value will be ignored if the extension has the <code
>unlimitedStorage</code> permission. Updates that would cause this limit to be e
xceeded fail immediately and set $(ref:runtime.lastError)." | 213 "description": "The maximum amount (in bytes) of data that can be st
ored in local storage, as measured by the JSON stringification of every value pl
us every key's length. This value will be ignored if the extension has the <code
>unlimitedStorage</code> permission. Updates that would cause this limit to be e
xceeded fail immediately and set $(ref:runtime.lastError)." |
| 210 } | 214 } |
| 211 } | 215 } |
| 212 }, | 216 }, |
| 213 "managed": { | 217 "managed": { |
| 214 "$ref": "StorageArea", | 218 "$ref": "StorageArea", |
| 215 "description": "Items in the <code>managed</code> storage area are set b
y the domain administrator, and are read-only for the extension; trying to modif
y this namespace results in an error.", | 219 "description": "Items in the <code>managed</code> storage area are set b
y the domain administrator, and are read-only for the extension; trying to modif
y this namespace results in an error.", |
| 216 "value": [ "managed" ] | 220 "value": [ "managed" ] |
| 217 } | 221 } |
| 218 } | 222 } |
| 219 } | 223 } |
| 220 ] | 224 ] |
| OLD | NEW |