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

Side by Side Diff: third_party/WebKit/public/platform/WebRTCAnswerOptions.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRTCAnswerOptions_h 5 #ifndef WebRTCAnswerOptions_h
6 #define WebRTCAnswerOptions_h 6 #define WebRTCAnswerOptions_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "WebPrivatePtr.h" 9 #include "WebPrivatePtr.h"
10 10
(...skipping 10 matching lines...) Expand all
21 { 21 {
22 assign(other); 22 assign(other);
23 return *this; 23 return *this;
24 } 24 }
25 25
26 void assign(const WebRTCAnswerOptions&); 26 void assign(const WebRTCAnswerOptions&);
27 27
28 void reset(); 28 void reset();
29 bool isNull() const { return m_private.isNull(); } 29 bool isNull() const { return m_private.isNull(); }
30 30
31 int32_t offerToReceiveVideo() const;
32 int32_t offerToReceiveAudio() const;
31 bool voiceActivityDetection() const; 33 bool voiceActivityDetection() const;
32 34
33 #if INSIDE_BLINK 35 #if INSIDE_BLINK
34 WebRTCAnswerOptions(RTCAnswerOptionsPlatform*); 36 WebRTCAnswerOptions(RTCAnswerOptionsPlatform*);
35 #endif 37 #endif
36 38
37 private: 39 private:
38 WebPrivatePtr<RTCAnswerOptionsPlatform> m_private; 40 WebPrivatePtr<RTCAnswerOptionsPlatform> m_private;
39 }; 41 };
40 42
41 } // namespace blink 43 } // namespace blink
42 44
43 #endif // WebRTCAnswerOptions_h 45 #endif // WebRTCAnswerOptions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698