Chromium Code Reviews| Index: content/public/browser/media_capture_devices.h |
| diff --git a/content/public/browser/media_capture_devices.h b/content/public/browser/media_capture_devices.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b3615b46bf157898b29878ba511109ba816106de |
| --- /dev/null |
| +++ b/content/public/browser/media_capture_devices.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2014 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. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ |
| +#define CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ |
| + |
| +#include "content/public/common/media_stream_request.h" |
| + |
| +namespace content { |
| + |
| +// This is a singleton class, used to get Audio/Video devices, it also provides |
| +// observer interface to notify the change of devices. |
|
jam
2014/03/06 01:40:38
nit: remove the second part of this comment
michaelbai
2014/03/06 05:24:52
Done.
|
| +CONTENT_EXPORT class MediaCaptureDevices { |
| + public: |
| + // Get signleton instance of MediaCaptureDevices. |
| + static MediaCaptureDevices* GetInstance(); |
| + |
| + // Return all Audio/Video devices. |
| + virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0; |
| + virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0; |
| + |
|
jam
2014/03/06 01:40:38
let's move the one method from content/public/brow
michaelbai
2014/03/06 05:24:52
The head file was removed, and the method is in me
|
| + private: |
| + // This interface should only be implemented inside content. |
| + friend class MediaCaptureDevicesImpl; |
| + MediaCaptureDevices() {} |
| + virtual ~MediaCaptureDevices() {} |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ |