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

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

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 2 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 // IPC messages for the P2P Transport API. 5 // IPC messages for the P2P Transport API.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/p2p_sockets.h" 9 #include "content/common/p2p_sockets.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "net/base/ip_endpoint.h" 11 #include "net/base/ip_endpoint.h"
12 #include "net/base/net_util.h" 12 #include "net/base/net_util.h"
13 13
14 #undef IPC_MESSAGE_EXPORT 14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 #define IPC_MESSAGE_START P2PMsgStart 16 #define IPC_MESSAGE_START P2PMsgStart
17 17
18 IPC_ENUM_TRAITS(content::P2PSocketType) 18 IPC_ENUM_TRAITS(content::P2PSocketType)
19 IPC_ENUM_TRAITS(net::DiffServCodePoint)
19 20
20 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) 21 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface)
21 IPC_STRUCT_TRAITS_MEMBER(name) 22 IPC_STRUCT_TRAITS_MEMBER(name)
22 IPC_STRUCT_TRAITS_MEMBER(address) 23 IPC_STRUCT_TRAITS_MEMBER(address)
23 IPC_STRUCT_TRAITS_END() 24 IPC_STRUCT_TRAITS_END()
24 25
25 // P2P Socket messages sent from the browser to the renderer. 26 // P2P Socket messages sent from the browser to the renderer.
26 27
27 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged, 28 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged,
28 net::NetworkInterfaceList /* networks */) 29 net::NetworkInterfaceList /* networks */)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 int /* socket_id */, 67 int /* socket_id */,
67 net::IPEndPoint /* local_address */, 68 net::IPEndPoint /* local_address */,
68 net::IPEndPoint /* remote_address */) 69 net::IPEndPoint /* remote_address */)
69 70
70 IPC_MESSAGE_CONTROL3(P2PHostMsg_AcceptIncomingTcpConnection, 71 IPC_MESSAGE_CONTROL3(P2PHostMsg_AcceptIncomingTcpConnection,
71 int /* listen_socket_id */, 72 int /* listen_socket_id */,
72 net::IPEndPoint /* remote_address */, 73 net::IPEndPoint /* remote_address */,
73 int /* connected_socket_id */) 74 int /* connected_socket_id */)
74 75
75 // TODO(sergeyu): Use shared memory to pass the data. 76 // TODO(sergeyu): Use shared memory to pass the data.
76 IPC_MESSAGE_CONTROL4(P2PHostMsg_Send, 77 IPC_MESSAGE_CONTROL5(P2PHostMsg_Send,
77 int /* socket_id */, 78 int /* socket_id */,
78 net::IPEndPoint /* socket_address */, 79 net::IPEndPoint /* socket_address */,
79 std::vector<char> /* data */, 80 std::vector<char> /* data */,
81 net::DiffServCodePoint /* dscp */,
80 uint64 /* packet_id */) 82 uint64 /* packet_id */)
81 83
82 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, 84 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket,
83 int /* socket_id */) 85 int /* socket_id */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp_unittest.cc ('k') | content/renderer/p2p/socket_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698