| Index: chrome/browser/extensions/extension_file_browser_private_api.h
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_file_browser_private_api.h (revision 93731)
|
| +++ chrome/browser/extensions/extension_file_browser_private_api.h (working copy)
|
| @@ -217,21 +217,50 @@
|
| DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.cancelDialog");
|
| };
|
|
|
| -// Unmounts selected device. Expects volume's device path as an argument.
|
| -class UnmountVolumeFunction
|
| +// Mount a device or a file.
|
| +class AddMountFunction
|
| : public SyncExtensionFunction {
|
| - public:
|
| - UnmountVolumeFunction();
|
| + public:
|
| + AddMountFunction();
|
|
|
| protected:
|
| - virtual ~UnmountVolumeFunction();
|
| + virtual ~AddMountFunction();
|
|
|
| virtual bool RunImpl() OVERRIDE;
|
|
|
| private:
|
| - DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.unmountVolume");
|
| + DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount");
|
| };
|
|
|
| +// Unmounts selected device. Expects mount point path as an argument.
|
| +class RemoveMountFunction
|
| + : public SyncExtensionFunction {
|
| + public:
|
| + RemoveMountFunction();
|
| +
|
| + protected:
|
| + virtual ~RemoveMountFunction();
|
| +
|
| + virtual bool RunImpl() OVERRIDE;
|
| +
|
| + private:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.removeMount");
|
| +};
|
| +
|
| +class GetMountPointsFunction
|
| + : public SyncExtensionFunction {
|
| + public:
|
| + GetMountPointsFunction();
|
| +
|
| + protected:
|
| + virtual ~GetMountPointsFunction();
|
| +
|
| + virtual bool RunImpl() OVERRIDE;
|
| +
|
| + private:
|
| + DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints");
|
| +};
|
| +
|
| // Retrieves devices meta-data. Expects volume's device path as an argument.
|
| class GetVolumeMetadataFunction
|
| : public SyncExtensionFunction {
|
| @@ -250,7 +279,25 @@
|
|
|
| DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata");
|
| };
|
| +/*
|
| +class MountVolumeFunction
|
| + : public AsyncExtensionFunction,
|
| + public MountLibrary::MountRequestDelegate {
|
| + public:
|
| + MountVolumeFunction();
|
|
|
| + MountCompleted();
|
| +
|
| + protected:
|
| + virtual ~FormatVolumeFunction();
|
| +
|
| + virtual bool RunImpl() OVERRIDE;
|
| +
|
| + private:
|
| +
|
| + DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.mountVolume");
|
| +};
|
| +*/
|
| // File Dialog Strings.
|
| class FileDialogStringsFunction : public SyncExtensionFunction {
|
| public:
|
|
|