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

Unified Diff: chrome/browser/media_gallery/media_device_manager.h

Issue 10332190: Add SystemMonitor::GetMediaDevices() (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 7 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/media_gallery/media_device_manager.h
===================================================================
--- chrome/browser/media_gallery/media_device_manager.h (revision 0)
+++ chrome/browser/media_gallery/media_device_manager.h (revision 0)
@@ -0,0 +1,43 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// MediaDeviceManager keeps track of media devices and makes them available to
+// interested parties like the Media Gallery API.
+
+#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_MANAGER_H_
+#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_MANAGER_H_
+#pragma once
+
+#include <string>
+#include <utility>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+
+class FilePath;
+
+namespace chrome {
+
+class MediaDeviceManager {
+ public:
+ typedef std::pair<std::string, FilePath> MediaDeviceInfo;
+
+ MediaDeviceManager();
+ ~MediaDeviceManager();
+
+ // Returns a vector of media devices in |results|.
+ void GetDevices(std::vector<MediaDeviceInfo>* results);
vandebo (ex-Chrome) 2012/05/17 21:17:08 I was going to ask why this had an separate implem
+
+ private:
+ class MediaDeviceManagerImpl;
+
+ scoped_ptr<MediaDeviceManagerImpl> impl_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaDeviceManager);
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_MANAGER_H_
Property changes on: chrome/browser/media_gallery/media_device_manager.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698