Index: webrtc/api/webrtcsession.cc |
diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc |
index 593d4292863ad75fcabeb01c024e1f4b2e4297ed..19f5aa4128aea083feaf5c3065cde77a6e52c3d9 100644 |
--- a/webrtc/api/webrtcsession.cc |
+++ b/webrtc/api/webrtcsession.cc |
@@ -1374,7 +1374,7 @@ sigslot::signal0<>* WebRtcSession::GetOnDestroyedSignal() { |
} |
bool WebRtcSession::SendData(const cricket::SendDataParams& params, |
- const rtc::Buffer& payload, |
+ const rtc::CopyOnWriteBuffer& payload, |
cricket::SendDataResult* result) { |
if (!data_channel_) { |
LOG(LS_ERROR) << "SendData called when data_channel_ is NULL."; |
@@ -1854,7 +1854,7 @@ void WebRtcSession::OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp) { |
void WebRtcSession::OnDataChannelMessageReceived( |
cricket::DataChannel* channel, |
const cricket::ReceiveDataParams& params, |
- const rtc::Buffer& payload) { |
+ const rtc::CopyOnWriteBuffer& payload) { |
RTC_DCHECK(data_channel_type_ == cricket::DCT_SCTP); |
if (params.type == cricket::DMT_CONTROL && IsOpenMessage(payload)) { |
// Received OPEN message; parse and signal that a new data channel should |