OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
6 | 6 |
7 // This file defines the IPCs for the browser-side implementation of | 7 // This file defines the IPCs for the browser-side implementation of |
8 // WebSockets. For the legacy renderer-side implementation, see | 8 // WebSockets. |
9 // socket_stream_messages.h. | |
10 // TODO(ricea): Fix this comment when the legacy implementation has been | |
11 // removed. | |
12 // | 9 // |
13 // This IPC interface is based on the WebSocket multiplexing draft spec, | 10 // This IPC interface is based on the WebSocket multiplexing draft spec, |
14 // http://tools.ietf.org/html/draft-ietf-hybi-websocket-multiplexing-09 | 11 // http://tools.ietf.org/html/draft-ietf-hybi-websocket-multiplexing-09 |
15 | 12 |
16 #include <string> | 13 #include <string> |
17 #include <vector> | 14 #include <vector> |
18 | 15 |
19 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
20 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
21 #include "content/common/websocket.h" | 18 #include "content/common/websocket.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // closing handshake and the renderer cannot accept any new messages on this | 148 // closing handshake and the renderer cannot accept any new messages on this |
152 // connection. | 149 // connection. |
153 IPC_MESSAGE_ROUTED3(WebSocketMsg_DropChannel, | 150 IPC_MESSAGE_ROUTED3(WebSocketMsg_DropChannel, |
154 bool /* was_clean */, | 151 bool /* was_clean */, |
155 unsigned short /* code */, | 152 unsigned short /* code */, |
156 std::string /* reason */) | 153 std::string /* reason */) |
157 | 154 |
158 // Notify the renderer that a closing handshake has been initiated by the | 155 // Notify the renderer that a closing handshake has been initiated by the |
159 // server, so that it can set the Javascript readyState to CLOSING. | 156 // server, so that it can set the Javascript readyState to CLOSING. |
160 IPC_MESSAGE_ROUTED0(WebSocketMsg_NotifyClosing) | 157 IPC_MESSAGE_ROUTED0(WebSocketMsg_NotifyClosing) |
OLD | NEW |