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

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

Issue 12208079: Move TransientDeviceId from MediFileSystemRegistry to RemovableStorageNotifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Abstract a bit better Created 7 years, 10 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/removable_storage_notifications.h
diff --git a/chrome/browser/system_monitor/removable_storage_notifications.h b/chrome/browser/system_monitor/removable_storage_notifications.h
index e916dea83fdc0ed3f1fadb65729e269f983a5234..f89d9a322642f13789befbeff97e36cd1a10137e 100644
--- a/chrome/browser/system_monitor/removable_storage_notifications.h
+++ b/chrome/browser/system_monitor/removable_storage_notifications.h
@@ -18,6 +18,7 @@ namespace chrome {
class MediaFileSystemRegistryTest;
class RemovableStorageObserver;
+class TransientDeviceIds;
// Base class for platform-specific instances watching for removable storage
// attachments/detachments.
@@ -83,6 +84,8 @@ class RemovableStorageNotifications {
void AddObserver(RemovableStorageObserver* obs);
void RemoveObserver(RemovableStorageObserver* obs);
+ uint64 GetTransientIdForDeviceId(const std::string& device_id);
+
protected:
RemovableStorageNotifications();
virtual ~RemovableStorageNotifications();
@@ -114,6 +117,8 @@ class RemovableStorageNotifications {
// Map of all the attached removable storage devices.
RemovableStorageMap storage_map_;
+
+ scoped_ptr<TransientDeviceIds> transient_device_ids_;
Lei Zhang 2013/02/12 16:48:01 Does this need to be a scoped_ptr?
vandebo (ex-Chrome) 2013/02/12 21:40:57 No, it's just a scoped_ptr to reduce the number of
};
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698