Index: third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h |
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h b/third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h |
index ed92c02106e2c1e458ac6a3459585c7397f7ed91..6091d2b8896e0ed93d9ee4292a0257d5fbb846fc 100644 |
--- a/third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h |
+++ b/third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h |
@@ -34,6 +34,7 @@ |
#include "public/platform/WebRTCDataChannelHandler.h" |
#include "public/platform/WebRTCDataChannelHandlerClient.h" |
#include "wtf/Compiler.h" |
+#include <memory> |
namespace blink { |
@@ -55,7 +56,7 @@ class MODULES_EXPORT RTCDataChannel final |
DEFINE_WRAPPERTYPEINFO(); |
USING_PRE_FINALIZER(RTCDataChannel, dispose); |
public: |
- static RTCDataChannel* create(ExecutionContext*, PassOwnPtr<WebRTCDataChannelHandler>); |
+ static RTCDataChannel* create(ExecutionContext*, std::unique_ptr<WebRTCDataChannelHandler>); |
static RTCDataChannel* create(ExecutionContext*, WebRTCPeerConnectionHandler*, const String& label, const WebRTCDataChannelInit&, ExceptionState&); |
~RTCDataChannel() override; |
@@ -116,13 +117,13 @@ public: |
void didDetectError() override; |
private: |
- RTCDataChannel(ExecutionContext*, PassOwnPtr<WebRTCDataChannelHandler>); |
+ RTCDataChannel(ExecutionContext*, std::unique_ptr<WebRTCDataChannelHandler>); |
void dispose(); |
void scheduleDispatchEvent(Event*); |
void scheduledEventTimerFired(Timer<RTCDataChannel>*); |
- OwnPtr<WebRTCDataChannelHandler> m_handler; |
+ std::unique_ptr<WebRTCDataChannelHandler> m_handler; |
WebRTCDataChannelHandlerClient::ReadyState m_readyState; |