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

Unified Diff: third_party/WebKit/Source/web/WebSocketImpl.cpp

Issue 1666893003: [ABANDONED] WebSocket Blob receive in the browser process: renderer changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@websocket_blob_receive_host_merged
Patch Set: Created 4 years, 10 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/web/WebSocketImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSocketImpl.cpp b/third_party/WebKit/Source/web/WebSocketImpl.cpp
index f2efa4098afbe12e111813a913c1a1f6733816a5..26026fdb1754dd3f2c02b7276cc8d5ffe0df35be 100644
--- a/third_party/WebKit/Source/web/WebSocketImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSocketImpl.cpp
@@ -32,6 +32,7 @@
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/Document.h"
+#include "core/fileapi/FileReaderLoader.h"
#include "core/frame/ConsoleTypes.h"
#include "modules/websockets/DocumentWebSocketChannel.h"
#include "modules/websockets/WebSocketChannel.h"
@@ -164,7 +165,7 @@ void WebSocketImpl::didReceiveTextMessage(const String& payload)
m_client->didReceiveMessage(WebString(payload));
}
-void WebSocketImpl::didReceiveBinaryMessage(PassOwnPtr<Vector<char>> payload)
+void WebSocketImpl::didReceiveArrayBuffer(PassOwnPtr<Vector<char>> payload)
{
switch (m_binaryType) {
case BinaryTypeBlob:
@@ -176,6 +177,12 @@ void WebSocketImpl::didReceiveBinaryMessage(PassOwnPtr<Vector<char>> payload)
}
}
+void WebSocketImpl::didReceiveBlob(PassRefPtr<BlobDataHandle> blob)
+{
+ // FIXME: Should this method do anything? If so, what?
+ ASSERT_NOT_REACHED();
+}
+
void WebSocketImpl::didError()
{
m_client->didReceiveMessageError();
« no previous file with comments | « third_party/WebKit/Source/web/WebSocketImpl.h ('k') | third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698