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

Unified Diff: content/renderer/media/mock_media_stream_registry.h

Issue 2790823002: Spec compliant video constraints for getUserMedia behind flag. (Closed)
Patch Set: rebase Created 3 years, 8 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
Index: content/renderer/media/mock_media_stream_registry.h
diff --git a/content/renderer/media/mock_media_stream_registry.h b/content/renderer/media/mock_media_stream_registry.h
index 376646046046584ca97c84b2f3d2e6ca13d64852..4a65cc7b8c2bdf4293ac7a4899c227af349d6a83 100644
--- a/content/renderer/media/mock_media_stream_registry.h
+++ b/content/renderer/media/mock_media_stream_registry.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/optional.h"
#include "content/renderer/media/media_stream_registry_interface.h"
namespace blink {
@@ -15,6 +16,8 @@ class WebMediaConstraints;
namespace content {
+struct VideoTrackAdapterSettings;
+
// This class encapsulates creation of a Blink MediaStream having inside the
// necessary Blink and Chromium, track and source. The Chrome Video source is
// a mock.
@@ -23,8 +26,14 @@ class MockMediaStreamRegistry final : public MediaStreamRegistryInterface {
MockMediaStreamRegistry();
void Init(const std::string& stream_url);
+ // TODO(guidou): Remove this method. http://crbug.com/706408
void AddVideoTrack(const std::string& track_id,
const blink::WebMediaConstraints& constraints);
+ void AddVideoTrack(const std::string& track_id,
+ const VideoTrackAdapterSettings& adapter_settings,
+ const base::Optional<bool>& noise_reduction,
+ bool is_screen_cast,
+ double min_frame_rate);
void AddVideoTrack(const std::string& track_id);
void AddAudioTrack(const std::string& track_id);
blink::WebMediaStream GetMediaStream(const std::string& url) override;
« no previous file with comments | « content/renderer/media/media_stream_video_track_unittest.cc ('k') | content/renderer/media/mock_media_stream_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698