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

Side by Side Diff: content/common/socket_stream_messages.h

Issue 9677031: Bind RenderViewImpl routing_id to SocketStreamHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reflects wtc's comments Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/common/content_export.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h" 11 #include "ipc/ipc_param_traits.h"
12 12
13 #undef IPC_MESSAGE_EXPORT 13 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 #define IPC_MESSAGE_START SocketStreamMsgStart 15 #define IPC_MESSAGE_START SocketStreamMsgStart
16 16
17 // Web Sockets messages sent from the renderer to the browser. 17 // Web Sockets messages sent from the renderer to the browser.
18 18
19 // 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|
20 // in the renderer process. 20 // in the renderer process.
21 // The browser starts connecting asynchronously. 21 // The browser starts connecting asynchronously.
22 // Once Socket Stream connection is established, the browser will send 22 // Once Socket Stream connection is established, the browser will send
23 // SocketStreamMsg_Connected back. 23 // SocketStreamMsg_Connected back.
24 IPC_MESSAGE_CONTROL2(SocketStreamHostMsg_Connect, 24 // |render_view_id| must be the routing id of RenderViewImpl to which the
25 // Socket Stream belongs.
26 IPC_MESSAGE_CONTROL3(SocketStreamHostMsg_Connect,
27 int /* render_view_id */,
25 GURL /* socket_url */, 28 GURL /* socket_url */,
26 int /* socket_id */) 29 int /* socket_id */)
27 30
28 // Request to send data on the Socket Stream. 31 // Request to send data on the Socket Stream.
29 // SocketStreamHandle can send data at most |max_pending_send_allowed| bytes, 32 // SocketStreamHandle can send data at most |max_pending_send_allowed| bytes,
30 // which is given by ViewMsg_SocketStream_Connected at any time. 33 // which is given by ViewMsg_SocketStream_Connected at any time.
31 // The number of pending bytes can be tracked by size of |data| sent 34 // The number of pending bytes can be tracked by size of |data| sent
32 // and |amount_sent| parameter of ViewMsg_SocketStream_DataSent. 35 // and |amount_sent| parameter of ViewMsg_SocketStream_DataSent.
33 // That is, the following constraints is applied: 36 // That is, the following constraints is applied:
34 // (accumulated total of |data|) - (accumulated total of |amount_sent|) 37 // (accumulated total of |data|) - (accumulated total of |amount_sent|)
(...skipping 28 matching lines...) Expand all
63 66
64 // |amount_sent| bytes of data requested by 67 // |amount_sent| bytes of data requested by
65 // SocketStreamHostMsg_SendData has been sent on the Socket Stream. 68 // SocketStreamHostMsg_SendData has been sent on the Socket Stream.
66 IPC_MESSAGE_CONTROL2(SocketStreamMsg_SentData, 69 IPC_MESSAGE_CONTROL2(SocketStreamMsg_SentData,
67 int /* socket_id */, 70 int /* socket_id */,
68 int /* amount_sent */) 71 int /* amount_sent */)
69 72
70 // The Socket Stream is closed. 73 // The Socket Stream is closed.
71 IPC_MESSAGE_CONTROL1(SocketStreamMsg_Closed, 74 IPC_MESSAGE_CONTROL1(SocketStreamMsg_Closed,
72 int /* socket_id */) 75 int /* socket_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698