Add missing status codes to WebSocketError enum.
commit40e9c62fe01cb651eb50329b65d264a1fa7edd4e
authorricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 7 May 2013 14:59:21 +0000 (7 14:59 +0000)
committerricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 7 May 2013 14:59:21 +0000 (7 14:59 +0000)
tree98b00d9c8279a4ec38ec46a761af66cf92bf7b70
parent7a1f79852d930debcb32274adad623adb1fe1cef
Add missing status codes to WebSocketError enum.

Add the close status codes that were missing from net::WebSocketError, and also
change the style of the enum from ALL_UPPER to kCamelCase.

Also add a constructor to WebSocketFrameHeader to minimise boilerplate when it
is used, and utility functions IsKnownDataOpCode() and IsKnownControlOpCode()
which will be used by WebSocketCommon. Made WebSocketFrameHeader uncopyable and
added a Clone() method for more style-guide compliance.

BUG=237496
TEST=net_unittests --gtest_filter='WebSocket*'

Review URL: https://chromiumcodereview.appspot.com/14850012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198725 0039d316-1c4b-4281-b951-d872f2087c98
net/websockets/websocket_errors.cc
net/websockets/websocket_errors.h
net/websockets/websocket_errors_unittest.cc
net/websockets/websocket_frame.cc
net/websockets/websocket_frame.h
net/websockets/websocket_frame_parser.cc
net/websockets/websocket_frame_parser.h
net/websockets/websocket_frame_parser_unittest.cc
net/websockets/websocket_frame_unittest.cc