1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_CLIENT_PLUGIN_PLUGIN_UTIL_H_
6 #define REMOTING_CLIENT_PLUGIN_PLUGIN_UTIL_H_
10 #include "base/callback_forward.h"
23 // Helpers to convert between different socket address representations.
24 bool SocketAddressToPpNetAddressWithPort(
25 const pp::InstanceHandle
& instance
,
26 const rtc::SocketAddress
& address
,
27 pp::NetAddress
* pp_net_address
,
29 bool SocketAddressToPpNetAddress(const pp::InstanceHandle
& instance
,
30 const rtc::SocketAddress
& address
,
31 pp::NetAddress
* pp_net_address
);
32 void PpNetAddressToSocketAddress(const pp::NetAddress
& pp_net_address
,
33 rtc::SocketAddress
* address
);
35 } // namespace remoting
37 #endif // REMOTING_CLIENT_PLUGIN_PLUGIN_UTIL_H_