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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 // A callback to handle mount events. | 171 // A callback to handle mount events. |
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 // The argument |source_format| can be empty, in which case the source format | |
182 // is auto-detected. | |
satorux1
2012/04/24 22:54:15
please also document valid values for this. maybe
hshi
2012/04/24 23:00:04
The list of valid values is not small. According t
satorux1
2012/04/24 23:01:29
Then, I'd use ".zip" as an example, and add a refe
Ben Chan
2012/04/24 23:04:16
They are all supported by CrOS regardless of platf
hshi
2012/04/24 23:10:14
Done with emphasis on the fact that extension shou
| |
181 virtual void Mount(const std::string& source_path, | 183 virtual void Mount(const std::string& source_path, |
184 const std::string& source_format, | |
182 MountType type, | 185 MountType type, |
183 const MountCallback& callback, | 186 const MountCallback& callback, |
184 const ErrorCallback& error_callback) = 0; | 187 const ErrorCallback& error_callback) = 0; |
185 | 188 |
186 // Calls Unmount method. |callback| is called after the method call succeeds, | 189 // Calls Unmount method. |callback| is called after the method call succeeds, |
187 // otherwise, |error_callback| is called. | 190 // otherwise, |error_callback| is called. |
188 virtual void Unmount(const std::string& device_path, | 191 virtual void Unmount(const std::string& device_path, |
189 const UnmountCallback& callback, | 192 const UnmountCallback& callback, |
190 const ErrorCallback& error_callback) = 0; | 193 const ErrorCallback& error_callback) = 0; |
191 | 194 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 // Create() should be used instead. | 227 // Create() should be used instead. |
225 CrosDisksClient(); | 228 CrosDisksClient(); |
226 | 229 |
227 private: | 230 private: |
228 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); | 231 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); |
229 }; | 232 }; |
230 | 233 |
231 } // namespace chromeos | 234 } // namespace chromeos |
232 | 235 |
233 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ | 236 #endif // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ |
OLD | NEW |