OLD | NEW |
(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); |
| 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_ |
OLD | NEW |