| OLD | NEW |
| 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 WebRTCOfferOptions_h | 5 #ifndef WebRTCOfferOptions_h |
| 6 #define WebRTCOfferOptions_h | 6 #define WebRTCOfferOptions_h |
| 7 | 7 |
| 8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
| 9 #include "WebNonCopyable.h" | 9 #include "WebNonCopyable.h" |
| 10 #include "WebPrivatePtr.h" | 10 #include "WebPrivatePtr.h" |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace blink { |
| 13 class RTCOfferOptions; | 13 class RTCOfferOptions; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class WebRTCOfferOptions { | 18 class WebRTCOfferOptions { |
| 19 public: | 19 public: |
| 20 WebRTCOfferOptions() { } | 20 WebRTCOfferOptions() { } |
| 21 WebRTCOfferOptions(const WebRTCOfferOptions& other) { assign(other); } | 21 WebRTCOfferOptions(const WebRTCOfferOptions& other) { assign(other); } |
| 22 ~WebRTCOfferOptions() { reset(); } | 22 ~WebRTCOfferOptions() { reset(); } |
| 23 | 23 |
| 24 WebRTCOfferOptions& operator=(const WebRTCOfferOptions& other) | 24 WebRTCOfferOptions& operator=(const WebRTCOfferOptions& other) |
| 25 { | 25 { |
| 26 assign(other); | 26 assign(other); |
| 27 return *this; | 27 return *this; |
| 28 } | 28 } |
| 29 | 29 |
| 30 BLINK_PLATFORM_EXPORT void assign(const WebRTCOfferOptions&); | 30 BLINK_PLATFORM_EXPORT void assign(const WebRTCOfferOptions&); |
| 31 | 31 |
| 32 BLINK_PLATFORM_EXPORT void reset(); | 32 BLINK_PLATFORM_EXPORT void reset(); |
| 33 bool isNull() const { return m_private.isNull(); } | 33 bool isNull() const { return m_private.isNull(); } |
| 34 | 34 |
| 35 BLINK_PLATFORM_EXPORT int32_t offerToReceiveVideo() const; | 35 BLINK_PLATFORM_EXPORT int32_t offerToReceiveVideo() const; |
| 36 BLINK_PLATFORM_EXPORT int32_t offerToReceiveAudio() const; | 36 BLINK_PLATFORM_EXPORT int32_t offerToReceiveAudio() const; |
| 37 BLINK_PLATFORM_EXPORT bool voiceActivityDetection() const; | 37 BLINK_PLATFORM_EXPORT bool voiceActivityDetection() const; |
| 38 BLINK_PLATFORM_EXPORT bool iceRestart() const; | 38 BLINK_PLATFORM_EXPORT bool iceRestart() const; |
| 39 | 39 |
| 40 #if INSIDE_BLINK | 40 #if INSIDE_BLINK |
| 41 BLINK_PLATFORM_EXPORT WebRTCOfferOptions(const WTF::PassRefPtr<WebCore::RTCO
fferOptions>&); | 41 BLINK_PLATFORM_EXPORT WebRTCOfferOptions(const WTF::PassRefPtr<blink::RTCOff
erOptions>&); |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 WebPrivatePtr<WebCore::RTCOfferOptions> m_private; | 45 WebPrivatePtr<blink::RTCOfferOptions> m_private; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // WebRTCOfferOptions_h | 50 #endif // WebRTCOfferOptions_h |
| OLD | NEW |