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

Side by Side Diff: Source/platform/mediastream/RTCOfferOptions.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 RTCOfferOptions_h 5 #ifndef RTCOfferOptions_h
6 #define RTCOfferOptions_h 6 #define RTCOfferOptions_h
7 7
8 #include "wtf/PassRefPtr.h" 8 #include "wtf/PassRefPtr.h"
9 #include "wtf/RefCounted.h" 9 #include "wtf/RefCounted.h"
10 10
11 namespace WebCore { 11 namespace blink {
12 12
13 class RTCOfferOptions FINAL : public RefCounted<RTCOfferOptions> { 13 class RTCOfferOptions FINAL : public RefCounted<RTCOfferOptions> {
14 public: 14 public:
15 static PassRefPtr<RTCOfferOptions> create(int32_t offerToReceiveVideo, int32 _t offerToReceiveAudio, bool voiceActivityDetection, bool iceRestart) 15 static PassRefPtr<RTCOfferOptions> create(int32_t offerToReceiveVideo, int32 _t offerToReceiveAudio, bool voiceActivityDetection, bool iceRestart)
16 { 16 {
17 return adoptRef(new RTCOfferOptions(offerToReceiveVideo, offerToReceiveA udio, voiceActivityDetection, iceRestart)); 17 return adoptRef(new RTCOfferOptions(offerToReceiveVideo, offerToReceiveA udio, voiceActivityDetection, iceRestart));
18 } 18 }
19 19
20 int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo; } 20 int32_t offerToReceiveVideo() const { return m_offerToReceiveVideo; }
21 int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio; } 21 int32_t offerToReceiveAudio() const { return m_offerToReceiveAudio; }
22 bool voiceActivityDetection() const { return m_voiceActivityDetection; } 22 bool voiceActivityDetection() const { return m_voiceActivityDetection; }
23 bool iceRestart() const { return m_iceRestart; } 23 bool iceRestart() const { return m_iceRestart; }
24 24
25 private: 25 private:
26 RTCOfferOptions(int32_t offerToReceiveVideo, int32_t offerToReceiveAudio, bo ol voiceActivityDetection, bool iceRestart) 26 RTCOfferOptions(int32_t offerToReceiveVideo, int32_t offerToReceiveAudio, bo ol voiceActivityDetection, bool iceRestart)
27 : m_offerToReceiveVideo(offerToReceiveVideo) 27 : m_offerToReceiveVideo(offerToReceiveVideo)
28 , m_offerToReceiveAudio(offerToReceiveAudio) 28 , m_offerToReceiveAudio(offerToReceiveAudio)
29 , m_voiceActivityDetection(voiceActivityDetection) 29 , m_voiceActivityDetection(voiceActivityDetection)
30 , m_iceRestart(iceRestart) 30 , m_iceRestart(iceRestart)
31 { 31 {
32 } 32 }
33 33
34 int32_t m_offerToReceiveVideo; 34 int32_t m_offerToReceiveVideo;
35 int32_t m_offerToReceiveAudio; 35 int32_t m_offerToReceiveAudio;
36 bool m_voiceActivityDetection; 36 bool m_voiceActivityDetection;
37 bool m_iceRestart; 37 bool m_iceRestart;
38 }; 38 };
39 39
40 } // namespace WebCore 40 } // namespace blink
41 41
42 #endif // RTCOfferOptions_h 42 #endif // RTCOfferOptions_h
OLDNEW
« no previous file with comments | « Source/platform/mediastream/RTCConfiguration.h ('k') | Source/platform/mediastream/RTCSessionDescriptionRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698