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

Unified Diff: remoting/client/plugin/pepper_util.h

Issue 10384171: Fix PepperPortAllocator to resolve STUN addresses using HostResolverPrivate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/client/plugin/pepper_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_util.h
diff --git a/remoting/client/plugin/pepper_util.h b/remoting/client/plugin/pepper_util.h
index 80ab630b6611e2a2805601455645db7a796159da..b106b2f4eab55145a86fcec35ffd35ac4a4d409f 100644
--- a/remoting/client/plugin/pepper_util.h
+++ b/remoting/client/plugin/pepper_util.h
@@ -10,6 +10,12 @@
#include "ppapi/cpp/completion_callback.h"
+struct PP_NetAddress_Private;
+
+namespace talk_base {
+class SocketAddress;
+} // namespace talk_base
+
namespace remoting {
// Adapts a base::Callback to a pp::CompletionCallback, which may be passed to
@@ -17,6 +23,15 @@ namespace remoting {
// |callback| will be leaked, including references & passed values bound to it.
pp::CompletionCallback PpCompletionCallback(base::Callback<void(int)> callback);
+// Helpers to convert between different socket address representations.
+bool SocketAddressToPpAddressWithPort(const talk_base::SocketAddress& address,
+ PP_NetAddress_Private* pp_address,
+ uint16_t port);
+bool SocketAddressToPpAddress(const talk_base::SocketAddress& address,
+ PP_NetAddress_Private* pp_address);
+bool PpAddressToSocketAddress(const PP_NetAddress_Private& pp_address,
+ talk_base::SocketAddress* address);
+
} // namespace remoting
#endif // REMOTING_CLIENT_PLUGIN_PLUGIN_UTIL_H_
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/client/plugin/pepper_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698