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 CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ | 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ |
6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ | 6 #define CHROME_BROWSER_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 namespace chrome { | |
12 | |
13 struct StorageInfo { | 11 struct StorageInfo { |
14 public: | 12 public: |
15 enum Type { | 13 enum Type { |
16 // A removable mass storage device with a DCIM directory. | 14 // A removable mass storage device with a DCIM directory. |
17 REMOVABLE_MASS_STORAGE_WITH_DCIM, | 15 REMOVABLE_MASS_STORAGE_WITH_DCIM, |
18 // A removable mass storage device without a DCIM directory. | 16 // A removable mass storage device without a DCIM directory. |
19 REMOVABLE_MASS_STORAGE_NO_DCIM, | 17 REMOVABLE_MASS_STORAGE_NO_DCIM, |
20 // A fixed mass storage device. | 18 // A fixed mass storage device. |
21 FIXED_MASS_STORAGE, | 19 FIXED_MASS_STORAGE, |
22 // A MTP or PTP device. | 20 // A MTP or PTP device. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 101 |
104 // Model name for the removable device. (Human readable) | 102 // Model name for the removable device. (Human readable) |
105 // May be empty if not collected. | 103 // May be empty if not collected. |
106 string16 model_name_; | 104 string16 model_name_; |
107 | 105 |
108 // Size of the removable device in bytes. | 106 // Size of the removable device in bytes. |
109 // Zero if not collected or unknown. | 107 // Zero if not collected or unknown. |
110 uint64 total_size_in_bytes_; | 108 uint64 total_size_in_bytes_; |
111 }; | 109 }; |
112 | 110 |
113 } // namespace chrome | |
114 | |
115 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ | 111 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ |
OLD | NEW |