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

Unified Diff: content/common/p2p_socket_type.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/common/p2p_messages.h ('k') | content/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/p2p_socket_type.h
diff --git a/content/common/p2p_socket_type.h b/content/common/p2p_socket_type.h
index 1dfe059d234ab16fc1a3d2bf1cfdf29cdd72b9b5..f05a95d0dc417a13da99617ff0cf4564c56bf810 100644
--- a/content/common/p2p_socket_type.h
+++ b/content/common/p2p_socket_type.h
@@ -8,6 +8,8 @@
#ifndef CONTENT_COMMON_P2P_SOCKET_TYPE_H_
#define CONTENT_COMMON_P2P_SOCKET_TYPE_H_
Sergey Ulanov 2014/03/11 22:02:16 also need to include <string> here
Mallinath (Gone from Chromium) 2014/03/11 22:31:03 Done.
+#include "net/base/ip_endpoint.h"
+
namespace content {
enum P2PSocketOption {
@@ -31,6 +33,19 @@ enum P2PSocketType {
P2P_SOCKET_TYPE_LAST = P2P_SOCKET_STUN_TLS_CLIENT
};
+// Struct which carries both resolved IP address and host string literal.
+// Port number will be part of |ip_address|.
+struct P2PHostAndIPEndPoint {
+ P2PHostAndIPEndPoint() {}
+ P2PHostAndIPEndPoint(const std::string& hostname,
+ const net::IPEndPoint& ip_address)
+ : hostname(hostname), ip_address(ip_address) {
+ }
+
+ std::string hostname;
+ net::IPEndPoint ip_address;
+};
+
} // namespace content
#endif // CONTENT_COMMON_P2P_SOCKET_TYPE_H_
« no previous file with comments | « content/common/p2p_messages.h ('k') | content/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698