Index: jingle/glue/utils.h |
diff --git a/jingle/glue/utils.h b/jingle/glue/utils.h |
index 895cf2c4fc771329c7eb17c139e433f740e5645f..803416a7abfe7f18b39bc454d72cdc7e9756b230 100644 |
--- a/jingle/glue/utils.h |
+++ b/jingle/glue/utils.h |
@@ -5,14 +5,20 @@ |
#ifndef JINGLE_GLUE_UTILS_H_ |
#define JINGLE_GLUE_UTILS_H_ |
+#include <string> |
+ |
namespace net { |
class IPEndPoint; |
} // namespace net |
namespace talk_base { |
- class SocketAddress; |
+class SocketAddress; |
} // namespace talk_base |
+namespace cricket { |
+class Candidate; |
+} // namespace cricket |
+ |
namespace jingle_glue { |
// Chromium and libjingle represent socket addresses differently. The |
@@ -23,6 +29,11 @@ bool IPEndPointToSocketAddress(const net::IPEndPoint& address_chrome, |
bool SocketAddressToIPEndPoint(const talk_base::SocketAddress& address_lj, |
net::IPEndPoint* address_chrome); |
+// Helper functions to serialize and deserialize P2P candidates. |
+std::string SerializeP2PCandidate(const cricket::Candidate& candidate); |
+bool DeserializeP2PCandidate(const std::string& address, |
+ cricket::Candidate* candidate); |
+ |
} // namespace jingle_glue |
#endif // JINGLE_GLUE_UTILS_H_ |