Commit 1064215c authored by kenobi's avatar kenobi Committed by Commit bot

Files.app: Add missing externs for FileManagerPrivate APIs.

searchFilesByHashes
computeChecksum

BUG=None

Review URL: https://codereview.chromium.org/883993003

Cr-Commit-Position: refs/heads/master@{#313455}
parent ae92c1ca
......@@ -441,6 +441,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.
......@@ -550,6 +559,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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment