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

Unified Diff: content/browser/media/media_internals.h

Issue 616833004: chrome://media-internals: update MediaInternals when devices capabilities are enumerated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | content/browser/media/media_internals.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | content/browser/media/media_internals.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698