| 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/string16.h" | 9 #include "base/string16.h" |
| 10 | 10 |
| 11 namespace chrome { | 11 namespace chrome { |
| 12 | 12 |
| 13 struct StorageInfo { | 13 struct StorageInfo { |
| 14 StorageInfo(); | 14 StorageInfo(); |
| 15 // TODO(gbillock): Deprecate and remove this constructor. |
| 15 StorageInfo(const std::string& id, | 16 StorageInfo(const std::string& id, |
| 16 const string16& device_name, | 17 const string16& device_name, |
| 17 const base::FilePath::StringType& device_location); | 18 const base::FilePath::StringType& device_location); |
| 19 StorageInfo(const std::string& id, |
| 20 const string16& device_name, |
| 21 const base::FilePath::StringType& device_location, |
| 22 const string16& label, |
| 23 const string16& vendor, |
| 24 const string16& model, |
| 25 uint64 size_in_bytes); |
| 18 ~StorageInfo(); | 26 ~StorageInfo(); |
| 19 | 27 |
| 20 // Unique device id - persists between device attachments. | 28 // Unique device id - persists between device attachments. |
| 21 // This is the string that should be used as the label for a particular | 29 // This is the string that should be used as the label for a particular |
| 22 // storage device when interacting with the API. Clients should treat | 30 // storage device when interacting with the API. Clients should treat |
| 23 // this as an opaque string. | 31 // this as an opaque string. |
| 24 std::string device_id; | 32 std::string device_id; |
| 25 | 33 |
| 26 // Human readable removable storage device name. | 34 // Human readable removable storage device name. |
| 27 string16 name; | 35 string16 name; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 42 string16 model_name; | 50 string16 model_name; |
| 43 | 51 |
| 44 // Size of the removable device in bytes. | 52 // Size of the removable device in bytes. |
| 45 // Zero if not collected or unknown. | 53 // Zero if not collected or unknown. |
| 46 uint64 total_size_in_bytes; | 54 uint64 total_size_in_bytes; |
| 47 }; | 55 }; |
| 48 | 56 |
| 49 } // namespace chrome | 57 } // namespace chrome |
| 50 | 58 |
| 51 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ | 59 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ |
| OLD | NEW |