|
Add base::HostToNetXX() & NetToHostXX(), and use them to replace htonX() & ntohX() in Chrome.
This primarily addresses issues with code using the OS-provided htonX() & ntohX() functions from within the Chrome sandbox. Under Windows these functions are provided by ws2_32.dll, which is no longer available within Chrome's sandbox.
The new base::HostToNetXX() and NetToHostXX() functions are safe for use by sandboxed code on Windows, and provide a single place where future fixes for other platforms can be made.
BUG= 117252
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129476
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+163 lines, -110 lines) |
Patch |
 |
M |
base/sys_byteorder.h
|
View
|
1
|
3 chunks |
+52 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/web_socket_proxy.cc
|
View
|
1
2
3
4
|
7 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_parser.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/metrics/metrics_log_base.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/p2p/socket_host.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/p2p/socket_host_tcp.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/p2p/socket_host_test_utils.h
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
crypto/encryptor.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
crypto/p224.cc
|
View
|
1
|
2 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
 |
M |
crypto/symmetric_key_win.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
jingle/notifier/base/chrome_async_socket_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
native_client_sdk/src/build_tools/debug_server/debug_stub/transport_common.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/host_resolver_proc.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/ip_endpoint.cc
|
View
|
1
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/base/listen_socket.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/listen_socket_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/net_util.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+3 lines, -11 lines |
0 comments
|
Download
|
 |
M |
net/base/net_util_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/dns/dns_config_service_posix_unittest.cc
|
View
|
1
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/dns/dns_query.cc
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/dns/dns_response.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/dns/dns_test_util.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/dns/dns_transaction_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/server/web_socket.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/socks5_client_socket.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/socks5_client_socket_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/socks_client_socket.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/socket/web_socket_server_socket.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/private/net_address_private_impl.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/util/nigori.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 24 (0 generated)
|