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

Unified Diff: chrome/browser/extensions/extension_file_browser_private_api.h

Issue 7826037: Adding support to retrieve remaining and total space on disk/file shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 9 years, 3 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/browser/extensions/extension_file_browser_private_api.h
diff --git a/chrome/browser/extensions/extension_file_browser_private_api.h b/chrome/browser/extensions/extension_file_browser_private_api.h
index 7c7716dfe228003d9691b9a592efbad1cfe152a9..69b68276d1244fd9a3d3b1edda9544be3dd1182e 100644
--- a/chrome/browser/extensions/extension_file_browser_private_api.h
+++ b/chrome/browser/extensions/extension_file_browser_private_api.h
@@ -296,6 +296,28 @@ class FormatDeviceFunction
DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice");
};
+class GetSizeStatsFunction
+ : public FileBrowserFunction {
+ public:
+ GetSizeStatsFunction();
+
+ protected:
+ virtual ~GetSizeStatsFunction();
+
+ // FileBrowserFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+ virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
+ void* context) OVERRIDE;
+
+ private:
+ void GetSizeStatsCallbackOnUIThread(const char* mount_path,
+ size_t total_size_kb,
+ size_t remaining_size_kb);
+ void CallGetSizeStatsOnFileThread(const char* mount_path);
+
+ DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getSizeStats");
+};
+
// Retrieves devices meta-data. Expects volume's device path as an argument.
class GetVolumeMetadataFunction
: public SyncExtensionFunction {
« no previous file with comments | « chrome/browser/chromeos/cros/mount_library.cc ('k') | chrome/browser/extensions/extension_file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698