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 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 static bool IsMediaDevice(const std::string& device_id); | 55 static bool IsMediaDevice(const std::string& device_id); |
56 | 56 |
57 // Looks inside |device_id| to determine if it is a media device | 57 // Looks inside |device_id| to determine if it is a media device |
58 // (type isn't FIXED_MASS_STORAGE). | 58 // (type isn't FIXED_MASS_STORAGE). |
59 static bool IsRemovableDevice(const std::string& device_id); | 59 static bool IsRemovableDevice(const std::string& device_id); |
60 | 60 |
61 // Looks inside |device_id| to determine if it is a mass storage device | 61 // Looks inside |device_id| to determine if it is a mass storage device |
62 // (type isn't MTP_OR_PTP). | 62 // (type isn't MTP_OR_PTP). |
63 static bool IsMassStorageDevice(const std::string& device_id); | 63 static bool IsMassStorageDevice(const std::string& device_id); |
64 | 64 |
| 65 static bool IsITunesDevice(const std::string& device_id); |
| 66 |
| 67 static bool IsPicasaDevice(const std::string& device_id); |
| 68 |
65 // Unique device id - persists between device attachments. | 69 // Unique device id - persists between device attachments. |
66 // This is the string that should be used as the label for a particular | 70 // This is the string that should be used as the label for a particular |
67 // storage device when interacting with the API. Clients should treat | 71 // storage device when interacting with the API. Clients should treat |
68 // this as an opaque string. | 72 // this as an opaque string. |
69 std::string device_id; | 73 std::string device_id; |
70 | 74 |
71 // Human readable removable storage device name. | 75 // Human readable removable storage device name. |
72 string16 name; | 76 string16 name; |
73 | 77 |
74 // Current attached removable storage device location. | 78 // Current attached removable storage device location. |
(...skipping 12 matching lines...) Expand all Loading... |
87 string16 model_name; | 91 string16 model_name; |
88 | 92 |
89 // Size of the removable device in bytes. | 93 // Size of the removable device in bytes. |
90 // Zero if not collected or unknown. | 94 // Zero if not collected or unknown. |
91 uint64 total_size_in_bytes; | 95 uint64 total_size_in_bytes; |
92 }; | 96 }; |
93 | 97 |
94 } // namespace chrome | 98 } // namespace chrome |
95 | 99 |
96 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ | 100 #endif // CHROME_BROWSER_STORAGE_MONITOR_STORAGE_INFO_H_ |
OLD | NEW |