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 688c8b1848b18545c0332506cf5e7d955f3d98db..8108f442faa607b109fef504ebde6d8eae73d66d 100644 |
| --- a/chrome/browser/chromeos/cros/mount_library.h |
| +++ b/chrome/browser/chromeos/cros/mount_library.h |
| @@ -29,6 +29,12 @@ typedef enum MountLibraryEventType { |
| MOUNT_FORMATTING_FINISHED |
| } MountLibraryEventType; |
| +typedef enum MountCondition { |
| + MOUNT_CONDITION_NONE, |
| + MOUNT_CONDITION_UNKNOWN_FILESYSTEM, |
| + MOUNT_CONDITION_UNSUPPORTED_FILESYSTEM |
| +} MountCondition; |
| + |
| class MountLibcrosProxy { |
| public: |
| virtual ~MountLibcrosProxy() {} |
| @@ -135,11 +141,14 @@ class MountLibrary { |
| std::string source_path; |
| std::string mount_path; |
| MountType mount_type; |
| + MountCondition mount_condition; |
|
tbarzic
2011/08/25 02:03:44
hm.. better than special_data :)
I would still con
sidor
2011/08/25 18:02:13
Ok, I agree, but hmm... It's really hard to invent
tbarzic
2011/08/25 18:17:54
Yeah, actually, when I think about it..this is qui
|
| - MountPointInfo(const char* source, const char* mount, const MountType type) |
| + MountPointInfo(const char* source, const char* mount, const MountType type, |
| + MountCondition condition) |
| : source_path(source ? source : ""), |
| mount_path(mount ? mount : ""), |
| - mount_type(type) { |
| + mount_type(type), |
| + mount_condition(condition) { |
| } |
| }; |
| @@ -155,7 +164,7 @@ class MountLibrary { |
| virtual void DiskChanged(MountLibraryEventType event, |
| const Disk* disk) = 0; |
| virtual void DeviceChanged(MountLibraryEventType event, |
| - const std::string& device_path ) = 0; |
| + const std::string& device_path) = 0; |
| virtual void MountCompleted(MountEvent event_type, |
| MountError error_code, |
| const MountPointInfo& mount_info) = 0; |
| @@ -189,6 +198,7 @@ class MountLibrary { |
| // Helper functions for parameter conversions. |
| static std::string MountTypeToString(MountType type); |
| static MountType MountTypeFromString(const std::string& type_str); |
| + static std::string MountConditionToString(MountCondition type); |
| // Used in testing. Enables mocking libcros. |
| virtual void SetLibcrosProxy(MountLibcrosProxy* proxy) {} |