Record MTU discovery packets in net-internals log.
[chromium-blink-merge.git] / ppapi / thunk / ppb_net_address_api.h
blob7ae9d7f87874b2db13013d8dc3db097255d9ee5d
1 // Copyright 2013 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 PPAPI_THUNK_PPB_NET_ADDRESS_API_H_
6 #define PPAPI_THUNK_PPB_NET_ADDRESS_API_H_
8 #include "ppapi/c/ppb_net_address.h"
9 #include "ppapi/thunk/ppapi_thunk_export.h"
11 struct PP_NetAddress_Private;
13 namespace ppapi {
14 namespace thunk {
16 class PPAPI_THUNK_EXPORT PPB_NetAddress_API {
17 public:
18 virtual ~PPB_NetAddress_API() {}
20 virtual PP_NetAddress_Family GetFamily() = 0;
21 virtual PP_Var DescribeAsString(PP_Bool include_port) = 0;
22 virtual PP_Bool DescribeAsIPv4Address(PP_NetAddress_IPv4* ipv4_addr) = 0;
23 virtual PP_Bool DescribeAsIPv6Address(PP_NetAddress_IPv6* ipv6_addr) = 0;
25 virtual const PP_NetAddress_Private& GetNetAddressPrivate() = 0;
28 } // namespace thunk
29 } // namespace ppapi
31 #endif // PPAPI_THUNK_PPB_NET_ADDRESS_API_H_