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

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

Issue 2064593003: Support legacy offerToReceiveAudio/offerToReceiveVideo fields in RTCOfferAnswerOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: haraken's comments Created 4 years, 6 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/RTCAnswerOptionsPlatform.h
diff --git a/third_party/WebKit/Source/platform/mediastream/RTCAnswerOptionsPlatform.h b/third_party/WebKit/Source/platform/mediastream/RTCAnswerOptionsPlatform.h
index 2e7cb73dc10eb49b0f5ab22886c44b7dface3c81..e255ff82d8e0ca39a512e55b68ce504b5c02e965 100644
--- a/third_party/WebKit/Source/platform/mediastream/RTCAnswerOptionsPlatform.h
+++ b/third_party/WebKit/Source/platform/mediastream/RTCAnswerOptionsPlatform.h
@@ -11,21 +11,27 @@ namespace blink {
class RTCAnswerOptionsPlatform final : public GarbageCollected<RTCAnswerOptionsPlatform> {
public:
- static RTCAnswerOptionsPlatform* create(bool voiceActivityDetection)
+ static RTCAnswerOptionsPlatform* create(int32_t offerToReceiveVideo, int32_t offerToReceiveAudio, bool voiceActivityDetection)
{
- return new RTCAnswerOptionsPlatform(voiceActivityDetection);
+ return new RTCAnswerOptionsPlatform(offerToReceiveVideo, offerToReceiveAudio, voiceActivityDetection);
}
+ int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo; }
+ int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio; }
bool voiceActivityDetection() const { return m_voiceActivityDetection; }
DEFINE_INLINE_TRACE() {}
private:
- explicit RTCAnswerOptionsPlatform(bool voiceActivityDetection)
- : m_voiceActivityDetection(voiceActivityDetection)
+ RTCAnswerOptionsPlatform(int32_t offerToReceiveVideo, int32_t offerToReceiveAudio, bool voiceActivityDetection)
+ : m_offerToReceiveVideo(offerToReceiveVideo)
+ , m_offerToReceiveAudio(offerToReceiveAudio)
+ , m_voiceActivityDetection(voiceActivityDetection)
{
}
+ int32_t m_offerToReceiveVideo;
foolip 2016/06/20 08:13:47 https://google.github.io/styleguide/cppguide.html#
+ int32_t m_offerToReceiveAudio;
bool m_voiceActivityDetection;
};

Powered by Google App Engine
This is Rietveld 408576698