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

Unified Diff: Source/web/WebSocketImpl.cpp

Issue 711763002: bindings: Transition from ArrayBuffer to DOMArrayBuffer, part 2 (2nd round) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes Win x64 build. Created 6 years, 1 month 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
« no previous file with comments | « Source/modules/websockets/WorkerWebSocketChannel.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSocketImpl.cpp
diff --git a/Source/web/WebSocketImpl.cpp b/Source/web/WebSocketImpl.cpp
index 09d20a35d332050a26e02337cfa473e5d788cc4b..57234aabd81bcdfa7dd3a338e9bf0b0d3a163578 100644
--- a/Source/web/WebSocketImpl.cpp
+++ b/Source/web/WebSocketImpl.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "web/WebSocketImpl.h"
+#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/Document.h"
#include "core/frame/ConsoleTypes.h"
#include "modules/websockets/DocumentWebSocketChannel.h"
@@ -40,7 +41,6 @@
#include "public/platform/WebURL.h"
#include "public/web/WebDocument.h"
#include "web/WebSocketChannelClientProxy.h"
-#include "wtf/ArrayBuffer.h"
#include "wtf/text/CString.h"
#include "wtf/text/WTFString.h"
@@ -121,7 +121,8 @@ bool WebSocketImpl::sendArrayBuffer(const WebArrayBuffer& webArrayBuffer)
if (m_isClosingOrClosed)
return true;
- m_private->send(*PassRefPtr<ArrayBuffer>(webArrayBuffer), 0, webArrayBuffer.byteLength());
+ RefPtr<DOMArrayBuffer> arrayBuffer = DOMArrayBuffer::create(webArrayBuffer);
+ m_private->send(*arrayBuffer, 0, arrayBuffer->byteLength());
return true;
}
« no previous file with comments | « Source/modules/websockets/WorkerWebSocketChannel.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698