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

Unified Diff: third_party/WebKit/Source/platform/exported/WebRTCAnswerOptions.cpp

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/exported/WebRTCAnswerOptions.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebRTCAnswerOptions.cpp b/third_party/WebKit/Source/platform/exported/WebRTCAnswerOptions.cpp
index 4a1f0aab6348a6a19c1cede5d74cf5f8ad32e9f7..ace44753c43d34c31fa98ff617b1c38e5b4d6744 100644
--- a/third_party/WebKit/Source/platform/exported/WebRTCAnswerOptions.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebRTCAnswerOptions.cpp
@@ -5,6 +5,7 @@
#include "public/platform/WebRTCAnswerOptions.h"
#include "platform/mediastream/RTCAnswerOptionsPlatform.h"
+#include "wtf/Assertions.h"
namespace blink {
@@ -23,9 +24,21 @@ void WebRTCAnswerOptions::reset()
m_private.reset();
}
+int32_t WebRTCAnswerOptions::offerToReceiveVideo() const
+{
+ DCHECK(!isNull());
+ return m_private->offerToReceiveVideo();
+}
+
+int32_t WebRTCAnswerOptions::offerToReceiveAudio() const
+{
+ DCHECK(!isNull());
+ return m_private->offerToReceiveAudio();
+}
+
bool WebRTCAnswerOptions::voiceActivityDetection() const
{
- ASSERT(!m_private.isNull());
+ DCHECK(!m_private.isNull());
return m_private->voiceActivityDetection();
}

Powered by Google App Engine
This is Rietveld 408576698