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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h

Issue 2956063003: Add support for echoCancellation and deviceId to MediaStreamTrack.getSettings (Closed)
Patch Set: fix DCHECK Created 3 years, 5 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: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
index 649db9981a615e57fd381c52c7aa8affd713c862..c075e9e10111aecfeb99a77f04e49fcbf2ff84a5 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.h
@@ -33,9 +33,12 @@
#define MediaStreamSource_h
#include <memory>
+#include <utility>
+
#include "platform/PlatformExport.h"
#include "platform/audio/AudioDestinationConsumer.h"
#include "platform/wtf/Allocator.h"
+#include "platform/wtf/Optional.h"
#include "platform/wtf/ThreadingPrimitives.h"
#include "platform/wtf/Vector.h"
#include "platform/wtf/text/WTFString.h"
@@ -90,6 +93,10 @@ class PLATFORM_EXPORT MediaStreamSource final
extra_data_ = std::move(extra_data);
}
+ void SetEchoCancellation(bool echo_cancellation) {
+ echo_cancellation_ = WTF::make_optional(echo_cancellation);
+ }
+
void SetConstraints(WebMediaConstraints constraints) {
constraints_ = constraints;
}
@@ -131,6 +138,7 @@ class PLATFORM_EXPORT MediaStreamSource final
HashSet<AudioDestinationConsumer*> audio_consumers_;
std::unique_ptr<ExtraData> extra_data_;
WebMediaConstraints constraints_;
+ WTF::Optional<bool> echo_cancellation_;
};
typedef HeapVector<Member<MediaStreamSource>> MediaStreamSourceVector;

Powered by Google App Engine
This is Rietveld 408576698