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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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": 1000, |
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": "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)." |
194 }, | 194 }, |
195 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": { | 195 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": { |
196 "value": 10, | 196 "value": 1000000, |
197 "description": "The maximum number of <code>set</code>, <code>remove
</code>, or <code>clear</code> operations that can be performed each minute, sus
tained over 10 minutes. Updates that would cause this limit to be exceeded fail
immediately and set $(ref:runtime.lastError)." | 197 "deprecated": "The storage.sync API no longer has a sustained write
operation quota.", |
| 198 "description": "" |
198 } | 199 } |
199 } | 200 } |
200 }, | 201 }, |
201 "local": { | 202 "local": { |
202 "$ref": "StorageArea", | 203 "$ref": "StorageArea", |
203 "description": "Items in the <code>local</code> storage area are local t
o each machine.", | 204 "description": "Items in the <code>local</code> storage area are local t
o each machine.", |
204 "value": [ "local" ], | 205 "value": [ "local" ], |
205 "properties": { | 206 "properties": { |
206 "QUOTA_BYTES": { | 207 "QUOTA_BYTES": { |
207 "value": 5242880, | 208 "value": 5242880, |
208 "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)." | 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)." |
209 } | 210 } |
210 } | 211 } |
211 }, | 212 }, |
212 "managed": { | 213 "managed": { |
213 "$ref": "StorageArea", | 214 "$ref": "StorageArea", |
214 "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.", | 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.", |
215 "value": [ "managed" ] | 216 "value": [ "managed" ] |
216 } | 217 } |
217 } | 218 } |
218 } | 219 } |
219 ] | 220 ] |
OLD | NEW |