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

Unified Diff: content/common/p2p_messages.h

Issue 193663003: Push remote hostname to P2P socket host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp_unittest.cc ('k') | content/common/p2p_socket_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/p2p_messages.h
diff --git a/content/common/p2p_messages.h b/content/common/p2p_messages.h
index 2394d8d243c5771c6d70d4e3fc3f450895c69002..9f64778d93733b3fa58d65b899f973165f2c4b80 100644
--- a/content/common/p2p_messages.h
+++ b/content/common/p2p_messages.h
@@ -9,7 +9,6 @@
#include "content/common/content_export.h"
#include "content/common/p2p_socket_type.h"
#include "ipc/ipc_message_macros.h"
-#include "net/base/ip_endpoint.h"
#include "net/base/net_util.h"
#include "third_party/libjingle/source/talk/base/asyncpacketsocket.h"
@@ -42,6 +41,11 @@ IPC_STRUCT_TRAITS_BEGIN(talk_base::PacketOptions)
IPC_STRUCT_TRAITS_MEMBER(packet_time_params)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::P2PHostAndIPEndPoint)
+ IPC_STRUCT_TRAITS_MEMBER(hostname)
+ IPC_STRUCT_TRAITS_MEMBER(ip_address)
+IPC_STRUCT_TRAITS_END()
+
// P2P Socket messages sent from the browser to the renderer.
IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged,
@@ -86,7 +90,7 @@ IPC_MESSAGE_CONTROL4(P2PHostMsg_CreateSocket,
content::P2PSocketType /* type */,
int /* socket_id */,
net::IPEndPoint /* local_address */,
- net::IPEndPoint /* remote_address */)
+ content::P2PHostAndIPEndPoint /* remote_address */)
IPC_MESSAGE_CONTROL3(P2PHostMsg_AcceptIncomingTcpConnection,
int /* listen_socket_id */,
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp_unittest.cc ('k') | content/common/p2p_socket_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698