Chromium Code Reviews| Index: chrome/browser/chromeos/cros/mount_library.h |
| diff --git a/chrome/browser/chromeos/cros/mount_library.h b/chrome/browser/chromeos/cros/mount_library.h |
| index 8be7a8ac6598e18be0462ac710dcc69227e3f043..cbfd8fdab0f83f99571bfed3333a3d13c19ac1be 100644 |
| --- a/chrome/browser/chromeos/cros/mount_library.h |
| +++ b/chrome/browser/chromeos/cros/mount_library.h |
| @@ -24,7 +24,9 @@ typedef enum MountLibraryEventType { |
| MOUNT_DISK_UNMOUNTED, |
| MOUNT_DEVICE_ADDED, |
| MOUNT_DEVICE_REMOVED, |
| - MOUNT_DEVICE_SCANNED |
| + MOUNT_DEVICE_SCANNED, |
| + MOUNT_FORMATTING_STARTED, |
| + MOUNT_FORMATTING_FINISHED |
| } MountLibraryEventType; |
| // This class handles the interaction with the ChromeOS mount library APIs. |
| @@ -100,6 +102,7 @@ class MountLibrary { |
| bool on_boot_device_; |
| }; |
| typedef std::map<std::string, Disk*> DiskMap; |
| + typedef std::map<std::string, std::string> PathMap; |
| // MountPointInfo: {mount_path, mount_type}. |
| struct MountPointInfo { |
| @@ -145,6 +148,12 @@ class MountLibrary { |
| // |path| may be source od mount path. |
| virtual void UnmountPath(const char* path) = 0; |
| + virtual void FormatUnmountedDevice(const char* file_path) = 0; |
|
tbarzic
2011/07/29 17:43:18
These comments don't seem right...
sidor
2011/07/29 18:36:53
Done.
|
| + // Formats Device given its mount path. |
| + |
| + virtual void FormatMountedDevice(const char* mount_path) = 0; |
| + // Unmounts device_poath and all of its known children. |
| + |
| // Unmounts device_poath and all of its known children. |
| virtual void UnmountDeviceRecursive(const char* device_path, |
| UnmountDeviceRecursiveCallbackType callback, void* user_data) = 0; |