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/RTCIceCandidateEvent.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h b/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h index 466636831..8d371d4ab 100644 --- a/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h +++ b/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h @@ -22,10 +22,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RTCIceCandidateEvent_h -#define RTCIceCandidateEvent_h +#pragma once -#if ENABLE(MEDIA_STREAM) +#if ENABLE(WEB_RTC) #include "Event.h" #include <wtf/text/AtomicString.h> @@ -37,22 +36,18 @@ class RTCIceCandidateEvent : public Event { public: virtual ~RTCIceCandidateEvent(); - static PassRefPtr<RTCIceCandidateEvent> create(); - static PassRefPtr<RTCIceCandidateEvent> create(bool canBubble, bool cancelable, PassRefPtr<RTCIceCandidate>); + static Ref<RTCIceCandidateEvent> create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&); RTCIceCandidate* candidate() const; virtual EventInterface eventInterface() const; private: - RTCIceCandidateEvent(); - RTCIceCandidateEvent(bool canBubble, bool cancelable, PassRefPtr<RTCIceCandidate>); + RTCIceCandidateEvent(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&); RefPtr<RTCIceCandidate> m_candidate; }; } // namespace WebCore -#endif // ENABLE(MEDIA_STREAM) - -#endif // RTCIceCandidateEvent_h +#endif // ENABLE(WEB_RTC) |