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

Side by Side Diff: third_party/WebKit/Source/platform/mediastream/RTCOfferOptionsPlatform.h

Issue 2097563002: Split the mediastream module in Blink into mediastream and peerconnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DEPS file Created 4 years, 5 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef RTCOfferOptionsPlatform_h
6 #define RTCOfferOptionsPlatform_h
7
8 #include "platform/heap/Handle.h"
9
10 namespace blink {
11
12 class RTCOfferOptionsPlatform final : public GarbageCollected<RTCOfferOptionsPla tform> {
13 public:
14 static RTCOfferOptionsPlatform* create(int32_t offerToReceiveVideo, int32_t offerToReceiveAudio, bool voiceActivityDetection, bool iceRestart)
15 {
16 return new RTCOfferOptionsPlatform(offerToReceiveVideo, offerToReceiveAu dio, voiceActivityDetection, iceRestart);
17 }
18
19 int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo; }
20 int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio; }
21 bool voiceActivityDetection() const { return m_voiceActivityDetection; }
22 bool iceRestart() const { return m_iceRestart; }
23
24 DEFINE_INLINE_TRACE() {}
25
26 private:
27 RTCOfferOptionsPlatform(int32_t offerToReceiveVideo, int32_t offerToReceiveA udio, bool voiceActivityDetection, bool iceRestart)
28 : m_offerToReceiveVideo(offerToReceiveVideo)
29 , m_offerToReceiveAudio(offerToReceiveAudio)
30 , m_voiceActivityDetection(voiceActivityDetection)
31 , m_iceRestart(iceRestart)
32 {
33 }
34
35 int32_t m_offerToReceiveVideo;
36 int32_t m_offerToReceiveAudio;
37 bool m_voiceActivityDetection;
38 bool m_iceRestart;
39 };
40
41 } // namespace blink
42
43 #endif // RTCOfferOptionsPlatform_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698