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

Issue 8949026: Move net/base/sys_byteorder.h to base/sys_byteorder.h (Closed)

Created:
9 years ago by Ilya Sherman
Modified:
8 years, 11 months ago
CC:
chromium-reviews, ncarter (slow), nkostylev+watch_chromium.org, Raghu Simha, Paweł Hajdan Jr., jam, cbentzel+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org, brettw-cc_chromium.org, stevenjb+watch_chromium.org, mmenke, tim (not reviewing), akalin, ramant (doing other things), Ryan Sleevi, rvargas (doing something else), wtc, Alpha Left Google
Visibility:
Public.

Description

Move net/base/sys_byteorder.h to base/sys_byteorder.h Two motivations: (1) There are currently clients in src/crypto that need the same logic. (2) There is soon to be a client in src/chrome/common that needs the 64-bit version of this logic, which is currently inlined in a src/crypto implementation file. BUG=103480 TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115926

Patch Set 1 #

Total comments: 4

Patch Set 2 : De-nitting #

Patch Set 3 : Once more, with feeling #

Total comments: 5

Patch Set 4 : Inline functions #

Patch Set 5 : Update comment #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Add documentation, fix Windows compile #

Total comments: 4

Patch Set 8 : Denitting, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -121 lines) Patch
M base/base.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A base/sys_byteorder.h View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/web_socket_proxy.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_parser.cc View 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/sync/util/nigori.cc View 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_test_utils.h View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_udp_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/p2p/ipc_network_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/encryptor.cc View 1 2 3 2 chunks +4 lines, -32 lines 0 comments Download
M crypto/p224.cc View 1 chunk +1 line, -8 lines 0 comments Download
M jingle/notifier/base/chrome_async_socket_unittest.cc View 2 chunks +1 line, -6 lines 0 comments Download
M jingle/notifier/communicator/xmpp_connection_generator.cc View 1 chunk +1 line, -6 lines 0 comments Download
D net/base/sys_byteorder.h View 1 chunk +0 lines, -22 lines 0 comments Download
M net/dns/dns_config_service_posix_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_query.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_response.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M net/server/http_server.cc View 1 chunk +1 line, -6 lines 0 comments Download
M net/server/web_socket.cc View 2 chunks +3 lines, -8 lines 0 comments Download
M net/socket/web_socket_server_socket.cc View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
M net/spdy/spdy_frame_builder.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_framer.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_protocol.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ppapi/shared_impl/private/net_address_private_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Ilya Sherman
Brett, are you ok with this hearder's new location, or do you think there's a ...
9 years ago (2011-12-21 02:13:07 UTC) #1
Ryan Sleevi
http://codereview.chromium.org/8949026/diff/1/base/base.gypi File base/base.gypi (right): http://codereview.chromium.org/8949026/diff/1/base/base.gypi#newcode294 base/base.gypi:294: 'base/sys_byteorder.h', typo: base/sys_byteorder.h -> sys_byteorder.h http://codereview.chromium.org/8949026/diff/1/base/sys_byteorder.h File base/sys_byteorder.h (right): ...
9 years ago (2011-12-21 02:18:37 UTC) #2
Ilya Sherman
Thanks for catching those -- both fixed. http://codereview.chromium.org/8949026/diff/1/base/base.gypi File base/base.gypi (right): http://codereview.chromium.org/8949026/diff/1/base/base.gypi#newcode294 base/base.gypi:294: 'base/sys_byteorder.h', On ...
9 years ago (2011-12-21 02:22:13 UTC) #3
brettw
http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h#newcode27 base/sys_byteorder.h:27: #define bswap_16(x) _byteswap_ushort(x) Did we consider writing real inline ...
9 years ago (2011-12-21 17:48:13 UTC) #4
Ilya Sherman
http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h#newcode27 base/sys_byteorder.h:27: #define bswap_16(x) _byteswap_ushort(x) On 2011/12/21 17:48:14, brettw wrote: > ...
9 years ago (2011-12-21 19:43:07 UTC) #5
Ryan Sleevi
http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h#newcode27 base/sys_byteorder.h:27: #define bswap_16(x) _byteswap_ushort(x) On 2011/12/21 19:43:08, Ilya Sherman wrote: ...
9 years ago (2011-12-21 19:49:10 UTC) #6
wtc
http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h#newcode27 base/sys_byteorder.h:27: #define bswap_16(x) _byteswap_ushort(x) On 2011/12/21 17:48:14, brettw wrote: > ...
9 years ago (2011-12-23 00:37:21 UTC) #7
Ilya Sherman
http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/29/base/sys_byteorder.h#newcode27 base/sys_byteorder.h:27: #define bswap_16(x) _byteswap_ushort(x) On 2011/12/23 00:37:22, wtc wrote: > ...
9 years ago (2011-12-23 02:31:28 UTC) #8
brettw
http://codereview.chromium.org/8949026/diff/14003/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/14003/base/sys_byteorder.h#newcode50 base/sys_byteorder.h:50: inline uint64_t ntohll(uint64_t x) { Can these have documentation? ...
8 years, 12 months ago (2011-12-25 00:16:01 UTC) #9
Ilya Sherman
http://codereview.chromium.org/8949026/diff/14003/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/14003/base/sys_byteorder.h#newcode50 base/sys_byteorder.h:50: inline uint64_t ntohll(uint64_t x) { On 2011/12/25 00:16:01, brettw ...
8 years, 12 months ago (2011-12-26 08:05:25 UTC) #10
brettw
lgtm
8 years, 12 months ago (2011-12-26 18:36:31 UTC) #11
Ilya Sherman
Seeking OWNERS reviews for src/crypto (Ryan?), src/net (Eric?), and src/jingle (Fred?).
8 years, 12 months ago (2011-12-28 00:14:36 UTC) #12
Ryan Sleevi
crypto LGTM
8 years, 12 months ago (2011-12-28 00:29:25 UTC) #13
eroman
LGTM for net/* http://codereview.chromium.org/8949026/diff/19001/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/19001/base/sys_byteorder.h#newcode25 base/sys_byteorder.h:25: // Include headers to provide bswap ...
8 years, 12 months ago (2011-12-28 00:50:20 UTC) #14
Ilya Sherman
http://codereview.chromium.org/8949026/diff/19001/base/sys_byteorder.h File base/sys_byteorder.h (right): http://codereview.chromium.org/8949026/diff/19001/base/sys_byteorder.h#newcode25 base/sys_byteorder.h:25: // Include headers to provide bswap for all platforms. ...
8 years, 12 months ago (2011-12-28 01:20:00 UTC) #15
Nicolas Zea
LGTM
8 years, 11 months ago (2011-12-28 21:05:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8949026/27001
8 years, 11 months ago (2011-12-28 21:07:04 UTC) #17
commit-bot: I haz the power
8 years, 11 months ago (2011-12-28 23:18:25 UTC) #18
Change committed as 115926

Powered by Google App Engine
This is Rietveld 408576698