diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 02:53:50 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 02:53:50 +0000 |
commit | aab7847ca789eb9ebb0f34bf61a6e4dd4c8769ea (patch) | |
tree | b2c76bc6112a956f59a01cf74a7b89b3d5943a73 /base/system_monitor/system_monitor.h | |
parent | 7d2f9a3e37b0d59b790bd48e7e8bb2c3bae8613b (diff) | |
download | chromium_src-aab7847ca789eb9ebb0f34bf61a6e4dd4c8769ea.zip chromium_src-aab7847ca789eb9ebb0f34bf61a6e4dd4c8769ea.tar.gz chromium_src-aab7847ca789eb9ebb0f34bf61a6e4dd4c8769ea.tar.bz2 |
SystemMonitor: Pull device type into the device id
Add a utility class to create an split device ids as well as to get some information about devices.
BUG=NONE
Review URL: https://chromiumcodereview.appspot.com/10829384
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152496 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/system_monitor/system_monitor.h')
-rw-r--r-- | base/system_monitor/system_monitor.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/base/system_monitor/system_monitor.h b/base/system_monitor/system_monitor.h index 5f4d42d..7461b7a 100644 --- a/base/system_monitor/system_monitor.h +++ b/base/system_monitor/system_monitor.h @@ -58,16 +58,9 @@ class BASE_EXPORT SystemMonitor { DEVTYPE_UNKNOWN, // Other devices. }; - // Type of location data to identify a currently attached media device. - enum MediaDeviceType { - TYPE_PATH, // FilePath::StringType, e.g. a mount point. - TYPE_MTP, // (W)string to locate a MTP device, e.g. its usb bus/port. - }; - struct BASE_EXPORT MediaDeviceInfo { MediaDeviceInfo(const std::string& id, const string16& device_name, - MediaDeviceType device_type, const FilePath::StringType& device_location); // Unique media device id - persists between device attachments. @@ -76,9 +69,6 @@ class BASE_EXPORT SystemMonitor { // Human readable media device name. string16 name; - // Media device type. - MediaDeviceType type; - // Current attached media device location. FilePath::StringType location; }; @@ -148,7 +138,6 @@ class BASE_EXPORT SystemMonitor { // is triggered. virtual void OnMediaDeviceAttached(const std::string& id, const string16& name, - MediaDeviceType type, const FilePath::StringType& location) {} virtual void OnMediaDeviceDetached(const std::string& id) {} @@ -183,7 +172,6 @@ class BASE_EXPORT SystemMonitor { void ProcessDevicesChanged(DeviceType device_type); void ProcessMediaDeviceAttached(const std::string& id, const string16& name, - MediaDeviceType type, const FilePath::StringType& location); void ProcessMediaDeviceDetached(const std::string& id); @@ -209,7 +197,6 @@ class BASE_EXPORT SystemMonitor { void NotifyDevicesChanged(DeviceType device_type); void NotifyMediaDeviceAttached(const std::string& id, const string16& name, - MediaDeviceType type, const FilePath::StringType& data); void NotifyMediaDeviceDetached(const std::string& id); void NotifyPowerStateChange(); |