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

Side by Side Diff: ppapi/shared_impl/private/net_address_private_impl.h

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo: SetMulticastInterface -> SetMulticastTimeToLive Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_
6 #define PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 uint16 port, 30 uint16 port,
31 PP_NetAddress_Private* net_addr); 31 PP_NetAddress_Private* net_addr);
32 32
33 static bool NetAddressToIPEndPoint(const PP_NetAddress_Private& net_addr, 33 static bool NetAddressToIPEndPoint(const PP_NetAddress_Private& net_addr,
34 std::vector<unsigned char>* address, 34 std::vector<unsigned char>* address,
35 uint16* port); 35 uint16* port);
36 36
37 static std::string DescribeNetAddress(const PP_NetAddress_Private& addr, 37 static std::string DescribeNetAddress(const PP_NetAddress_Private& addr,
38 bool include_port); 38 bool include_port);
39 39
40 static void GetAnyAddress(PP_Bool is_ipv6, PP_NetAddress_Private* addr);
41
40 // Conversion methods to make PPB_NetAddress resource work with 42 // Conversion methods to make PPB_NetAddress resource work with
41 // PP_NetAddress_Private. 43 // PP_NetAddress_Private.
42 // TODO(yzshen): Remove them once PPB_NetAddress resource doesn't use 44 // TODO(yzshen): Remove them once PPB_NetAddress resource doesn't use
43 // PP_NetAddress_Private as storage type. 45 // PP_NetAddress_Private as storage type.
44 static void CreateNetAddressPrivateFromIPv4Address( 46 static void CreateNetAddressPrivateFromIPv4Address(
45 const PP_NetAddress_IPv4& ipv4_addr, 47 const PP_NetAddress_IPv4& ipv4_addr,
46 PP_NetAddress_Private* addr); 48 PP_NetAddress_Private* addr);
47 static void CreateNetAddressPrivateFromIPv6Address( 49 static void CreateNetAddressPrivateFromIPv6Address(
48 const PP_NetAddress_IPv6& ipv6_addr, 50 const PP_NetAddress_IPv6& ipv6_addr,
49 PP_NetAddress_Private* addr); 51 PP_NetAddress_Private* addr);
50 static PP_NetAddress_Family GetFamilyFromNetAddressPrivate( 52 static PP_NetAddress_Family GetFamilyFromNetAddressPrivate(
51 const PP_NetAddress_Private& addr); 53 const PP_NetAddress_Private& addr);
52 static bool DescribeNetAddressPrivateAsIPv4Address( 54 static bool DescribeNetAddressPrivateAsIPv4Address(
53 const PP_NetAddress_Private& addr, 55 const PP_NetAddress_Private& addr,
54 PP_NetAddress_IPv4* ipv4_addr); 56 PP_NetAddress_IPv4* ipv4_addr);
55 static bool DescribeNetAddressPrivateAsIPv6Address( 57 static bool DescribeNetAddressPrivateAsIPv6Address(
56 const PP_NetAddress_Private& addr, 58 const PP_NetAddress_Private& addr,
57 PP_NetAddress_IPv6* ipv6_addr); 59 PP_NetAddress_IPv6* ipv6_addr);
58 60
59 static const PP_NetAddress_Private kInvalidNetAddress; 61 static const PP_NetAddress_Private kInvalidNetAddress;
60 62
61 private: 63 private:
62 DISALLOW_IMPLICIT_CONSTRUCTORS(NetAddressPrivateImpl); 64 DISALLOW_IMPLICIT_CONSTRUCTORS(NetAddressPrivateImpl);
63 }; 65 };
64 66
65 } // namespace ppapi 67 } // namespace ppapi
66 68
67 #endif // PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ 69 #endif // PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/udp_socket_resource_base.cc ('k') | ppapi/shared_impl/private/net_address_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698