diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 22:21:33 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 22:21:33 +0000 |
commit | a30b9400a39eaf92ce1a1f0770c725255542deaa (patch) | |
tree | c748e5877a2507b2525d670ae2f8f7581cb26d2d /net/websockets | |
parent | 6db492b88351c1a40a0bf35996b91bab4b30a587 (diff) | |
download | chromium_src-a30b9400a39eaf92ce1a1f0770c725255542deaa.zip chromium_src-a30b9400a39eaf92ce1a1f0770c725255542deaa.tar.gz chromium_src-a30b9400a39eaf92ce1a1f0770c725255542deaa.tar.bz2 |
[chromedriver] Write websocket client and sync websocket client.
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
Diffstat (limited to 'net/websockets')
-rw-r--r-- | net/websockets/websocket_frame.h | 12 | ||||
-rw-r--r-- | net/websockets/websocket_frame_parser.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/net/websockets/websocket_frame.h b/net/websockets/websocket_frame.h index 94f4ede..46b011f 100644 --- a/net/websockets/websocket_frame.h +++ b/net/websockets/websocket_frame.h @@ -20,7 +20,7 @@ class IOBufferWithSize; // // Members of this class correspond to each element in WebSocket frame header // (see http://tools.ietf.org/html/rfc6455#section-5.2). -struct NET_EXPORT_PRIVATE WebSocketFrameHeader { +struct NET_EXPORT WebSocketFrameHeader { typedef int OpCode; static const OpCode kOpCodeContinuation; static const OpCode kOpCodeText; @@ -65,7 +65,7 @@ struct NET_EXPORT_PRIVATE WebSocketFrameHeader { // // This struct is used for reading WebSocket frame data (created by // WebSocketFrameParser). To construct WebSocket frames, use functions below. -struct NET_EXPORT_PRIVATE WebSocketFrameChunk { +struct NET_EXPORT WebSocketFrameChunk { WebSocketFrameChunk(); ~WebSocketFrameChunk(); @@ -89,7 +89,7 @@ struct WebSocketMaskingKey { // Returns the size of WebSocket frame header. The size of WebSocket frame // header varies from 2 bytes to 14 bytes depending on the payload length // and maskedness. -NET_EXPORT_PRIVATE int GetWebSocketFrameHeaderSize( +NET_EXPORT int GetWebSocketFrameHeaderSize( const WebSocketFrameHeader& header); // Writes wire format of a WebSocket frame header into |output|, and returns @@ -108,14 +108,14 @@ NET_EXPORT_PRIVATE int GetWebSocketFrameHeaderSize( // GetWebSocketFrameHeaderSize() can be used to know the size of header // beforehand. If the size of |buffer| is insufficient, this function returns // ERR_INVALID_ARGUMENT and does not write any data to |buffer|. -NET_EXPORT_PRIVATE int WriteWebSocketFrameHeader( +NET_EXPORT int WriteWebSocketFrameHeader( const WebSocketFrameHeader& header, const WebSocketMaskingKey* masking_key, char* buffer, int buffer_size); // Generates a masking key suitable for use in a new WebSocket frame. -NET_EXPORT_PRIVATE WebSocketMaskingKey GenerateWebSocketMaskingKey(); +NET_EXPORT WebSocketMaskingKey GenerateWebSocketMaskingKey(); // Masks WebSocket frame payload. // @@ -129,7 +129,7 @@ NET_EXPORT_PRIVATE WebSocketMaskingKey GenerateWebSocketMaskingKey(); // // Since frame masking is a reversible operation, this function can also be // used for unmasking a WebSocket frame. -NET_EXPORT_PRIVATE void MaskWebSocketFramePayload( +NET_EXPORT void MaskWebSocketFramePayload( const WebSocketMaskingKey& masking_key, uint64 frame_offset, char* data, diff --git a/net/websockets/websocket_frame_parser.h b/net/websockets/websocket_frame_parser.h index 8f5c3ff..c2517c9 100644 --- a/net/websockets/websocket_frame_parser.h +++ b/net/websockets/websocket_frame_parser.h @@ -22,7 +22,7 @@ namespace net { // Specification of WebSocket frame format is available at // <http://tools.ietf.org/html/rfc6455#section-5>. -class NET_EXPORT_PRIVATE WebSocketFrameParser { +class NET_EXPORT WebSocketFrameParser { public: WebSocketFrameParser(); ~WebSocketFrameParser(); |