Chromium Code Reviews| 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 StorageInfo(const std::string& id, | 15 StorageInfo(const std::string& id, |
|
vandebo (ex-Chrome)
2013/03/06 23:39:12
Is this one staying just for the transition or for
Greg Billock
2013/03/07 21:06:07
There's a ton of usage. I'm not sure right now. Li
| |
| 16 const string16& device_name, | 16 const string16& device_name, |
| 17 const base::FilePath::StringType& device_location); | 17 const base::FilePath::StringType& device_location); |
| 18 StorageInfo(const std::string& id, | |
| 19 const string16& device_name, | |
| 20 const base::FilePath::StringType& device_location, | |
| 21 const string16& label, | |
| 22 const string16& vendor, | |
| 23 const string16& model, | |
| 24 uint64 size_in_bytes); | |
| 18 ~StorageInfo(); | 25 ~StorageInfo(); |
| 19 | 26 |
| 20 // Unique device id - persists between device attachments. | 27 // Unique device id - persists between device attachments. |
| 21 // This is the string that should be used as the label for a particular | 28 // 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 | 29 // storage device when interacting with the API. Clients should treat |
| 23 // this as an opaque string. | 30 // this as an opaque string. |
| 24 std::string device_id; | 31 std::string device_id; |
| 25 | 32 |
| 26 // Human readable removable storage device name. | 33 // Human readable removable storage device name. |
| 27 string16 name; | 34 string16 name; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 42 string16 model_name; | 49 string16 model_name; |
| 43 | 50 |
| 44 // Size of the removable device in bytes. | 51 // Size of the removable device in bytes. |
| 45 // Zero if not collected or unknown. | 52 // Zero if not collected or unknown. |
| 46 uint64 total_size_in_bytes; | 53 uint64 total_size_in_bytes; |
| 47 }; | 54 }; |
| 48 | 55 |
| 49 } // namespace chrome | 56 } // namespace chrome |
| 50 | 57 |
| 51 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ | 58 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ |
| OLD | NEW |