summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_frame_parser.h
Commit message (Collapse)AuthorAgeFilesLines
* Add missing status codes to WebSocketError enum.ricea@chromium.org2013-05-071-2/+2
| | | | | | | | | | | | | | | | | 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
* Use the optimised masking function MaskWebSocketFramePayload() inricea@chromium.org2012-12-171-1/+1
| | | | | | | | | | | | websocket_frame_parser.cc as well. To make this simple, we also re-use the WebSocketMaskingKey type that it takes as a parameter. BUG= TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/11571022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173469 0039d316-1c4b-4281-b951-d872f2087c98
* [chromedriver] Write websocket client and sync websocket client.kkania@chromium.org2012-11-291-1/+1
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/11316115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170255 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebSocketError to indicate decoding failure reasontoyoshim@chromium.org2012-08-061-4/+7
| | | | | | | | | 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
* Now WebSocketFrameChunk use std::vector<char> to hold payload data.toyoshim@chromium.org2012-08-011-1/+1
| | | | | | | | | | | | | But, SpdyStream and StreamSocket use IOBuffer in their interfaces. To reduce memory copies, we should use IOBuffer to hold data. BUG=none TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10796107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149387 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebSocketFrameParser.yutak@chromium.org2012-05-101-0/+85
BUG=121052 TEST=none Review URL: https://chromiumcodereview.appspot.com/9956013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136240 0039d316-1c4b-4281-b951-d872f2087c98