diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 23:20:07 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-21 23:20:07 +0000 |
commit | 91ed478bd7f9865336dcdcb72a12fadf97c817e4 (patch) | |
tree | deac2e8afead85d985de9908ac74b4bf831b5e91 /content/common/p2p_messages.h | |
parent | a685636f80c1d1138e29c34878390d0fb45f4237 (diff) | |
download | chromium_src-91ed478bd7f9865336dcdcb72a12fadf97c817e4.zip chromium_src-91ed478bd7f9865336dcdcb72a12fadf97c817e4.tar.gz chromium_src-91ed478bd7f9865336dcdcb72a12fadf97c817e4.tar.bz2 |
Implement IpcNetworkManger
BUG=79494
TEST=None
Review URL: http://codereview.chromium.org/6882047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82579 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/p2p_messages.h')
-rw-r--r-- | content/common/p2p_messages.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/content/common/p2p_messages.h b/content/common/p2p_messages.h index 1d10e01..e5010dd 100644 --- a/content/common/p2p_messages.h +++ b/content/common/p2p_messages.h @@ -8,13 +8,22 @@ #include "content/common/p2p_sockets.h" #include "ipc/ipc_message_macros.h" #include "net/base/ip_endpoint.h" +#include "net/base/net_util.h" #define IPC_MESSAGE_START P2PMsgStart IPC_ENUM_TRAITS(P2PSocketType) +IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) + IPC_STRUCT_TRAITS_MEMBER(name) + IPC_STRUCT_TRAITS_MEMBER(address) +IPC_STRUCT_TRAITS_END() + // P2P Socket messages sent from the browser to the renderer. +IPC_MESSAGE_ROUTED1(P2PMsg_NetworkList, + net::NetworkInterfaceList /* networks */) + IPC_MESSAGE_ROUTED2(P2PMsg_OnSocketCreated, int /* socket_id */, net::IPEndPoint /* socket_address */) @@ -33,6 +42,8 @@ IPC_MESSAGE_ROUTED3(P2PMsg_OnDataReceived, // P2P Socket messages sent from the renderer to the browser. +IPC_MESSAGE_ROUTED0(P2PHostMsg_GetNetworkList) + IPC_MESSAGE_ROUTED4(P2PHostMsg_CreateSocket, P2PSocketType /* type */, int /* socket_id */, |