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

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

Issue 10780023: Change base::SystemMonitor's media device functions to take a type and string16 instead of a FilePa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros 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
===================================================================
--- chrome/browser/intents/device_attached_intent_source.h (revision 147551)
+++ chrome/browser/intents/device_attached_intent_source.h (working copy)
@@ -7,7 +7,6 @@
#include "base/system_monitor/system_monitor.h"
-class FilePath;
class Browser;
namespace content {
@@ -24,20 +23,23 @@
class DeviceAttachedIntentSource
: public base::SystemMonitor::DevicesChangedObserver {
public:
- explicit DeviceAttachedIntentSource(Browser* browser,
- content::WebContentsDelegate* delegate);
+ DeviceAttachedIntentSource(Browser* browser,
+ content::WebContentsDelegate* delegate);
virtual ~DeviceAttachedIntentSource();
- // DevicesChangedObserver
+ // base::SystemMonitor::DevicesChangedObserver implementation.
virtual void OnMediaDeviceAttached(
- const base::SystemMonitor::DeviceIdType& id,
- const std::string& name,
- const FilePath& path) OVERRIDE;
+ const std::string& id,
+ const string16& name,
+ base::SystemMonitor::MediaDeviceType type,
+ const FilePath::StringType& location) OVERRIDE;
private:
// Weak pointer to browser to which intents will be dispatched.
Browser* browser_;
content::WebContentsDelegate* delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(DeviceAttachedIntentSource);
};
#endif // CHROME_BROWSER_INTENTS_DEVICE_ATTACHED_INTENT_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698