| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // CrosDisksClient overrides | 24 // CrosDisksClient overrides |
| 25 void Init(dbus::Bus* bus) override; | 25 void Init(dbus::Bus* bus) override; |
| 26 | 26 |
| 27 // Performs fake mounting for archive files. Instead of actually extracting | 27 // Performs fake mounting for archive files. Instead of actually extracting |
| 28 // contents of archive files, this function creates a directory that | 28 // contents of archive files, this function creates a directory that |
| 29 // contains a dummy file. | 29 // contains a dummy file. |
| 30 void Mount(const std::string& source_path, | 30 void Mount(const std::string& source_path, |
| 31 const std::string& source_format, | 31 const std::string& source_format, |
| 32 const std::string& mount_label, | 32 const std::string& mount_label, |
| 33 MountAccessMode access_mode, | 33 MountAccessMode access_mode, |
| 34 RemountOption remount, |
| 34 const base::Closure& callback, | 35 const base::Closure& callback, |
| 35 const base::Closure& error_callback) override; | 36 const base::Closure& error_callback) override; |
| 37 |
| 36 // Deletes the directory created in Mount(). | 38 // Deletes the directory created in Mount(). |
| 37 void Unmount(const std::string& device_path, | 39 void Unmount(const std::string& device_path, |
| 38 UnmountOptions options, | 40 UnmountOptions options, |
| 39 const base::Closure& callback, | 41 const base::Closure& callback, |
| 40 const base::Closure& error_callback) override; | 42 const base::Closure& error_callback) override; |
| 41 void EnumerateAutoMountableDevices( | 43 void EnumerateAutoMountableDevices( |
| 42 const EnumerateAutoMountableDevicesCallback& callback, | 44 const EnumerateAutoMountableDevicesCallback& callback, |
| 43 const base::Closure& error_callback) override; | 45 const base::Closure& error_callback) override; |
| 44 void EnumerateMountEntries(const EnumerateMountEntriesCallback& callback, | 46 void EnumerateMountEntries(const EnumerateMountEntriesCallback& callback, |
| 45 const base::Closure& error_callback) override; | 47 const base::Closure& error_callback) override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 int format_call_count_; | 129 int format_call_count_; |
| 128 std::string last_format_device_path_; | 130 std::string last_format_device_path_; |
| 129 std::string last_format_filesystem_; | 131 std::string last_format_filesystem_; |
| 130 bool format_success_; | 132 bool format_success_; |
| 131 std::set<base::FilePath> mounted_paths_; | 133 std::set<base::FilePath> mounted_paths_; |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 } // namespace chromeos | 136 } // namespace chromeos |
| 135 | 137 |
| 136 #endif // CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ | 138 #endif // CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ |
| OLD | NEW |