Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698