Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: chrome/common/extensions/api/storage.json

Issue 9403006: Extensions: run "custom bindings" v8-extensions in content scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final comments Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/storage.json
diff --git a/chrome/common/extensions/api/storage.json b/chrome/common/extensions/api/storage.json
index 63309bb13d5e9bc202cd71c0e20b4753a8629b43..c26c94344ca13e219df838d3cd1210c0c42193ce 100644
--- a/chrome/common/extensions/api/storage.json
+++ b/chrome/common/extensions/api/storage.json
@@ -1,6 +1,7 @@
[
{
"namespace": "storage",
+ "unprivileged": true,
"types": [
{
"id": "StorageChange",
@@ -24,7 +25,6 @@
"functions": [
{
"name": "get",
- "unprivileged": true,
"type": "function",
"description": "Gets one or more items from storage.",
"parameters": [
@@ -61,7 +61,6 @@
},
{
"name": "getBytesInUse",
- "unprivileged": true,
"type": "function",
"description": "Gets the amount of space (in bytes) being used by one or more items.",
"parameters": [
@@ -90,7 +89,6 @@
},
{
"name": "set",
- "unprivileged": true,
"type": "function",
"description": "Sets multiple items.",
"parameters": [
@@ -112,7 +110,6 @@
},
{
"name": "remove",
- "unprivileged": true,
"type": "function",
"description": "Removes one or more items from storage.",
"parameters": [
@@ -135,7 +132,6 @@
},
{
"name": "clear",
- "unprivileged": true,
"type": "function",
"description": "Removes all items from storage.",
"parameters": [
@@ -154,7 +150,6 @@
"events": [
{
"name": "onChanged",
- "unprivileged": true,
"type": "function",
"description": "Fired when one or more items change.",
"parameters": [
@@ -177,25 +172,21 @@
"sync": {
"$ref": "StorageArea",
"description": "Items under the \"sync\" namespace are synced using Chrome Sync.",
- "unprivileged": true,
"value": [ "sync" ],
"properties": {
"QUOTA_BYTES": {
"type": "integer",
"value": "102400",
- "unprivileged": true,
"description": "The maximum total amount (in bytes) of data that can be stored in sync storage."
},
"QUOTA_BYTES_PER_ITEM": {
"type": "integer",
"value": "2048",
- "unprivileged": true,
"description": "The maximum size (in bytes) of each individual item in sync storage."
},
"MAX_ITEMS": {
"type": "integer",
"value": "512",
- "unprivileged": true,
"description": "The maximum number of items that can be stored in sync storage."
}
}
@@ -203,13 +194,11 @@
"local": {
"$ref": "StorageArea",
"description": "Items under the \"local\" namespace are local to each machine.",
- "unprivileged": true,
"value": [ "local" ],
"properties": {
"QUOTA_BYTES": {
"type": "integer",
"value": "5120000",
- "unprivileged": true,
"description": "The maximum amount (in bytes) of data that can be stored in local storage. This value may be ignored if the extension has the <code>unlimitedStorage</code> permission."
}
}
« no previous file with comments | « chrome/common/extensions/api/extension_api_unittest.cc ('k') | chrome/renderer/extensions/chrome_v8_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698