OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_STORAGE_MONITOR_STORAGE_INFO_H_ | 5 #ifndef COMPONENTS_STORAGE_MONITOR_STORAGE_INFO_H_ |
6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_INFO_H_ | 6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_INFO_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 | 10 |
11 struct StorageInfo { | 11 class StorageInfo { |
12 public: | 12 public: |
13 enum Type { | 13 enum Type { |
14 // A removable mass storage device with a DCIM directory. | 14 // A removable mass storage device with a DCIM directory. |
15 REMOVABLE_MASS_STORAGE_WITH_DCIM, | 15 REMOVABLE_MASS_STORAGE_WITH_DCIM, |
16 // A removable mass storage device without a DCIM directory. | 16 // A removable mass storage device without a DCIM directory. |
17 REMOVABLE_MASS_STORAGE_NO_DCIM, | 17 REMOVABLE_MASS_STORAGE_NO_DCIM, |
18 // A fixed mass storage device. | 18 // A fixed mass storage device. |
19 FIXED_MASS_STORAGE, | 19 FIXED_MASS_STORAGE, |
20 // A MTP or PTP device. | 20 // A MTP or PTP device. |
21 MTP_OR_PTP, | 21 MTP_OR_PTP, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Model name for the removable device. (Human readable) | 106 // Model name for the removable device. (Human readable) |
107 // May be empty if not collected. | 107 // May be empty if not collected. |
108 base::string16 model_name_; | 108 base::string16 model_name_; |
109 | 109 |
110 // Size of the removable device in bytes. | 110 // Size of the removable device in bytes. |
111 // Zero if not collected or unknown. | 111 // Zero if not collected or unknown. |
112 uint64 total_size_in_bytes_; | 112 uint64 total_size_in_bytes_; |
113 }; | 113 }; |
114 | 114 |
115 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_INFO_H_ | 115 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_INFO_H_ |
OLD | NEW |