OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ | 5 #ifndef CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ |
6 #define CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ | 6 #define CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const std::string& fs_uuid, | 66 const std::string& fs_uuid, |
67 const std::string& system_path_prefix, | 67 const std::string& system_path_prefix, |
68 DeviceType device_type, | 68 DeviceType device_type, |
69 uint64_t total_size_in_bytes, | 69 uint64_t total_size_in_bytes, |
70 bool is_parent, | 70 bool is_parent, |
71 bool is_read_only, | 71 bool is_read_only, |
72 bool has_media, | 72 bool has_media, |
73 bool on_boot_device, | 73 bool on_boot_device, |
74 bool on_removable_device, | 74 bool on_removable_device, |
75 bool is_hidden); | 75 bool is_hidden); |
| 76 Disk(const Disk& other); |
76 ~Disk(); | 77 ~Disk(); |
77 | 78 |
78 // The path of the device, used by devicekit-disks. | 79 // The path of the device, used by devicekit-disks. |
79 // (e.g. /sys/devices/pci0000:00/.../8:0:0:0/block/sdb/sdb1) | 80 // (e.g. /sys/devices/pci0000:00/.../8:0:0:0/block/sdb/sdb1) |
80 const std::string& device_path() const { return device_path_; } | 81 const std::string& device_path() const { return device_path_; } |
81 | 82 |
82 // The path to the mount point of this device. Will be empty if not mounted. | 83 // The path to the mount point of this device. Will be empty if not mounted. |
83 // (e.g. /media/removable/VOLUME) | 84 // (e.g. /media/removable/VOLUME) |
84 const std::string& mount_path() const { return mount_path_; } | 85 const std::string& mount_path() const { return mount_path_; } |
85 | 86 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 307 |
307 // Returns a pointer to the global DiskMountManager instance. | 308 // Returns a pointer to the global DiskMountManager instance. |
308 // Initialize() should already have been called. | 309 // Initialize() should already have been called. |
309 static DiskMountManager* GetInstance(); | 310 static DiskMountManager* GetInstance(); |
310 }; | 311 }; |
311 | 312 |
312 } // namespace disks | 313 } // namespace disks |
313 } // namespace chromeos | 314 } // namespace chromeos |
314 | 315 |
315 #endif // CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ | 316 #endif // CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ |
OLD | NEW |