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

Unified Diff: jingle/glue/utils.h

Issue 1405963021: Add support for default local address in IpcNetworkManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IPAddressNumberToIPAddress. Created 5 years, 1 month 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
Index: jingle/glue/utils.h
diff --git a/jingle/glue/utils.h b/jingle/glue/utils.h
index cb42b4baa4223425c5ff2b6f63500f15c30e8438..43b5251d4c8fdf661cf7af1e137f74d41a37409b 100644
--- a/jingle/glue/utils.h
+++ b/jingle/glue/utils.h
@@ -7,11 +7,14 @@
#include <string>
+#include "net/base/ip_address_number.h"
+
namespace net {
class IPEndPoint;
} // namespace net
namespace rtc {
+class IPAddress;
class SocketAddress;
} // namespace rtc
@@ -29,6 +32,9 @@ bool IPEndPointToSocketAddress(const net::IPEndPoint& ip_endpoint,
bool SocketAddressToIPEndPoint(const rtc::SocketAddress& address,
net::IPEndPoint* ip_endpoint);
+bool IPAddressNumberToIPAddress(const net::IPAddressNumber& ip_address_number,
+ rtc::IPAddress* ip_address);
+
// Helper functions to serialize and deserialize P2P candidates.
std::string SerializeP2PCandidate(const cricket::Candidate& candidate);
bool DeserializeP2PCandidate(const std::string& address,

Powered by Google App Engine
This is Rietveld 408576698