| OLD | NEW |
| 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_MONITOR_H_ | 5 #ifndef COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_H_ |
| 6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_H_ | 6 #define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // On success, returns true and fills in |device_location| with device | 113 // On success, returns true and fills in |device_location| with device |
| 114 // interface details and |storage_object_id| with the string ID that | 114 // interface details and |storage_object_id| with the string ID that |
| 115 // uniquely identifies the object on the device. This ID need not be | 115 // uniquely identifies the object on the device. This ID need not be |
| 116 // persistent across sessions. | 116 // persistent across sessions. |
| 117 virtual bool GetMTPStorageInfoFromDeviceId( | 117 virtual bool GetMTPStorageInfoFromDeviceId( |
| 118 const std::string& storage_device_id, | 118 const std::string& storage_device_id, |
| 119 base::string16* device_location, | 119 base::string16* device_location, |
| 120 base::string16* storage_object_id) const = 0; | 120 base::string16* storage_object_id) const = 0; |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 #if defined(OS_LINUX) | 123 #if defined(OS_CHROMEOS) |
| 124 virtual device::MediaTransferProtocolManager* | 124 virtual device::MediaTransferProtocolManager* |
| 125 media_transfer_protocol_manager() = 0; | 125 media_transfer_protocol_manager() = 0; |
| 126 #endif | 126 #endif |
| 127 | 127 |
| 128 // Returns information for all known storages on the system, | 128 // Returns information for all known storages on the system, |
| 129 // including fixed and removable storages. | 129 // including fixed and removable storages. |
| 130 std::vector<StorageInfo> GetAllAvailableStorages() const; | 130 std::vector<StorageInfo> GetAllAvailableStorages() const; |
| 131 | 131 |
| 132 void AddObserver(RemovableStorageObserver* obs); | 132 void AddObserver(RemovableStorageObserver* obs); |
| 133 void RemoveObserver(RemovableStorageObserver* obs); | 133 void RemoveObserver(RemovableStorageObserver* obs); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // Map of all known storage devices,including fixed and removable storages. | 187 // Map of all known storage devices,including fixed and removable storages. |
| 188 StorageMap storage_map_; | 188 StorageMap storage_map_; |
| 189 | 189 |
| 190 std::unique_ptr<TransientDeviceIds> transient_device_ids_; | 190 std::unique_ptr<TransientDeviceIds> transient_device_ids_; |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 } // namespace storage_monitor | 193 } // namespace storage_monitor |
| 194 | 194 |
| 195 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_H_ | 195 #endif // COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_H_ |
| OLD | NEW |