Chromium Code Reviews| 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; |
| }; |