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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 const std::string& mount_label, | 26 const std::string& mount_label, |
27 const base::Closure& callback, | 27 const base::Closure& callback, |
28 const base::Closure& error_callback) OVERRIDE; | 28 const base::Closure& error_callback) OVERRIDE; |
29 virtual void Unmount(const std::string& device_path, | 29 virtual void Unmount(const std::string& device_path, |
30 UnmountOptions options, | 30 UnmountOptions options, |
31 const base::Closure& callback, | 31 const base::Closure& callback, |
32 const base::Closure& error_callback) OVERRIDE; | 32 const base::Closure& error_callback) OVERRIDE; |
33 virtual void EnumerateAutoMountableDevices( | 33 virtual void EnumerateAutoMountableDevices( |
34 const EnumerateAutoMountableDevicesCallback& callback, | 34 const EnumerateAutoMountableDevicesCallback& callback, |
35 const base::Closure& error_callback) OVERRIDE; | 35 const base::Closure& error_callback) OVERRIDE; |
| 36 virtual void EnumerateMountEntries( |
| 37 const EnumerateMountEntriesCallback& callback, |
| 38 const base::Closure& error_callback) OVERRIDE; |
36 virtual void Format(const std::string& device_path, | 39 virtual void Format(const std::string& device_path, |
37 const std::string& filesystem, | 40 const std::string& filesystem, |
38 const base::Closure& callback, | 41 const base::Closure& callback, |
39 const base::Closure& error_callback) OVERRIDE; | 42 const base::Closure& error_callback) OVERRIDE; |
40 virtual void GetDeviceProperties( | 43 virtual void GetDeviceProperties( |
41 const std::string& device_path, | 44 const std::string& device_path, |
42 const GetDevicePropertiesCallback& callback, | 45 const GetDevicePropertiesCallback& callback, |
43 const base::Closure& error_callback) OVERRIDE; | 46 const base::Closure& error_callback) OVERRIDE; |
44 virtual void SetMountEventHandler( | 47 virtual void SetMountEventHandler( |
45 const MountEventHandler& mount_event_handler) OVERRIDE; | 48 const MountEventHandler& mount_event_handler) OVERRIDE; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 base::Closure unmount_listener_; | 120 base::Closure unmount_listener_; |
118 int format_call_count_; | 121 int format_call_count_; |
119 std::string last_format_device_path_; | 122 std::string last_format_device_path_; |
120 std::string last_format_filesystem_; | 123 std::string last_format_filesystem_; |
121 bool format_success_; | 124 bool format_success_; |
122 }; | 125 }; |
123 | 126 |
124 } // namespace chromeos | 127 } // namespace chromeos |
125 | 128 |
126 #endif // CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ | 129 #endif // CHROMEOS_DBUS_FAKE_CROS_DISKS_CLIENT_H_ |
OLD | NEW |