| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "unprivileged": true, | 8 "unprivileged": true, |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 "type": "function", | 154 "type": "function", |
| 155 "description": "Fired when one or more items change.", | 155 "description": "Fired when one or more items change.", |
| 156 "parameters": [ | 156 "parameters": [ |
| 157 { | 157 { |
| 158 "name": "changes", | 158 "name": "changes", |
| 159 "type": "object", | 159 "type": "object", |
| 160 "additionalProperties": { "$ref": "StorageChange" }, | 160 "additionalProperties": { "$ref": "StorageChange" }, |
| 161 "description": "Object mapping each key that changed to its correspo
nding <a href='#type-StorageChange'>StorageChange</a> for that item." | 161 "description": "Object mapping each key that changed to its correspo
nding <a href='#type-StorageChange'>StorageChange</a> for that item." |
| 162 }, | 162 }, |
| 163 { | 163 { |
| 164 "name": "namespace", | 164 "name": "areaName", |
| 165 "type": "string", | 165 "type": "string", |
| 166 "description": "The namespace (\"sync\" or \"local\") of the storage
area the changes are for." | 166 "description": "The name of the storage area (\"sync\" or \"local\")
the changes are for." |
| 167 } | 167 } |
| 168 ] | 168 ] |
| 169 } | 169 } |
| 170 ], | 170 ], |
| 171 "properties": { | 171 "properties": { |
| 172 "sync": { | 172 "sync": { |
| 173 "$ref": "StorageArea", | 173 "$ref": "StorageArea", |
| 174 "description": "Items under the \"sync\" namespace are synced using Chro
me Sync.", | 174 "description": "Items under the \"sync\" storage area are synced using C
hrome Sync.", |
| 175 "value": [ "sync" ], | 175 "value": [ "sync" ], |
| 176 "properties": { | 176 "properties": { |
| 177 "QUOTA_BYTES": { | 177 "QUOTA_BYTES": { |
| 178 "value": 102400, | 178 "value": 102400, |
| 179 "description": "The maximum total amount (in bytes) of data that can
be stored in sync storage. Updates that would cause this limit to be exceeded f
ail immediately and set chrome.extension.lastError." | 179 "description": "The maximum total amount (in bytes) of data that can
be stored in sync storage. Updates that would cause this limit to be exceeded f
ail immediately and set chrome.extension.lastError." |
| 180 }, | 180 }, |
| 181 "QUOTA_BYTES_PER_ITEM": { | 181 "QUOTA_BYTES_PER_ITEM": { |
| 182 "value": 2048, | 182 "value": 2048, |
| 183 "description": "The maximum size (in bytes) of each individual item
in sync storage. Updates containing items larger than this limit will fail." | 183 "description": "The maximum size (in bytes) of each individual item
in sync storage. Updates containing items larger than this limit will fail." |
| 184 }, | 184 }, |
| 185 "MAX_ITEMS": { | 185 "MAX_ITEMS": { |
| 186 "value": 512, | 186 "value": 512, |
| 187 "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" | 187 "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" |
| 188 }, | 188 }, |
| 189 "MAX_WRITE_OPERATIONS_PER_HOUR": { | 189 "MAX_WRITE_OPERATIONS_PER_HOUR": { |
| 190 "value": 1000, | 190 "value": 1000, |
| 191 "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." | 191 "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." |
| 192 }, | 192 }, |
| 193 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": { | 193 "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE": { |
| 194 "value": 10, | 194 "value": 10, |
| 195 "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.
" | 195 "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.
" |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 }, | 198 }, |
| 199 "local": { | 199 "local": { |
| 200 "$ref": "StorageArea", | 200 "$ref": "StorageArea", |
| 201 "description": "Items under the \"local\" namespace are local to each ma
chine.", | 201 "description": "Items under the \"local\" storage area are local to each
machine.", |
| 202 "value": [ "local" ], | 202 "value": [ "local" ], |
| 203 "properties": { | 203 "properties": { |
| 204 "QUOTA_BYTES": { | 204 "QUOTA_BYTES": { |
| 205 "value": 5242880, | 205 "value": 5242880, |
| 206 "description": "The maximum amount (in bytes) of data that can be st
ored in local storage. 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." | 206 "description": "The maximum amount (in bytes) of data that can be st
ored in local storage. 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." |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 ] | 212 ] |
| OLD | NEW |