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

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

Issue 12764006: WebSocketChannel implementation (Closed) Base URL: http://git.chromium.org/chromium/src.git@web_socket_dispatcher
Patch Set: Fixes to comments and variable names. Created 7 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2013 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_MUX_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_MUX_H_
7
8 namespace net {
9
10 // Reason codes used by the mux extension.
11 enum WebSocketMuxError {
12 // Codes starting with 2000 apply to the physical connection. They are used
13 // for dropping the control channel.
14 kWebSocketMuxErrorPhysicalConnectionFailed = 2000,
15 kWebSocketMuxErrorInvalidEncapsulatingMessage = 2001,
16 kWebSocketMuxErrorChannelIdTruncated = 2002,
17 kWebSocketMuxErrorEncapsulatedFrameIsTruncated = 2003,
18 kWebSocketMuxErrorUnknownMuxOpcode = 2004,
19 kWebSocketMuxErrorInvalidMuxControlBlock = 2005,
20 kWebSocketMuxErrorChannelAlreadyExists = 2006,
21 kWebSocketMuxErrorNewChannelSlotViolation = 2007,
22 kWebSocketMuxErrorNewChannelSlotOverFlow = 2008,
tyoshino (SeeGerritForStatus) 2013/07/01 08:53:32 Overflow? it's ok but found Overflow at L31
Adam Rice 2013/07/01 10:08:14 I think OverFlow is wrong. I have fixed it.
23 kWebSocketMuxErrorBadRequest = 2009,
24 kWebSocketMuxErrorUnknownRequestEncoding = 2010,
25 kWebSocketMuxErrorBadResponse = 2011,
26 kWebSocketMuxErrorUnknownResponseEncoding = 2012,
27
28 // Codes starting with 3000 apply to the logical connection.
29 kWebSocketMuxErrorLogicalChannelFailed = 3000,
30 kWebSocketMuxErrorSendQuotaViolation = 3005,
31 kWebSocketMuxErrorSendQuotaOverflow = 3006,
32 kWebSocketMuxErrorIdleTimeout = 3007,
33 kWebSocketMuxErrorDropChannelAck = 3008,
34 kWebSocketMuxErrorBadFragmentation = 3009,
35 };
36
37 } // namespace net
38
39 #endif // NET_WEBSOCKETS_WEBSOCKET_MUX_H_
OLDNEW
« net/websockets/websocket_event_interface.h ('K') | « net/websockets/websocket_event_interface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698