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

Side by Side Diff: ppapi/cpp/private/net_address_private.h

Issue 9235035: Add getter methods for sockaddr. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fixing errors found by review system. Created 8 years, 10 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 | Annotate | Revision Log
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_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_ 5 #ifndef PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_ 6 #define PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
(...skipping 10 matching lines...) Expand all
21 static bool AreEqual(const PP_NetAddress_Private& addr1, 21 static bool AreEqual(const PP_NetAddress_Private& addr1,
22 const PP_NetAddress_Private& addr2); 22 const PP_NetAddress_Private& addr2);
23 static bool AreHostsEqual(const PP_NetAddress_Private& addr1, 23 static bool AreHostsEqual(const PP_NetAddress_Private& addr1,
24 const PP_NetAddress_Private& addr2); 24 const PP_NetAddress_Private& addr2);
25 static std::string Describe(const PP_NetAddress_Private& addr, 25 static std::string Describe(const PP_NetAddress_Private& addr,
26 bool include_port); 26 bool include_port);
27 static bool ReplacePort(const PP_NetAddress_Private& addr_in, 27 static bool ReplacePort(const PP_NetAddress_Private& addr_in,
28 uint16_t port, 28 uint16_t port,
29 PP_NetAddress_Private* addr_out); 29 PP_NetAddress_Private* addr_out);
30 static void GetAnyAddress(bool is_ipv6, PP_NetAddress_Private* addr); 30 static void GetAnyAddress(bool is_ipv6, PP_NetAddress_Private* addr);
31 static uint16_t GetFamily(const PP_NetAddress_Private* addr);
32 static uint16_t GetPort(const PP_NetAddress_Private* addr);
33 static bool GetAddress(const PP_NetAddress_Private* addr, void* address,
34 uint16_t address_size);
31 }; 35 };
32 36
33 } // namespace pp 37 } // namespace pp
34 38
35 #endif // PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_ 39 #endif // PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698