| 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 CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Gets the list of mount points. | 197 // Gets the list of mount points. |
| 198 virtual const MountPointMap& mount_points() const = 0; | 198 virtual const MountPointMap& mount_points() const = 0; |
| 199 | 199 |
| 200 // Requests refreshing all the information about mounted disks. | 200 // Requests refreshing all the information about mounted disks. |
| 201 virtual void RequestMountInfoRefresh() = 0; | 201 virtual void RequestMountInfoRefresh() = 0; |
| 202 | 202 |
| 203 // Mounts a device. | 203 // Mounts a device. |
| 204 virtual void MountPath(const std::string& source_path, | 204 virtual void MountPath(const std::string& source_path, |
| 205 const std::string& source_format, | 205 const std::string& source_format, |
| 206 const std::string& mount_label, |
| 206 MountType type) = 0; | 207 MountType type) = 0; |
| 207 | 208 |
| 208 // Unmounts a mounted disk. | 209 // Unmounts a mounted disk. |
| 209 virtual void UnmountPath(const std::string& mount_path) = 0; | 210 virtual void UnmountPath(const std::string& mount_path) = 0; |
| 210 | 211 |
| 211 // Retrieves total and remaining available size on |mount_path|. | 212 // Retrieves total and remaining available size on |mount_path|. |
| 212 virtual void GetSizeStatsOnFileThread(const std::string& mount_path, | 213 virtual void GetSizeStatsOnFileThread(const std::string& mount_path, |
| 213 size_t* total_size_kb, | 214 size_t* total_size_kb, |
| 214 size_t* remaining_size_kb) = 0; | 215 size_t* remaining_size_kb) = 0; |
| 215 // Formats device given its file path. | 216 // Formats device given its file path. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 253 |
| 253 // Returns a pointer to the global DiskMountManager instance. | 254 // Returns a pointer to the global DiskMountManager instance. |
| 254 // Initialize() should already have been called. | 255 // Initialize() should already have been called. |
| 255 static DiskMountManager* GetInstance(); | 256 static DiskMountManager* GetInstance(); |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace disks | 259 } // namespace disks |
| 259 } // namespace chromeos | 260 } // namespace chromeos |
| 260 | 261 |
| 261 #endif // CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ | 262 #endif // CHROME_BROWSER_CHROMEOS_DISKS_DISK_MOUNT_MANAGER_H_ |
| OLD | NEW |