Chromium Code Reviews| Index: chromeos/dbus/cros_disks_client.h |
| diff --git a/chromeos/dbus/cros_disks_client.h b/chromeos/dbus/cros_disks_client.h |
| index c6e2f971bcb9273f8b49de993fe186c83f12238a..24edc3a86f2a058f345c8d754a106d93aaffbdd9 100644 |
| --- a/chromeos/dbus/cros_disks_client.h |
| +++ b/chromeos/dbus/cros_disks_client.h |
| @@ -108,6 +108,18 @@ enum MountAccessMode { |
| MOUNT_ACCESS_MODE_READ_ONLY, |
| }; |
| +// Whether to mount to a new path or remount a device already mounted. |
| +enum RemountOption { |
| + // Mount a new device. If the device is already mounted, the mount status is |
| + // unchanged and the callback for MountCompleted will receive |
| + // MOUNT_ERROR_PATH_ALREADY_MOUNTED error code. |
| + REMOUNT_OPTION_DISABLED, |
| + // Remount a device that is already mounted. If the device is not mounted |
| + // yet, it will do nothing and the callback for MountCompleted will receive |
| + // MOUNT_ERROR_PATH_ALREADY_MOUNTED error code. |
|
hashimoto
2016/10/19 12:15:27
Receiving MOUNT_ERROR_PATH_ALREADY_MOUNTED when no
yamaguchi
2016/10/19 12:27:21
It was a simple mistake of the comment. Thanks.
|
| + REMOUNT_OPTION_ENABLED, |
| +}; |
| + |
| // A class to represent information about a disk sent from cros-disks. |
| class CHROMEOS_EXPORT DiskInfo { |
| public: |
| @@ -278,6 +290,7 @@ class CHROMEOS_EXPORT CrosDisksClient : public DBusClient { |
| const std::string& source_format, |
| const std::string& mount_label, |
| MountAccessMode access_mode, |
| + RemountOption remount, |
| const base::Closure& callback, |
| const base::Closure& error_callback) = 0; |
| @@ -341,7 +354,8 @@ class CHROMEOS_EXPORT CrosDisksClient : public DBusClient { |
| // Composes a list of mount options. |
| static std::vector<std::string> ComposeMountOptions( |
| const std::string& mount_label, |
| - MountAccessMode access_mode); |
| + MountAccessMode access_mode, |
| + RemountOption remount); |
| protected: |
| // Create() should be used instead. |