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

Unified Diff: jingle/glue/utils.h

Issue 7551034: Move P2P candidate serialization/deserialization to jingle/glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 5 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/renderer/p2p/p2p_transport_impl.cc ('k') | jingle/glue/utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/renderer/p2p/p2p_transport_impl.cc ('k') | jingle/glue/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698