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

Unified Diff: Source/devtools/protocol.json

Issue 23264011: Quota view in Resources pannel. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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: 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": [

Powered by Google App Engine
This is Rietveld 408576698