| 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_
|
|
|