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