| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const DiskMap& disks() const override; | 55 const DiskMap& disks() const override; |
| 56 const Disk* FindDiskBySourcePath( | 56 const Disk* FindDiskBySourcePath( |
| 57 const std::string& source_path) const override; | 57 const std::string& source_path) const override; |
| 58 const MountPointMap& mount_points() const override; | 58 const MountPointMap& mount_points() const override; |
| 59 void EnsureMountInfoRefreshed( | 59 void EnsureMountInfoRefreshed( |
| 60 const EnsureMountInfoRefreshedCallback& callback, | 60 const EnsureMountInfoRefreshedCallback& callback, |
| 61 bool force) override; | 61 bool force) override; |
| 62 void MountPath(const std::string& source_path, | 62 void MountPath(const std::string& source_path, |
| 63 const std::string& source_format, | 63 const std::string& source_format, |
| 64 const std::string& mount_label, | 64 const std::string& mount_label, |
| 65 chromeos::MountType type) override; | 65 chromeos::MountType type, |
| 66 chromeos::MountAccessMode access_mode) override; |
| 66 void UnmountPath(const std::string& mount_path, | 67 void UnmountPath(const std::string& mount_path, |
| 67 chromeos::UnmountOptions options, | 68 chromeos::UnmountOptions options, |
| 68 const UnmountPathCallback& callback) override; | 69 const UnmountPathCallback& callback) override; |
| 69 void FormatMountedDevice(const std::string& mount_path) override; | 70 void FormatMountedDevice(const std::string& mount_path) override; |
| 70 void UnmountDeviceRecursively( | 71 void UnmountDeviceRecursively( |
| 71 const std::string& device_path, | 72 const std::string& device_path, |
| 72 const UnmountDeviceRecursivelyCallbackType& callback) override; | 73 const UnmountDeviceRecursivelyCallbackType& callback) override; |
| 73 | 74 |
| 74 bool AddDiskForTest(Disk* disk) override; | 75 bool AddDiskForTest(Disk* disk) override; |
| 75 bool AddMountPointForTest(const MountPointInfo& mount_point) override; | 76 bool AddMountPointForTest(const MountPointInfo& mount_point) override; |
| 76 void InvokeDiskEventForTest(DiskEvent event, const Disk* disk); | 77 void InvokeDiskEventForTest(DiskEvent event, const Disk* disk); |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 base::ObserverList<Observer> observers_; | 80 base::ObserverList<Observer> observers_; |
| 80 | 81 |
| 81 DiskMap disks_; | 82 DiskMap disks_; |
| 82 MountPointMap mount_points_; | 83 MountPointMap mount_points_; |
| 83 | 84 |
| 84 std::vector<MountRequest> mount_requests_; | 85 std::vector<MountRequest> mount_requests_; |
| 85 std::vector<UnmountRequest> unmount_requests_; | 86 std::vector<UnmountRequest> unmount_requests_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(FakeDiskMountManager); | 88 DISALLOW_COPY_AND_ASSIGN(FakeDiskMountManager); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace file_manager | 91 } // namespace file_manager |
| 91 | 92 |
| 92 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FAKE_DISK_MOUNT_MANAGER_H_ |
| OLD | NEW |