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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_
6 #define CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_
8 #include "base/files/file_path.h"
9 #include "base/string16.h"
15 StorageInfo(const std::string
& id
,
16 const string16
& device_name
,
17 const base::FilePath::StringType
& device_location
,
18 const string16
& label
,
19 const string16
& vendor
,
20 const string16
& model
,
21 uint64 size_in_bytes
);
24 // Unique device id - persists between device attachments.
25 // This is the string that should be used as the label for a particular
26 // storage device when interacting with the API. Clients should treat
27 // this as an opaque string.
28 std::string device_id
;
30 // Human readable removable storage device name.
33 // Current attached removable storage device location.
34 base::FilePath::StringType location
;
36 // Label given to this storage device by the user.
37 // May be empty if not found or the device is unlabeled.
38 string16 storage_label
;
40 // Vendor name for the removable device. (Human readable)
41 // May be empty if not collected.
44 // Model name for the removable device. (Human readable)
45 // May be empty if not collected.
48 // Size of the removable device in bytes.
49 // Zero if not collected or unknown.
50 uint64 total_size_in_bytes
;
55 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_