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

Unified Diff: chrome/common/extensions/api/file_manager_private.idl

Issue 840843002: Expose computation of md5 content checksums for files via a file manager private API. (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
Index: chrome/common/extensions/api/file_manager_private.idl
diff --git a/chrome/common/extensions/api/file_manager_private.idl b/chrome/common/extensions/api/file_manager_private.idl
index a1bad67918f1f3e503d5b4a31232e59cf242e54e..6558b3f47f0ae20f851b2555bd7f719fe3f2a878 100644
--- a/chrome/common/extensions/api/file_manager_private.idl
+++ b/chrome/common/extensions/api/file_manager_private.idl
@@ -557,6 +557,9 @@ callback GetProfilesCallback = void(ProfileInfo[] profiles,
callback ResolveEntriesCallback =
void([instanceOf=FileEntry] object[] entries);
+// |checksum| Result checksum.
+callback ComputeChecksumCallback = void(DOMString checksum);
+
interface Functions {
// Logout the current user for navigating to the re-authentication screen for
// the Google account.
@@ -807,6 +810,12 @@ interface Functions {
// Opens inspector window.
// |type| InspectionType which specifies how to open inspector.
static void openInspector(InspectionType type);
+
+ // Computes an MD5 checksum for the given file.
+ // |fileURL| The URL of the file to checksum.
+ // |callback|
+ static void computeChecksum(DOMString fileURL,
+ ComputeChecksumCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698