Chromium Code Reviews| Index: content/browser/media/media_internals.h |
| diff --git a/content/browser/media/media_internals.h b/content/browser/media/media_internals.h |
| index c0f144a5b8b4a080df5aea55ca7b320ac7362caf..7484a5e9bc8cecadf73da7d6671e1ece1a37c40a 100644 |
| --- a/content/browser/media/media_internals.h |
| +++ b/content/browser/media/media_internals.h |
| @@ -16,6 +16,8 @@ |
| #include "base/values.h" |
| #include "content/common/content_export.h" |
| #include "media/audio/audio_logging.h" |
| +#include "media/video/capture/video_capture_device.h" |
| +#include "media/video/capture/video_capture_types.h" |
| namespace media { |
| class AudioParameters; |
| @@ -46,6 +48,13 @@ class CONTENT_EXPORT MediaInternals |
| // Sends all cached data to each registered UpdateCallback. |
| void SendEverything(); |
| + // Called to inform of the capabilities enumerated for a video device. |
| + void UpdateVideoCaptureDeviceCapabilities( |
| + const media::VideoCaptureDevice::Name& name, |
| + const media::VideoCaptureFormats& formats); |
|
burnik
2014/10/05 23:08:55
add
const size_t num_devices
as last param. You'll
mcasas
2014/10/07 11:25:40
Done.
|
| + // Cleans up internal cache of all video devices' capabilities. |
|
burnik
2014/10/03 11:15:41
Nit: add empty line.
mcasas
2014/10/07 11:25:40
Done.
|
| + void PurgeVideoCaptureDeviceCapabilities(); |
| + |
| // AudioLogFactory implementation. Safe to call from any thread. |
| virtual scoped_ptr<media::AudioLog> CreateAudioLog( |
| AudioComponent component) OVERRIDE; |
| @@ -76,8 +85,9 @@ class CONTENT_EXPORT MediaInternals |
| // All variables below must be accessed under |lock_|. |
| base::Lock lock_; |
| - base::DictionaryValue cached_data_; |
| + base::DictionaryValue audio_streams_cached_data_; |
| int owner_ids_[AUDIO_COMPONENT_MAX]; |
| + base::DictionaryValue video_devices_cached_data_; |
| DISALLOW_COPY_AND_ASSIGN(MediaInternals); |
| }; |