Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / remoting / client / plugin / pepper_util.h
blob28987892a0c1d179abcdb581541a23c2ae19411d
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_
8 #include <stdint.h>
10 #include "base/callback_forward.h"
12 namespace pp {
13 class InstanceHandle;
14 class NetAddress;
17 namespace rtc {
18 class SocketAddress;
21 namespace remoting {
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,
28 uint16_t port);
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_