diff options
author | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 06:38:02 +0000 |
---|---|---|
committer | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 06:38:02 +0000 |
commit | 0788a2f2879c774c33a6edd89dae5a82a71279f6 (patch) | |
tree | 001a5534c60bfd384468b14e4535097ccde04945 /net/websockets | |
parent | 9a51ead7659f358522b3dcbd486ba7edd3061ac6 (diff) | |
download | chromium_src-0788a2f2879c774c33a6edd89dae5a82a71279f6.zip chromium_src-0788a2f2879c774c33a6edd89dae5a82a71279f6.tar.gz chromium_src-0788a2f2879c774c33a6edd89dae5a82a71279f6.tar.bz2 |
Add kSupportedVersion constant to net::websockets
BUG=
TEST=compile
Review URL: https://codereview.chromium.org/84993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets')
-rw-r--r-- | net/websockets/websocket_handshake_constants.cc | 2 | ||||
-rw-r--r-- | net/websockets/websocket_handshake_constants.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/net/websockets/websocket_handshake_constants.cc b/net/websockets/websocket_handshake_constants.cc index 357b134..dc670aa 100644 --- a/net/websockets/websocket_handshake_constants.cc +++ b/net/websockets/websocket_handshake_constants.cc @@ -17,6 +17,8 @@ const char* const kSecWebSocketKey = "Sec-WebSocket-Key"; const char* const kSecWebSocketAccept = "Sec-WebSocket-Accept"; const char* const kSecWebSocketVersion = "Sec-WebSocket-Version"; +const char* const kSupportedVersion = "13"; + const char* const kUpgrade = "Upgrade"; const char* const kWebSocketGuid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; diff --git a/net/websockets/websocket_handshake_constants.h b/net/websockets/websocket_handshake_constants.h index 0cf67a8..43d3efd 100644 --- a/net/websockets/websocket_handshake_constants.h +++ b/net/websockets/websocket_handshake_constants.h @@ -42,6 +42,11 @@ extern const char* const kSecWebSocketAccept; // "Sec-WebSocket-Version" extern const char* const kSecWebSocketVersion; +// This implementation only supports one version of the WebSocket protocol, +// "13", as specified in RFC6455. If support for multiple versions is added in +// future, it will probably no longer be worth having a constant for this. +extern const char* const kSupportedVersion; + // "Upgrade" extern const char* const kUpgrade; |