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

Side by Side Diff: components/storage_monitor/storage_info.h

Issue 168293002: StorageMonitor: Make StorageInfo a class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase after move Created 6 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 | « components/storage_monitor/media_storage_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/storage_monitor/media_storage_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698