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

Unified Diff: chromeos/disks/disk_mount_manager.h

Issue 2451603002: Add a method to remount all removable devices in DiskMountManager. (Closed)
Patch Set: Add is_mounted() method. Created 4 years, 1 month 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 39d114dba4b3c59a495af4b7a082cd8ea95d01b3..cceebc0983d9c7db7c6a9113c6765720a6ce89b1 100644
--- a/chromeos/disks/disk_mount_manager.h
+++ b/chromeos/disks/disk_mount_manager.h
@@ -165,6 +165,8 @@ class CHROMEOS_EXPORT DiskMountManager {
void clear_mount_path() { mount_path_.clear(); }
+ bool is_mounted() const { return !mount_path_.empty(); }
+
private:
std::string device_path_;
std::string mount_path_;
@@ -294,6 +296,10 @@ class CHROMEOS_EXPORT DiskMountManager {
UnmountOptions options,
const UnmountPathCallback& callback) = 0;
+ // Remounts mounted removable devices to change the read-only mount option.
+ // Devices that can be mounted only in its read-only mode will be ignored.
+ virtual void RemountAllRemovableDrives(chromeos::MountAccessMode mode) = 0;
+
// Formats Device given its mount path. Unmounts the device.
// Example: mount_path: /media/VOLUME_LABEL
virtual void FormatMountedDevice(const std::string& mount_path) = 0;
« no previous file with comments | « chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc ('k') | chromeos/disks/disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698