summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_errors.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add missing status codes to WebSocketError enum.ricea@chromium.org2013-05-071-4/+21
| | | | | | | | | | | | | | | | | 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
* Fixes to WebSocketErrorToNetErrorTest()ricea@chromium.org2013-01-181-3/+4
| | | | | | | | | | | | | | | | | | * Fix a typo in the include file. * Return a default value in release builds. * Compile it. * Export it. * Add a unit test. TEST=net_unittests R=toyoshim@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11854006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177608 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebSocketError to indicate decoding failure reasontoyoshim@chromium.org2012-08-061-0/+24
BUG=none TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10824081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150095 0039d316-1c4b-4281-b951-d872f2087c98