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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // MediaDeviceManager keeps track of media devices and makes them available to
6 // interested parties like the Media Gallery API.
7
8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_MANAGER_H_
9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_MANAGER_H_
10 #pragma once
11
12 #include <string>
13 #include <utility>
14 #include <vector>
15
16 #include "base/basictypes.h"
17 #include "base/memory/scoped_ptr.h"
18
19 class FilePath;
20
21 namespace chrome {
22
23 class MediaDeviceManager {
24 public:
25 typedef std::pair<std::string, FilePath> MediaDeviceInfo;
26
27 MediaDeviceManager();
28 ~MediaDeviceManager();
29
30 // Returns a vector of media devices in |results|.
31 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
32
33 private:
34 class MediaDeviceManagerImpl;
35
36 scoped_ptr<MediaDeviceManagerImpl> impl_;
37
38 DISALLOW_COPY_AND_ASSIGN(MediaDeviceManager);
39 };
40
41 } // namespace chrome
42
43 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698