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

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

Issue 7826037: Adding support to retrieve remaining and total space on disk/file shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed AddRef/Release from file_browser_private_api.cc Created 9 years, 4 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/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 1326a40552d834dd83525b02f525d4f03fdf5d0f..35bad6dd0d866db9de8b289ca825391a258b798b 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -6635,6 +6635,21 @@
}
},
{
+ "id": "MountPointSizeStats",
+ "type": "object",
+ "description": "Information about total and remaining size on the mount point.",
+ "properties": {
+ "totalSizeKB": {
+ "type": "integer",
rginda 2011/09/06 21:20:02 Can we get integer bytes instead of kilobytes?
tbarzic 2011/09/06 21:31:45 I'm not sure... can we pass int64 here? (if we can
+ "description": "Total available size on the mount point."
+ },
+ "remainingSizeKB": {
+ "type": "integer",
+ "description": "Remaining available size on the mount point."
+ }
+ }
+ },
+ {
"id": "VolumeMetadata",
"type": "object",
"description": "Mounted disk volume metadata.",
@@ -7026,6 +7041,29 @@
]
},
{
+ "name": "getSizeStats",
+ "description": "Retrieves total and remaining size of a mount point.",
+ "parameters": [
+ {
+ "name": "mountPath",
+ "type": "string",
+ "description": "Mount point path."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": false,
+ "parameters": [
+ {
+ "name" : "sizeStats",
+ "$ref": "MountPointSizeStats",
+ "description": "Name/value pairs of size stats."
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "formatDevice",
"description": "Formats a mounted device",
"parameters": [

Powered by Google App Engine
This is Rietveld 408576698