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

Unified Diff: third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.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/public/platform/modules/websockets/WebSocketHandle.h
diff --git a/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h b/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
index 82ff81701986e70779a484bccd94c44eeb83a34a..ebfdac6b652971177a3ae75d934f339cf7b583d4 100644
--- a/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
+++ b/third_party/WebKit/public/platform/modules/websockets/WebSocketHandle.h
@@ -55,12 +55,19 @@ public:
MessageTypeBinary,
};
+ enum BinaryType {
+ BinaryTypeBlob,
+ BinaryTypeArrayBuffer,
+ };
+
virtual ~WebSocketHandle() { }
virtual void connect(const WebURL&, const WebVector<WebString>& protocols, const WebSecurityOrigin&, WebSocketHandleClient*) = 0;
virtual void send(bool fin, MessageType, const char* data, size_t /* size */) = 0;
virtual void flowControl(int64_t quota) = 0;
virtual void close(unsigned short code, const WebString& reason) = 0;
+ virtual void changeBinaryType(BinaryType) = 0;
+ virtual void confirmBlob() = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698