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

Unified Diff: third_party/WebKit/Source/modules/websockets/DOMWebSocket.h

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/modules/websockets/DOMWebSocket.h
diff --git a/third_party/WebKit/Source/modules/websockets/DOMWebSocket.h b/third_party/WebKit/Source/modules/websockets/DOMWebSocket.h
index 27ed56c145e9aed043a7c747782a41086ce52e5a..eb0dd96d966afac310dfd3031f6dbc3679d9b185 100644
--- a/third_party/WebKit/Source/modules/websockets/DOMWebSocket.h
+++ b/third_party/WebKit/Source/modules/websockets/DOMWebSocket.h
@@ -125,7 +125,8 @@ public:
// WebSocketChannelClient functions.
void didConnect(const String& subprotocol, const String& extensions) override;
void didReceiveTextMessage(const String& message) override;
- void didReceiveBinaryMessage(PassOwnPtr<Vector<char>>) override;
+ void didReceiveArrayBuffer(PassOwnPtr<Vector<char>>) override;
+ void didReceiveBlob(PassRefPtr<BlobDataHandle>) override;
void didError() override;
void didConsumeBufferedAmount(uint64_t) override;
void didStartClosingHandshake() override;
@@ -196,6 +197,13 @@ private:
WebSocketReceiveTypeMax,
};
+ enum BinaryType {
+ BinaryTypeBlob,
+ BinaryTypeArrayBuffer
+ };
+
+ static WebSocketChannel::BinaryType toChannelBinaryType(BinaryType);
+
// This function is virtual for unittests.
// FIXME: Move WebSocketChannel::create here.
virtual WebSocketChannel* createChannel(ExecutionContext* context, WebSocketChannelClient* client)
@@ -218,11 +226,6 @@ private:
void releaseChannel();
- enum BinaryType {
- BinaryTypeBlob,
- BinaryTypeArrayBuffer
- };
-
Member<WebSocketChannel> m_channel;
State m_state;
« no previous file with comments | « content/child/websocket_dispatcher.cc ('k') | third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698