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_DBUS_CROS_DISKS_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ |
6 #define CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 // The first argument is the event type. | 172 // The first argument is the event type. |
173 // The second argument is the device path. | 173 // The second argument is the device path. |
174 typedef base::Callback<void(MountEventType, const std::string&) | 174 typedef base::Callback<void(MountEventType, const std::string&) |
175 > MountEventHandler; | 175 > MountEventHandler; |
176 | 176 |
177 virtual ~CrosDisksClient(); | 177 virtual ~CrosDisksClient(); |
178 | 178 |
179 // Calls Mount method. |callback| is called after the method call succeeds, | 179 // Calls Mount method. |callback| is called after the method call succeeds, |
180 // otherwise, |error_callback| is called. | 180 // otherwise, |error_callback| is called. |
181 virtual void Mount(const std::string& source_path, | 181 virtual void Mount(const std::string& source_path, |
182 const std::string& source_format, | |
satorux1
2012/04/24 20:46:53
We allow source_format to be empty, and in that ca
| |
182 MountType type, | 183 MountType type, |
183 const MountCallback& callback, | 184 const MountCallback& callback, |
184 const ErrorCallback& error_callback) = 0; | 185 const ErrorCallback& error_callback) = 0; |
185 | 186 |
186 // Calls Unmount method. |callback| is called after the method call succeeds, | 187 // Calls Unmount method. |callback| is called after the method call succeeds, |
187 // otherwise, |error_callback| is called. | 188 // otherwise, |error_callback| is called. |
188 virtual void Unmount(const std::string& device_path, | 189 virtual void Unmount(const std::string& device_path, |
189 const UnmountCallback& callback, | 190 const UnmountCallback& callback, |
190 const ErrorCallback& error_callback) = 0; | 191 const ErrorCallback& error_callback) = 0; |
191 | 192 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 // Create() should be used instead. | 225 // Create() should be used instead. |
225 CrosDisksClient(); | 226 CrosDisksClient(); |
226 | 227 |
227 private: | 228 private: |
228 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); | 229 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); |
229 }; | 230 }; |
230 | 231 |
231 } // namespace chromeos | 232 } // namespace chromeos |
232 | 233 |
233 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ | 234 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ |
OLD | NEW |