Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
index 0041bd2430a7ebef9ab6a408f953184a52ea8377..d30cc48bdcf20a60490af8bba5dc3ffa99478af7 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp
@@ -227,10 +227,11 @@ void RTCDataChannel::send(DOMArrayBuffer* data,
}
}
-void RTCDataChannel::send(DOMArrayBufferView* data,
+void RTCDataChannel::send(NotShared<DOMArrayBufferView> data,
ExceptionState& exception_state) {
- if (!handler_->SendRawData(static_cast<const char*>(data->BaseAddress()),
- data->byteLength())) {
+ if (!handler_->SendRawData(
+ static_cast<const char*>(data.View()->BaseAddress()),
+ data.View()->byteLength())) {
// FIXME: This should not throw an exception but instead forcefully close
// the data channel.
ThrowCouldNotSendDataException(exception_state);

Powered by Google App Engine
This is Rietveld 408576698