diff options
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h | 21 |
1 files changed, 7 insertions, 14 deletions
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<RTCDataChannelEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Ref<RTCDataChannel>&&); - static PassRefPtr<RTCDataChannelEvent> create(); - static PassRefPtr<RTCDataChannelEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel>); - - RTCDataChannel* channel() const; + RTCDataChannel* channel(); virtual EventInterface eventInterface() const; private: - RTCDataChannelEvent(); - RTCDataChannelEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel>); + RTCDataChannelEvent(const AtomicString& type, bool canBubble, bool cancelable, Ref<RTCDataChannel>&&); - RefPtr<RTCDataChannel> m_channel; + Ref<RTCDataChannel> m_channel; }; } // namespace WebCore -#endif // ENABLE(MEDIA_STREAM) - -#endif // RTCDataChannelEvent_h +#endif // ENABLE(WEB_RTC) |