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

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

Issue 8511032: Make the Pepper Flash net address just private, not Flash-specific. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_
7
8 #include <string>
9
10 #include "ppapi/c/pp_stdint.h"
11
12 struct PP_NetAddress_Private;
13
14 namespace pp {
15
16 class NetAddress {
17 public:
18 static bool AreEqual(const PP_NetAddress_Private& addr1,
19 const PP_NetAddress_Private& addr2);
20 static bool AreHostsEqual(const PP_NetAddress_Private& addr1,
21 const PP_NetAddress_Private& addr2);
22 static std::string Describe(const PP_NetAddress_Private& addr,
23 bool include_port);
24 static bool ReplacePort(const PP_NetAddress_Private& addr_in,
25 uint16_t port,
26 PP_NetAddress_Private* addr_out);
27 static void GetAnyAddress(bool is_ipv6, PP_NetAddress_Private* addr);
28 };
29
30 } // namespace pp
31
32 #endif // PPAPI_CPP_PRIVATE_NET_ADDRESS_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698