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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 "sync": { | 174 "sync": { |
175 "$ref": "StorageArea", | 175 "$ref": "StorageArea", |
176 "description": "Items in the <code>sync</code> storage area are synced u
sing Chrome Sync.", | 176 "description": "Items in the <code>sync</code> storage area are synced u
sing Chrome Sync.", |
177 "value": [ "sync" ], | 177 "value": [ "sync" ], |
178 "properties": { | 178 "properties": { |
179 "QUOTA_BYTES": { | 179 "QUOTA_BYTES": { |
180 "value": 102400, | 180 "value": 102400, |
181 "description": "The maximum total amount (in bytes) of data that can
be stored in sync storage, as measured by the JSON stringification of every val
ue plus every key's length. Updates that would cause this limit to be exceeded f
ail immediately and set $(ref:runtime.lastError)." | 181 "description": "The maximum total amount (in bytes) of data that can
be stored in sync storage, as measured by the JSON stringification of every val
ue plus every key's length. Updates that would cause this limit to be exceeded f
ail immediately and set $(ref:runtime.lastError)." |
182 }, | 182 }, |
183 "QUOTA_BYTES_PER_ITEM": { | 183 "QUOTA_BYTES_PER_ITEM": { |
184 "value": 4096, | 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": 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 }, |
(...skipping 15 matching lines...) Expand all Loading... |
210 } | 210 } |
211 }, | 211 }, |
212 "managed": { | 212 "managed": { |
213 "$ref": "StorageArea", | 213 "$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.", | 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 "value": [ "managed" ] | 215 "value": [ "managed" ] |
216 } | 216 } |
217 } | 217 } |
218 } | 218 } |
219 ] | 219 ] |
OLD | NEW |