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

Unified Diff: chrome/browser/storage_monitor/storage_monitor.h

Issue 16186002: Refine StorageMonitor storage device getter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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/storage_monitor/storage_monitor.h
diff --git a/chrome/browser/storage_monitor/storage_monitor.h b/chrome/browser/storage_monitor/storage_monitor.h
index 7eab0b7743b925d9b3fffa009623e946c32b496d..ccfe82a2c74710a57f1655a0ceec3d8b58d1c0dc 100644
--- a/chrome/browser/storage_monitor/storage_monitor.h
+++ b/chrome/browser/storage_monitor/storage_monitor.h
@@ -67,7 +67,7 @@ class StorageMonitor {
// Initialize the storage monitor. The provided callback, if non-null,
// will be called when initialization is complete. If initialization has
// already completed, this callback will be invoked within the calling stack.
- // Before the callback is run, calls to |GetAttachedStorage| and
+ // Before the callback is run, calls to |GetAttachedRemovableStorages| and
// |GetStorageInfoForPath| may not return the correct results. In addition,
// registered observers will not be notified on device attachment/detachment.
// Should be invoked on the UI thread; callbacks will be run on the UI thread.
@@ -102,8 +102,13 @@ class StorageMonitor {
media_transfer_protocol_manager() = 0;
#endif
+ // Returns the meta information for all available storages on the system,
wrong vandebo 2013/05/29 15:16:16 We probably don't want to introduce a second metho
Greg Billock 2013/05/29 17:58:19 We've discussed making the method return all known
+ // including fixed and removable storage. It may return an empty vector
+ // if the storage metadata retrieval is not completed yet.
+ virtual std::vector<StorageInfo> GetAllAvailableStorages() const;
+
// Returns information for attached removable storage.
- std::vector<StorageInfo> GetAttachedStorage() const;
+ std::vector<StorageInfo> GetAttachedRemovableStorages() const;
void AddObserver(RemovableStorageObserver* obs);
void RemoveObserver(RemovableStorageObserver* obs);

Powered by Google App Engine
This is Rietveld 408576698