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

Side by Side Diff: ppapi/cpp/private/flash_net_address.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 // TODO(viettrungluu): This (and the .cc file) contain C++ wrappers for things
6 // in ppapi/c/private/ppb_flash_net_address.h. This is currently not used in
7 // (or even compiled with) Chromium.
8
9 #ifndef PPAPI_CPP_PRIVATE_FLASH_NET_ADDRESS_H_
10 #define PPAPI_CPP_PRIVATE_FLASH_NET_ADDRESS_H_
11
12 #include <string>
13
14 #include "ppapi/c/pp_stdint.h"
15
16 struct PP_Flash_NetAddress;
17
18 namespace pp {
19 namespace flash {
20
21 class NetAddress {
22 public:
23 static bool AreEqual(const PP_Flash_NetAddress& addr1,
24 const PP_Flash_NetAddress& addr2);
25 static bool AreHostsEqual(const PP_Flash_NetAddress& addr1,
26 const PP_Flash_NetAddress& addr2);
27 static std::string Describe(const PP_Flash_NetAddress& addr,
28 bool include_port);
29 static bool ReplacePort(const PP_Flash_NetAddress& addr_in,
30 uint16_t port,
31 PP_Flash_NetAddress* addr_out);
32 static void GetAnyAddress(bool is_ipv6, PP_Flash_NetAddress* addr);
33 };
34
35 } // namespace flash
36 } // namespace pp
37
38 #endif // PPAPI_CPP_PRIVATE_FLASH_NET_ADDRESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698