Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: chrome/browser/chromeos/dbus/cros_disks_client.h

Issue 9019002: [CrosDisksClient] Determine device type from DeviceMediaType property sent by cros-disks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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_DBUS_CROS_DISKS_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 6 #define CHROME_BROWSER_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>
11 11
(...skipping 10 matching lines...) Expand all
22 // Enum describing types of mount used by cros-disks. 22 // Enum describing types of mount used by cros-disks.
23 enum MountType { 23 enum MountType {
24 MOUNT_TYPE_INVALID, 24 MOUNT_TYPE_INVALID,
25 MOUNT_TYPE_DEVICE, 25 MOUNT_TYPE_DEVICE,
26 MOUNT_TYPE_ARCHIVE, 26 MOUNT_TYPE_ARCHIVE,
27 MOUNT_TYPE_NETWORK_STORAGE, 27 MOUNT_TYPE_NETWORK_STORAGE,
28 }; 28 };
29 29
30 // Type of device. 30 // Type of device.
31 enum DeviceType { 31 enum DeviceType {
32 FLASH, 32 DEVICE_TYPE_UNKNOWN,
33 HDD, 33 DEVICE_TYPE_USB, // USB stick.
34 OPTICAL, 34 DEVICE_TYPE_SD, // SD card.
35 UNDEFINED, 35 DEVICE_TYPE_OPTICAL_DISC, // e.g. DVD.
36 DEVICE_TYPE_MOBILE // Storage on a mobile device (e.g. Android).
36 }; 37 };
37 38
38 // Mount error code used by cros-disks. 39 // Mount error code used by cros-disks.
39 enum MountError { 40 enum MountError {
40 MOUNT_ERROR_NONE = 0, 41 MOUNT_ERROR_NONE = 0,
41 MOUNT_ERROR_UNKNOWN = 1, 42 MOUNT_ERROR_UNKNOWN = 1,
42 MOUNT_ERROR_INTERNAL = 2, 43 MOUNT_ERROR_INTERNAL = 2,
43 MOUNT_ERROR_UNKNOWN_FILESYSTEM = 101, 44 MOUNT_ERROR_UNKNOWN_FILESYSTEM = 101,
44 MOUNT_ERROR_UNSUPORTED_FILESYSTEM = 102, 45 MOUNT_ERROR_UNSUPORTED_FILESYSTEM = 102,
45 MOUNT_ERROR_INVALID_ARCHIVE = 201, 46 MOUNT_ERROR_INVALID_ARCHIVE = 201,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Create() should be used instead. 218 // Create() should be used instead.
218 CrosDisksClient(); 219 CrosDisksClient();
219 220
220 private: 221 private:
221 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient); 222 DISALLOW_COPY_AND_ASSIGN(CrosDisksClient);
222 }; 223 };
223 224
224 } // namespace chromeos 225 } // namespace chromeos
225 226
226 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_ 227 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/dbus/cros_disks_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698