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

Unified Diff: third_party/closure_compiler/externs/file_manager_private.js

Issue 883993003: Files.app: Add missing externs for FileManagerPrivate APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/externs/file_manager_private.js
diff --git a/third_party/closure_compiler/externs/file_manager_private.js b/third_party/closure_compiler/externs/file_manager_private.js
index f36dd82771d77c1b49516a2095faa0eab226ff6b..197558814e1cf87f46a5f45db2e07715c3b36e32 100644
--- a/third_party/closure_compiler/externs/file_manager_private.js
+++ b/third_party/closure_compiler/externs/file_manager_private.js
@@ -442,6 +442,15 @@ chrome.fileManagerPrivate.searchDrive = function(searchParams, callback) {};
chrome.fileManagerPrivate.searchDriveMetadata = function(searchParams, callback) {};
/**
+ * Search for files in the given volume, whose content hash matches the list of
+ * given hashes.
+ * @param {string} volumeId
+ * @param {!Array<string>} hashes
+ * @param {function(!Object<string, !Array<string>>)} callback
+ */
+chrome.fileManagerPrivate.searchFilesByHashes = function(volumeId, hashes, callback) {};
+
+/**
* Create a zip file for the selected files. |dirURL| URL of the directory
* containing the selected files. |selectionUrls| URLs of the selected files.
* The files must be under the directory specified by dirURL. |destName|
@@ -551,6 +560,13 @@ chrome.fileManagerPrivate.visitDesktop = function(profileId, callback) {};
chrome.fileManagerPrivate.openInspector = function(type) {};
/**
+ * Computes an MD5 checksum for the given file.
+ * @param {string} fileUrl
+ * @param {function(string)} callback
+ */
+chrome.fileManagerPrivate.computeChecksum = function(fileUrl, callback) {};
+
+/**
* Gets the MIME type of a file.
* @param {string} fileUrl File url.
* @param {function(string)} callback Callback that MIME type of the file is
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698