diff options
author | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 20:53:58 +0000 |
---|---|---|
committer | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 20:53:58 +0000 |
commit | ca553c1164356a2bf9b98866ff3d0767d4b34723 (patch) | |
tree | 7fdbbde2c30b6af56769dba016ac19ffef6a6bca /base/system_monitor/system_monitor.h | |
parent | 6596cf7da0733edb63ab1cc217d039329cc8a7b6 (diff) | |
download | chromium_src-ca553c1164356a2bf9b98866ff3d0767d4b34723.zip chromium_src-ca553c1164356a2bf9b98866ff3d0767d4b34723.tar.gz chromium_src-ca553c1164356a2bf9b98866ff3d0767d4b34723.tar.bz2 |
Remove removable storage notifications from base System Monitor. (part 3)
Previous changes have placed these notifications in chrome/browser/system_monitor.
The storage and device interfaces have been decoupled in all consumers.
R=vandebo@chromium.org
BUG=149059
Review URL: https://chromiumcodereview.appspot.com/11852029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/system_monitor/system_monitor.h')
-rw-r--r-- | base/system_monitor/system_monitor.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/base/system_monitor/system_monitor.h b/base/system_monitor/system_monitor.h index ea95da8..6620d27 100644 --- a/base/system_monitor/system_monitor.h +++ b/base/system_monitor/system_monitor.h @@ -11,9 +11,6 @@ #include "base/base_export.h" #include "base/basictypes.h" -#include "base/file_path.h" -#include "base/string16.h" -#include "base/synchronization/lock.h" #include "build/build_config.h" // Windows HiRes timers drain the battery faster so we need to know the battery @@ -59,22 +56,6 @@ class BASE_EXPORT SystemMonitor { DEVTYPE_UNKNOWN, // Other devices. }; - struct BASE_EXPORT RemovableStorageInfo { - RemovableStorageInfo(); - RemovableStorageInfo(const std::string& id, - const string16& device_name, - const FilePath::StringType& device_location); - - // Unique device id - persists between device attachments. - std::string device_id; - - // Human readable removable storage device name. - string16 name; - - // Current attached removable storage device location. - FilePath::StringType location; - }; - // Create SystemMonitor. Only one SystemMonitor instance per application // is allowed. SystemMonitor(); @@ -95,9 +76,6 @@ class BASE_EXPORT SystemMonitor { #endif // OS_IOS #endif // OS_MACOSX - // Returns information for attached removable storage. - std::vector<RemovableStorageInfo> GetAttachedRemovableStorage() const; - // // Power-related APIs // @@ -136,14 +114,6 @@ class BASE_EXPORT SystemMonitor { // This is only implemented on Windows currently. virtual void OnDevicesChanged(DeviceType device_type) {} - // When a removable storage device is attached or detached, one of these - // two events is triggered. - virtual void OnRemovableStorageAttached( - const std::string& id, - const string16& name, - const FilePath::StringType& location) {} - virtual void OnRemovableStorageDetached(const std::string& id) {} - protected: virtual ~DevicesChangedObserver() {} }; @@ -176,15 +146,8 @@ class BASE_EXPORT SystemMonitor { // Cross-platform handling of a device change event. void ProcessDevicesChanged(DeviceType device_type); - void ProcessRemovableStorageAttached(const std::string& id, - const string16& name, - const FilePath::StringType& location); - void ProcessRemovableStorageDetached(const std::string& id); private: - // Mapping of unique device id to device info tuple. - typedef std::map<std::string, RemovableStorageInfo> RemovableStorageMap; - #if defined(OS_MACOSX) void PlatformInit(); void PlatformDestroy(); @@ -201,10 +164,6 @@ class BASE_EXPORT SystemMonitor { // Functions to trigger notifications. void NotifyDevicesChanged(DeviceType device_type); - void NotifyRemovableStorageAttached(const std::string& id, - const string16& name, - const FilePath::StringType& location); - void NotifyRemovableStorageDetached(const std::string& id); void NotifyPowerStateChange(); void NotifySuspend(); void NotifyResume(); @@ -224,11 +183,6 @@ class BASE_EXPORT SystemMonitor { std::vector<id> notification_observers_; #endif - // For manipulating removable_storage_map_ structure. - mutable base::Lock removable_storage_lock_; - // Map of all the attached removable storage devices. - RemovableStorageMap removable_storage_map_; - DISALLOW_COPY_AND_ASSIGN(SystemMonitor); }; |