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

Unified Diff: chrome/browser/chromeos/cros/mount_library.h

Issue 7471024: Formatting feature initial commit for ChromeOS Tree (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: final. Created 9 years, 5 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
« no previous file with comments | « chrome/browser/chromeos/cros/mock_mount_library.cc ('k') | chrome/browser/chromeos/cros/mount_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..061ba2274d354844b7c1d583bc8713f0a1ed4666 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,14 @@ class MountLibrary {
// |path| may be source od mount path.
virtual void UnmountPath(const char* path) = 0;
+ // Formats device given its file path.
+ // Example: file_path: /dev/sdb1
+ virtual void FormatUnmountedDevice(const char* file_path) = 0;
+
+ // Formats Device given its mount path. Unmount's the device
+ // Example: mount_path: /media/VOLUME_LABEL
+ virtual void FormatMountedDevice(const char* mount_path) = 0;
+
// Unmounts device_poath and all of its known children.
virtual void UnmountDeviceRecursive(const char* device_path,
UnmountDeviceRecursiveCallbackType callback, void* user_data) = 0;
« no previous file with comments | « chrome/browser/chromeos/cros/mock_mount_library.cc ('k') | chrome/browser/chromeos/cros/mount_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698