Chromium Code Reviews| Index: chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h |
| diff --git a/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h b/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h |
| index fd40f1f01aae7fe5673011f2eda699c543a71359..bd75a1d45d1d92686f6d7f3e1dd5661bc9b587df 100644 |
| --- a/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h |
| +++ b/chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h |
| @@ -40,6 +40,10 @@ class MediaTransferProtocolDeviceObserverLinux |
| const FilePath& path, |
| RemovableStorageNotifications::StorageInfo* storage_info) const; |
| + // Set the volume notifications object to be used when new |
| + // MTP devices are found. |
| + void SetNotifications(RemovableStorageNotifications::Receiver* notifications); |
|
vandebo (ex-Chrome)
2013/01/31 23:51:29
Pass in constructor?
Greg Billock
2013/02/01 18:28:42
see above.
On 2013/01/31 23:51:29, vandebo wrote:
|
| + |
| protected: |
| // Only used in unit tests. |
| explicit MediaTransferProtocolDeviceObserverLinux( |
| @@ -65,6 +69,9 @@ class MediaTransferProtocolDeviceObserverLinux |
| // handler for unit testing. |
| GetStorageInfoFunc get_storage_info_func_; |
| + // The notifications object to use to signal newly attached devices. |
|
vandebo (ex-Chrome)
2013/01/31 23:51:29
Note lifetime and todo to update when it changes.
Greg Billock
2013/02/01 18:28:43
Done.
|
| + RemovableStorageNotifications::Receiver* notifications_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(MediaTransferProtocolDeviceObserverLinux); |
| }; |