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

Unified Diff: content/common/websocket.h

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
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/common/websocket_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/websocket.h
diff --git a/content/common/websocket.h b/content/common/websocket.h
index 324e9a100d489b3045780cdf79f9c7ea35affe1e..53fd52e2dab2fad2a8561e4fddeef60f42727d0c 100644
--- a/content/common/websocket.h
+++ b/content/common/websocket.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_COMMON_WEBSOCKET_H_
#define CONTENT_COMMON_WEBSOCKET_H_
+#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
@@ -23,6 +24,13 @@ enum WebSocketMessageType {
WEB_SOCKET_MESSAGE_TYPE_LAST = WEB_SOCKET_MESSAGE_TYPE_BINARY
};
+// WebSocket binary message types.
+enum class WebSocketBinaryType : uint8_t {
+ BLOB = 0x0,
+ ARRAY_BUFFER = 0x1,
+ LAST = ARRAY_BUFFER
+};
+
// Opening handshake request information which will be shown in the inspector.
// All string data should be encoded to ASCII in the browser process.
struct WebSocketHandshakeRequest {
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/common/websocket_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698