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

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: remove bad formatting from previous PS on (now) unmodified RTCOfferOptions.idl 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..201cfb4718a5fcbd5fc966e9d8f45c156438ee4f 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)
+ explicit RTCAnswerOptionsPlatform(int32_t offerToReceiveVideo, int32_t offerToReceiveAudio, bool voiceActivityDetection)
haraken 2016/06/13 14:39:08 Drop explicit.
Guido Urdaneta 2016/06/13 14:49:54 Done.
+ : m_offerToReceiveVideo(offerToReceiveVideo)
+ , m_offerToReceiveAudio(offerToReceiveAudio)
+ , m_voiceActivityDetection(voiceActivityDetection)
{
}
+ int32_t m_offerToReceiveVideo;
+ int32_t m_offerToReceiveAudio;
bool m_voiceActivityDetection;
};

Powered by Google App Engine
This is Rietveld 408576698