| 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..f97c77ab6571cd719b12057da99365557554fa97 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();
|
| +
|
| + void GetSizeStatsCallbackOnUIThread(const char* mount_path,
|
| + size_t total_size_kb,
|
| + size_t remaining_size_kb) OVERRIDE;
|
| + void CallGetSizeStatsOnFileThread(const char* mount_path);
|
| +
|
| + protected:
|
| + virtual ~GetSizeStatsFunction();
|
| +
|
| + // FileBrowserFunction overrides.
|
| + virtual bool RunImpl() OVERRIDE;
|
| + virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
|
| + void* context) OVERRIDE;
|
| +
|
| + private:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getSizeStats");
|
| +};
|
| +
|
| // Retrieves devices meta-data. Expects volume's device path as an argument.
|
| class GetVolumeMetadataFunction
|
| : public SyncExtensionFunction {
|
|
|