| 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. | 8 // WebSockets. |
| 9 // | 9 // |
| 10 // This IPC interface was originally desined based on the WebSocket | 10 // This IPC interface was originally desined based on the WebSocket |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // browser using the channel ID. | 26 // browser using the channel ID. |
| 27 // | 27 // |
| 28 // The channel ID value is stored in the routing ID member which is available | 28 // The channel ID value is stored in the routing ID member which is available |
| 29 // when we use the IPC_MESSAGE_ROUTED macro though it's unintended use. | 29 // when we use the IPC_MESSAGE_ROUTED macro though it's unintended use. |
| 30 | 30 |
| 31 #include <stdint.h> | 31 #include <stdint.h> |
| 32 | 32 |
| 33 #include <string> | 33 #include <string> |
| 34 #include <vector> | 34 #include <vector> |
| 35 | 35 |
| 36 #include "base/memory/shared_memory.h" |
| 36 #include "content/common/content_export.h" | 37 #include "content/common/content_export.h" |
| 37 #include "content/common/websocket.h" | 38 #include "content/common/websocket.h" |
| 38 #include "ipc/ipc_message_macros.h" | 39 #include "ipc/ipc_message_macros.h" |
| 39 #include "url/gurl.h" | 40 #include "url/gurl.h" |
| 40 #include "url/origin.h" | 41 #include "url/origin.h" |
| 41 | 42 |
| 42 #undef IPC_MESSAGE_EXPORT | 43 #undef IPC_MESSAGE_EXPORT |
| 43 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 44 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 44 #define IPC_MESSAGE_START WebSocketMsgStart | 45 #define IPC_MESSAGE_START WebSocketMsgStart |
| 45 | 46 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // a closing handshake and the renderer cannot accept any new messages on this | 187 // a closing handshake and the renderer cannot accept any new messages on this |
| 187 // connection. | 188 // connection. |
| 188 IPC_MESSAGE_ROUTED3(WebSocketMsg_DropChannel, | 189 IPC_MESSAGE_ROUTED3(WebSocketMsg_DropChannel, |
| 189 bool /* was_clean */, | 190 bool /* was_clean */, |
| 190 unsigned short /* code */, | 191 unsigned short /* code */, |
| 191 std::string /* reason */) | 192 std::string /* reason */) |
| 192 | 193 |
| 193 // Notify the renderer that a closing handshake has been initiated by the | 194 // Notify the renderer that a closing handshake has been initiated by the |
| 194 // server, so that it can set the Javascript readyState to CLOSING. | 195 // server, so that it can set the Javascript readyState to CLOSING. |
| 195 IPC_MESSAGE_ROUTED0(WebSocketMsg_NotifyClosing) | 196 IPC_MESSAGE_ROUTED0(WebSocketMsg_NotifyClosing) |
| 197 |
| 198 |
| 199 IPC_MESSAGE_ROUTED1(WebSocketHostMsg_LoaderTransferTest_Setup, |
| 200 int /* buffer_size */) |
| 201 |
| 202 IPC_MESSAGE_ROUTED1(WebSocketMsg_LoaderTransferTest_SetDataBuffer, |
| 203 base::SharedMemoryHandle /* buffer_size */) |
| 204 |
| 205 IPC_MESSAGE_ROUTED2(WebSocketHostMsg_LoaderTransferTest_Send, |
| 206 int /* data_offset */, |
| 207 int /* data_length */) |
| 208 |
| 209 IPC_MESSAGE_ROUTED0(WebSocketHostMsg_LoaderTransferTest_Close) |
| 210 |
| 211 IPC_MESSAGE_ROUTED0(WebSocketMsg_LoaderTransferTest_Ack) |
| 212 |
| 213 IPC_MESSAGE_ROUTED0(WebSocketMsg_LoaderTransferTest_Done) |
| OLD | NEW |