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

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

Issue 2285393003: Add API to get a folder's size. (Closed)
Patch Set: Add API to get a folder's size. Created 4 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/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 fef52e9315c013a05d6fff747551f23beb21ab54..51d428a506adc4794b844faf0d5b2102ef0a4e5f 100644
--- a/chrome/common/extensions/api/file_manager_private.idl
+++ b/chrome/common/extensions/api/file_manager_private.idl
@@ -650,6 +650,9 @@ callback GetProvidingExtensionsCallback = void(ProvidingExtension[] extensions);
// |actions| List of actions.
callback GetCustomActionsCallback = void(fileSystemProvider.Action[] actions);
+// |size| result size.
+callback GetDirectorySizeCallback = void(double size);
+
interface Functions {
// Logout the current user for navigating to the re-authentication screen for
// the Google account.
@@ -969,6 +972,13 @@ interface Functions {
static void executeCustomAction([instanceof=Entry] object[] entries,
DOMString actionId,
SimpleCallback callback);
+
+ // Get the total size of a directory.
+ // |entry| Entry of the target directory.
+ // |callback|
+ [nocompile]
+ static void getDirectorySize([instanceof=DirectoryEntry] object entry,
+ GetDirectorySizeCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698