Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1706)

Side by Side Diff: net/websockets/websocket_errors.h

Issue 10824081: Add WebSocketError to indicate decoding failure reason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move all tests into net::(anonymous) namespace Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_WEBSOCKETS_WEBSOCKET_ERRORS_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_ERRORS_H_
7
8 #include "net/base/net_errors.h"
9
10 namespace net {
11
12 // Error values for WebSocket framing.
13 // This values are compatible to RFC6455 defined status codes.
14 enum WebSocketError {
15 WEB_SOCKET_OK = 1000,
16 WEB_SOCKET_ERR_PROTOCOL_ERROR = 1002,
17 WEB_SOCKET_ERR_MESSAGE_TOO_BIG = 1009
18 };
19
20 // Convert WebSocketError to net::Error defined in net/base/net_errors.h.
21 Error WebSocketErrorToNetError(WebSocketError error);
22
23 } // namespace net
24
25 #endif // NET_WEBSOCKETS_WEBSOCKET_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | net/websockets/websocket_errors.cc » ('j') | net/websockets/websocket_frame_parser_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698