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

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

Issue 9545006: This adds some GData private API to the file manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One last SetBoolean 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
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/fileBrowserPrivate.json
diff --git a/chrome/common/extensions/api/fileBrowserPrivate.json b/chrome/common/extensions/api/fileBrowserPrivate.json
index e2bfe2d23fbe60b64e5a6949e22cbab1a5fa1df8..add4fafdc24739466fbdcc1adb48b5a5b1ccf55d 100644
--- a/chrome/common/extensions/api/fileBrowserPrivate.json
+++ b/chrome/common/extensions/api/fileBrowserPrivate.json
@@ -51,6 +51,48 @@
}
},
{
+ "id": "GDataFileProperties",
+ "type": "object",
+ "description": "GData file properties.",
+ "properties": {
+ "fileUrl": {
+ "type": "string",
+ "optional": true,
+ "description": "the URL given for this file."
+ },
+ "thumbnailUrl": {
+ "type": "string",
+ "optional": true,
+ "description": "URL to the GData thumbnail image for this file."
+ },
+ "editUrl": {
+ "type": "string",
+ "optional": true,
+ "description": "GData edit URL for this file."
+ },
+ "isPinned": {
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the file is pinned in GData cache."
+ },
+ "isPresent": {
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the file is present in GData cache."
+ },
+ "isDirty": {
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the file is awaiting upload in GData cache."
+ },
+ "errorCode": {
+ "type": "integer",
+ "optional": true,
+ "description": "The error code (from base::PlatformFileError) if fetching the properties for this file had an error."
+ }
+ }
+ },
+ {
"id": "MountPointInfo",
"type": "object",
"description": "Mounted point information.",
@@ -179,7 +221,7 @@
"error_invalid_archive", "error_libcros_missing",
"error_authentication", "error_network",
"error_path_unmounted"],
- "description": "Event type that tells listeners if mount was successfull or an error occurred. It also specifies the error."
+ "description": "Event type that tells listeners if mount was successful or an error occurred. It also specifies the error."
},
"sourceUrl": {
"type": "string",
@@ -427,6 +469,54 @@
]
},
{
+ "name": "getGDataFileProperties",
+ "description": "Requests GData file properties for a list of files",
+ "parameters": [
+ {
+ "name": "fileUrls",
+ "type": "array",
+ "description": "Array of file URLs to fetch properties for."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "false",
+ "parameters": [
+ {
+ "name" : "fileProperties",
+ "type": "array",
+ "items": {"$ref": "GDataFileProperties"},
+ "description": "An array of the requested file properties, one entry for each file in fileUrls."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "pinGDataFile",
+ "description": "Pins a GData file in the cache",
+ "parameters": [
+ {
+ "name": "fileUrls",
+ "type": "array",
+ "description": "Array of file URLs to pin."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "false",
+ "parameters": [
+ {
+ "name" : "fileProperties",
+ "type": "array",
+ "items": {"$ref": "GDataFileProperties"},
+ "description": "An array of the pinned properties after pinning for the requested files, one entry for each file in fileUrls."
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "getVolumeMetadata",
"description": "Requests volume's metadata",
"parameters": [
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698