Chromium Code Reviews| Index: Source/devtools/protocol.json |
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
| index 72b27bd68245af36a1b7325cb1fab7c875dfafa6..bdd9abe3378128310a4c7ced434897599ed9ca24 100644 |
| --- a/Source/devtools/protocol.json |
| +++ b/Source/devtools/protocol.json |
| @@ -195,6 +195,31 @@ |
| { "name": "title", "type": "string", "description": "Title of the navigation history entry." } |
| ], |
| "hidden": true |
| + }, |
| + { |
| + "id": "Quota", |
|
pfeldman
2013/09/19 17:37:32
I'd rather have a structure:
Quota: {
tempora
SeRya
2013/09/27 13:31:01
Done.
|
| + "type": "object", |
| + "description": "Quota information", |
| + "properties": [ |
| + { "name": "availableSpace", "type": "number", "description": "Space available on the storage device" }, |
| + { "name": "temporaryGlobalQuota", "type": "number", "description": "Quota for temporary storage shared among all security origins" }, |
| + { "name": "persistentHostQuota", "type": "number", "description": "Quota for persistent storage for the security origin." } |
| + ], |
| + "hidden": true |
| + }, |
| + { |
| + "id": "Usage", |
| + "type": "object", |
| + "description": "Usage information", |
| + "properties": [ |
| + { "name": "temporaryFileSystemUsage", "type": "number", "description": "Data used in temporary file storage" }, |
| + { "name": "persistentFileSystemUsage", "type": "number", "description": "Data used in persistent file storage" }, |
| + { "name": "syncableFileSystemUsage", "type": "number", "description": "Data used in syncable file storage" }, |
| + { "name": "databaseUsage", "type": "number", "description": "WebSQL usage (limited by temporary quota)" }, |
| + { "name": "appcacheUsage", "type": "number", "description": "AppCache usage (limited by temporary quota)" }, |
| + { "name": "indexedDatabaseUsage", "type": "number", "description": "IndexedDB usage (limited by temporary quota)" } |
| + ], |
| + "hidden": true |
| } |
| ], |
| "commands": [ |
| @@ -501,6 +526,25 @@ |
| { "name": "force", "type": "boolean", "description": "Whether to force accelerated compositing or not." } |
| ], |
| "hidden": true |
| + }, |
| + { |
| + "name": "queryUsageAndQuota", |
| + "description": ".", |
| + "parameters": [ |
| + { "name": "securityOrigin", "type": "string", "description": "Securicy origin quota and usage requested for" } |
| + ], |
| + "returns": [ |
| + { |
| + "name": "quota", |
| + "$ref": "Quota" |
| + }, |
| + { |
| + "name": "usage", |
| + "$ref": "Usage" |
| + } |
| + ], |
| + "description": "Queries more detailed quota nad usage data than Storage API provides.", |
| + "hidden": true |
| } |
| ], |
| "events": [ |