Index: webrtc/api/webrtcsession.cc |
diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc |
index 2f3c911454d440d448f5f4d6c68a498a7ef246fd..025851f2fc2c64bbedbd90cbc23e62152cfe7f75 100644 |
--- a/webrtc/api/webrtcsession.cc |
+++ b/webrtc/api/webrtcsession.cc |
@@ -1309,7 +1309,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."; |
@@ -1771,7 +1771,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 |