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

Unified 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: Explain why operator<< needs to be in ::net 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 side-by-side diff with in-line comments
Download patch
Index: net/websockets/websocket_mux.h
diff --git a/net/websockets/websocket_mux.h b/net/websockets/websocket_mux.h
new file mode 100644
index 0000000000000000000000000000000000000000..9fc1f674fada31611f1a9b0c65e4cf7bda5b0b00
--- /dev/null
+++ b/net/websockets/websocket_mux.h
@@ -0,0 +1,39 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_WEBSOCKETS_WEBSOCKET_MUX_H_
+#define NET_WEBSOCKETS_WEBSOCKET_MUX_H_
+
+namespace net {
+
+// Reason codes used by the mux extension.
+enum WebSocketMuxError {
+ // Codes starting with 2000 apply to the physical connection. They are used
+ // for dropping the control channel.
+ kWebSocketMuxErrorPhysicalConnectionFailed = 2000,
+ kWebSocketMuxErrorInvalidEncapsulatingMessage = 2001,
+ kWebSocketMuxErrorChannelIdTruncated = 2002,
+ kWebSocketMuxErrorEncapsulatedFrameIsTruncated = 2003,
+ kWebSocketMuxErrorUnknownMuxOpcode = 2004,
+ kWebSocketMuxErrorInvalidMuxControlBlock = 2005,
+ kWebSocketMuxErrorChannelAlreadyExists = 2006,
+ kWebSocketMuxErrorNewChannelSlotViolation = 2007,
+ kWebSocketMuxErrorNewChannelSlotOverflow = 2008,
+ kWebSocketMuxErrorBadRequest = 2009,
+ kWebSocketMuxErrorUnknownRequestEncoding = 2010,
+ kWebSocketMuxErrorBadResponse = 2011,
+ kWebSocketMuxErrorUnknownResponseEncoding = 2012,
+
+ // Codes starting with 3000 apply to the logical connection.
+ kWebSocketMuxErrorLogicalChannelFailed = 3000,
+ kWebSocketMuxErrorSendQuotaViolation = 3005,
+ kWebSocketMuxErrorSendQuotaOverflow = 3006,
+ kWebSocketMuxErrorIdleTimeout = 3007,
+ kWebSocketMuxErrorDropChannelAck = 3008,
+ kWebSocketMuxErrorBadFragmentation = 3009,
+};
+
+} // namespace net
+
+#endif // NET_WEBSOCKETS_WEBSOCKET_MUX_H_
« net/websockets/websocket_channel.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