Chromium Code Reviews| Index: chrome/browser/chromeos/cros/mount_library.h |
| =================================================================== |
| --- chrome/browser/chromeos/cros/mount_library.h (revision 93425) |
| +++ chrome/browser/chromeos/cros/mount_library.h (working copy) |
| @@ -6,8 +6,9 @@ |
| #define CHROME_BROWSER_CHROMEOS_CROS_MOUNT_LIBRARY_H_ |
| #pragma once |
| +#include <map> |
| +#include <set> |
| #include <string> |
| -#include <map> |
| #include "base/memory/singleton.h" |
| #include "base/observer_list.h" |
| @@ -97,6 +98,8 @@ |
| }; |
| typedef std::map<std::string, Disk*> DiskMap; |
| + typedef std::set<std::string> MountPointSet; |
|
zel
2011/07/22 04:47:17
this does not have enough information, in addition
tbarzic
2011/07/22 06:21:51
I know, I had in plan to add these (well, at least
|
| + |
| typedef void(*UnmountDeviceRecursiveCallbackType)(void*, bool); |
| class Observer { |
| @@ -107,16 +110,24 @@ |
| const Disk* disk) = 0; |
| virtual void DeviceChanged(MountLibraryEventType event, |
| const std::string& device_path ) = 0; |
| + virtual void MountCompleted(MountError error_code, |
| + const std::string& source, |
| + MountType mount_type, |
| + const std::string& mount_path) = 0; |
| }; |
| virtual ~MountLibrary() {} |
| virtual void AddObserver(Observer* observer) = 0; |
| virtual void RemoveObserver(Observer* observer) = 0; |
| virtual const DiskMap& disks() const = 0; |
| + virtual const MountPointSet& mount_points() const = 0; |
| virtual void RequestMountInfoRefresh() = 0; |
| - virtual void MountPath(const char* device_path) = 0; |
| - virtual void UnmountPath(const char* device_path) = 0; |
| + virtual void MountPath(const char* source_path, |
| + MountType type, |
| + const MountPathOptions& options) = 0; |
| + // |path| may be source od mount path. |
| + virtual void UnmountPath(const char* path) = 0; |
| // Unmounts device_poath and all of its known children. |
| virtual void UnmountDeviceRecursive(const char* device_path, |