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

Unified Diff: chrome/browser/intents/device_attached_intent_source.h

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Device intent source (media detach notification) Created 8 years, 5 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/intents/device_attached_intent_source.h
diff --git a/chrome/browser/intents/device_attached_intent_source.h b/chrome/browser/intents/device_attached_intent_source.h
index 96fd51caa5c3a458ad63c085a42be1fb76847d3a..f8c914c0b4988e5ae7f8541ec5b9e35e3cf5e05e 100644
--- a/chrome/browser/intents/device_attached_intent_source.h
+++ b/chrome/browser/intents/device_attached_intent_source.h
@@ -33,11 +33,16 @@ class DeviceAttachedIntentSource
const string16& name,
base::SystemMonitor::MediaDeviceType type,
const FilePath::StringType& location) OVERRIDE;
+ virtual void OnMediaDeviceDetached(const std::string& id) OVERRIDE;
private:
+ typedef std::map<std::string, base::SystemMonitor::MediaDeviceInfo>
+ DeviceIdToInfoMap;
kmadhusu 2012/08/01 23:39:35 thestig@: Since the detach notification didn't ha
+
// Weak pointer to browser to which intents will be dispatched.
Browser* browser_;
content::WebContentsDelegate* delegate_;
+ DeviceIdToInfoMap device_id_map_;
DISALLOW_COPY_AND_ASSIGN(DeviceAttachedIntentSource);
};

Powered by Google App Engine
This is Rietveld 408576698