From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../Modules/mediastream/RTCDataChannelEvent.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h') diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h b/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h index 41b003610..5241e2790 100644 --- a/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h +++ b/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h @@ -22,10 +22,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RTCDataChannelEvent_h -#define RTCDataChannelEvent_h +#pragma once -#if ENABLE(MEDIA_STREAM) +#if ENABLE(WEB_RTC) #include "Event.h" #include "RTCDataChannel.h" @@ -35,24 +34,18 @@ namespace WebCore { class RTCDataChannelEvent : public Event { public: - virtual ~RTCDataChannelEvent(); + static Ref create(const AtomicString& type, bool canBubble, bool cancelable, Ref&&); - static PassRefPtr create(); - static PassRefPtr create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr); - - RTCDataChannel* channel() const; + RTCDataChannel* channel(); virtual EventInterface eventInterface() const; private: - RTCDataChannelEvent(); - RTCDataChannelEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr); + RTCDataChannelEvent(const AtomicString& type, bool canBubble, bool cancelable, Ref&&); - RefPtr m_channel; + Ref m_channel; }; } // namespace WebCore -#endif // ENABLE(MEDIA_STREAM) - -#endif // RTCDataChannelEvent_h +#endif // ENABLE(WEB_RTC) -- cgit v1.2.1