diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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) |