OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | |
7 #include <vector> | 6 #include <vector> |
8 | 7 |
| 8 #include "googleurl/src/gurl.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "ipc/ipc_param_traits.h" | 10 #include "ipc/ipc_param_traits.h" |
11 | 11 |
12 class GURL; | |
13 | |
14 #define IPC_MESSAGE_START SocketStreamMsgStart | 12 #define IPC_MESSAGE_START SocketStreamMsgStart |
15 | 13 |
16 // Web Sockets messages sent from the renderer to the browser. | 14 // Web Sockets messages sent from the renderer to the browser. |
17 | 15 |
18 // Open new Socket Stream for the |socket_url| identified by |socket_id| | 16 // Open new Socket Stream for the |socket_url| identified by |socket_id| |
19 // in the renderer process. | 17 // in the renderer process. |
20 // The browser starts connecting asynchronously. | 18 // The browser starts connecting asynchronously. |
21 // Once Socket Stream connection is established, the browser will send | 19 // Once Socket Stream connection is established, the browser will send |
22 // SocketStreamMsg_Connected back. | 20 // SocketStreamMsg_Connected back. |
23 IPC_MESSAGE_CONTROL2(SocketStreamHostMsg_Connect, | 21 IPC_MESSAGE_CONTROL2(SocketStreamHostMsg_Connect, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 60 |
63 // |amount_sent| bytes of data requested by | 61 // |amount_sent| bytes of data requested by |
64 // SocketStreamHostMsg_SendData has been sent on the Socket Stream. | 62 // SocketStreamHostMsg_SendData has been sent on the Socket Stream. |
65 IPC_MESSAGE_CONTROL2(SocketStreamMsg_SentData, | 63 IPC_MESSAGE_CONTROL2(SocketStreamMsg_SentData, |
66 int /* socket_id */, | 64 int /* socket_id */, |
67 int /* amount_sent */) | 65 int /* amount_sent */) |
68 | 66 |
69 // The Socket Stream is closed. | 67 // The Socket Stream is closed. |
70 IPC_MESSAGE_CONTROL1(SocketStreamMsg_Closed, | 68 IPC_MESSAGE_CONTROL1(SocketStreamMsg_Closed, |
71 int /* socket_id */) | 69 int /* socket_id */) |
OLD | NEW |