Chromium Code Reviews| 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_ |