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

Unified Diff: chromeos/disks/disk_mount_manager.h

Issue 2201023002: Change access mode of disk devices when mounting based on config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register default value for the new preference. 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: chromeos/disks/disk_mount_manager.h
diff --git a/chromeos/disks/disk_mount_manager.h b/chromeos/disks/disk_mount_manager.h
index 82506b96e91ca140e0a3e2ff5b975ff59d7ecb8a..949b1a7e5e6895e0772782d8cf40815bcde1770d 100644
--- a/chromeos/disks/disk_mount_manager.h
+++ b/chromeos/disks/disk_mount_manager.h
@@ -254,14 +254,19 @@ class CHROMEOS_EXPORT DiskMountManager {
const EnsureMountInfoRefreshedCallback& callback,
bool force) = 0;
- // Mounts a device.
+ // Mounts a device or an archive file.
+ // |source_path| specifies either a device or an archive file path.
+ // When |type|=MOUNT_TYPE_ARCHIVE, caller may set two optional arguments:
+ // |source_format| and |mount_label|. See CrosDisksClient::Mount for detail.
+ // |access_mode| specifies read-only or read-write mount mode for a device.
// Note that the mount operation may fail. To find out the result, one should
// observe DiskMountManager for |Observer::OnMountEvent| event, which will be
// raised upon the mount operation completion.
virtual void MountPath(const std::string& source_path,
const std::string& source_format,
const std::string& mount_label,
- MountType type) = 0;
+ MountType type,
+ MountAccessMode access_mode) = 0;
// Unmounts a mounted disk.
// |UnmountOptions| enum defined in chromeos/dbus/cros_disks_client.h.

Powered by Google App Engine
This is Rietveld 408576698