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

Unified Diff: content/browser/renderer_host/websocket_dispatcher_host.cc

Issue 1664743002: [OBSOLETE][DO NOT SUBMIT][DO NOT COMMIT]] Browser-side implementation of WebSocket Blob receive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@websocket_blob_send_sender
Patch Set: Now actually works. 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: content/browser/renderer_host/websocket_dispatcher_host.cc
diff --git a/content/browser/renderer_host/websocket_dispatcher_host.cc b/content/browser/renderer_host/websocket_dispatcher_host.cc
index e7049004b32fd4106d929b256f873fa1aca73e50..666e7df31fdbc5af74d6950702db7f5ad61a7503 100644
--- a/content/browser/renderer_host/websocket_dispatcher_host.cc
+++ b/content/browser/renderer_host/websocket_dispatcher_host.cc
@@ -80,6 +80,8 @@ bool WebSocketDispatcherHost::OnMessageReceived(const IPC::Message& message) {
switch (message.type()) {
case WebSocketHostMsg_AddChannelRequest::ID:
case WebSocketHostMsg_SendBlob::ID:
+ case WebSocketHostMsg_BinaryTypeChanged::ID:
+ case WebSocketHostMsg_BlobConfirmed::ID:
case WebSocketMsg_SendFrame::ID:
case WebSocketMsg_FlowControl::ID:
case WebSocketMsg_DropChannel::ID:
@@ -221,6 +223,13 @@ WebSocketHostState WebSocketDispatcherHost::BlobSendComplete(int routing_id) {
return SendOrDrop(new WebSocketMsg_BlobSendComplete(routing_id));
}
+WebSocketHostState WebSocketDispatcherHost::BlobReceived(
+ int routing_id,
+ const std::string& uuid,
+ uint64_t size) {
+ return SendOrDrop(new WebSocketMsg_BlobReceived(routing_id, uuid, size));
+}
+
WebSocketHostState WebSocketDispatcherHost::DoDropChannel(
int routing_id,
bool was_clean,
« no previous file with comments | « content/browser/renderer_host/websocket_dispatcher_host.h ('k') | content/browser/renderer_host/websocket_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698