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

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

Issue 8949026: Move net/base/sys_byteorder.h to base/sys_byteorder.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Denitting, rebase Created 8 years, 12 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
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ppapi/shared_impl/private/net_address_private_impl.h" 5 #include "ppapi/shared_impl/private/net_address_private_impl.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
14 #include "base/sys_byteorder.h"
14 #include "build/build_config.h" 15 #include "build/build_config.h"
15 #include "net/base/address_list.h" 16 #include "net/base/address_list.h"
16 #include "net/base/ip_endpoint.h" 17 #include "net/base/ip_endpoint.h"
17 #include "net/base/net_util.h" 18 #include "net/base/net_util.h"
18 #include "net/base/sys_addrinfo.h" 19 #include "net/base/sys_addrinfo.h"
19 #include "net/base/sys_byteorder.h"
20 #include "ppapi/c/pp_var.h" 20 #include "ppapi/c/pp_var.h"
21 #include "ppapi/c/private/ppb_net_address_private.h" 21 #include "ppapi/c/private/ppb_net_address_private.h"
22 #include "ppapi/shared_impl/var.h" 22 #include "ppapi/shared_impl/var.h"
23 #include "ppapi/thunk/thunk.h" 23 #include "ppapi/thunk/thunk.h"
24 24
25 #if defined(OS_MACOSX) 25 #if defined(OS_MACOSX)
26 // This is a bit evil, but it's standard operating procedure for |s6_addr|.... 26 // This is a bit evil, but it's standard operating procedure for |s6_addr|....
27 #define s6_addr16 __u6_addr.__u6_addr16 27 #define s6_addr16 __u6_addr.__u6_addr16
28 #endif 28 #endif
29 29
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 net::IPEndPoint ip_end_point; 369 net::IPEndPoint ip_end_point;
370 if (!NetAddressToIPEndPoint(net_addr, &ip_end_point)) 370 if (!NetAddressToIPEndPoint(net_addr, &ip_end_point))
371 return false; 371 return false;
372 372
373 *address_list = net::AddressList::CreateFromIPAddress(ip_end_point.address(), 373 *address_list = net::AddressList::CreateFromIPAddress(ip_end_point.address(),
374 ip_end_point.port()); 374 ip_end_point.port());
375 return true; 375 return true;
376 } 376 }
377 377
378 } // namespace ppapi 378 } // namespace ppapi
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698