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

Issue 718273002: Use uint16 for port numbers, net/ edition (Closed)

Created:
6 years, 1 month ago by Peter Kasting
Modified:
6 years, 1 month ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use uint16 for port numbers, net/ edition This is a piece of a larger CL, split up to avoid overwhelming reviewers. The entire CL can be viewed at https://codereview.chromium.org/655063002/ . The intent is to get each piece reviewed separately, then finally land the large CL after all parts have been approved. BUG=81439 TEST=none

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 13

Patch Set 3 : Review comment #

Total comments: 29

Patch Set 4 : Review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -144 lines) Patch
M chrome/browser/extensions/api/socket/tcp_socket_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M net/base/host_mapping_rules.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/host_port_pair.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M net/base/ip_endpoint.h View 2 chunks +3 lines, -3 lines 1 comment Download
M net/base/ip_endpoint.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/ip_endpoint_unittest.cc View 8 chunks +9 lines, -9 lines 0 comments Download
M net/base/net_util.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/dns_config_service_win_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M net/dns/host_resolver.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/dns/mock_host_resolver.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/ftp/ftp_network_transaction.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/ftp/ftp_network_transaction.cc View 2 chunks +12 lines, -8 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_server_properties_manager.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 3 chunks +6 lines, -10 lines 0 comments Download
M net/proxy/proxy_server.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/quic_connection.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/test_tools/quic_test_utils.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/socket/client_socket_pool_manager.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M net/socket/server_socket.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/socket/server_socket.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socket_test_util.h View 3 chunks +4 lines, -4 lines 0 comments Download
M net/socket/socket_test_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/tcp_listen_socket.h View 2 chunks +5 lines, -20 lines 0 comments Download
M net/socket/tcp_listen_socket.cc View 4 chunks +5 lines, -15 lines 0 comments Download
M net/socket/tcp_server_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/tcp_socket_unittest.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M net/socket/transport_client_socket_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/socket/unix_domain_server_socket_posix.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/unix_domain_server_socket_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/hpack_huffman_aggregator.cc View 1 2 3 3 chunks +4 lines, -9 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/test/embedded_test_server/embedded_test_server_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/tools/gdig/gdig.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M net/udp/udp_socket_unittest.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M net/udp/udp_socket_win.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
Peter Kasting
This is not an independent CL; please see the description for a link to the ...
6 years, 1 month ago (2014-11-12 23:54:31 UTC) #2
mmenke
I need to really carefully go over this, and make sure we aren't breaking anything. ...
6 years, 1 month ago (2014-11-13 16:00:43 UTC) #3
Peter Kasting
On 2014/11/13 16:00:43, mmenke wrote: > I need to really carefully go over this, and ...
6 years, 1 month ago (2014-11-14 20:42:53 UTC) #4
mmenke
https://codereview.chromium.org/718273002/diff/20001/net/base/ip_endpoint_unittest.cc File net/base/ip_endpoint_unittest.cc (right): https://codereview.chromium.org/718273002/diff/20001/net/base/ip_endpoint_unittest.cc#newcode32 net/base/ip_endpoint_unittest.cc:32: uint16 test_count = static_cast<uint16>(arraysize(tests)); On 2014/11/14 20:42:53, Peter Kasting ...
6 years, 1 month ago (2014-11-14 21:05:53 UTC) #5
mmenke
On 2014/11/14 20:42:53, Peter Kasting wrote: > On 2014/11/13 16:00:43, mmenke wrote: > > I ...
6 years, 1 month ago (2014-11-17 20:10:01 UTC) #6
Peter Kasting
On 2014/11/17 20:10:01, mmenke wrote: > On 2014/11/14 20:42:53, Peter Kasting wrote: > > On ...
6 years, 1 month ago (2014-11-17 22:14:42 UTC) #7
mmenke
Ok, this looks good. Could you check that files you've added uint16 to include basictypes.h? ...
6 years, 1 month ago (2014-11-18 21:06:40 UTC) #8
mmenke
Oh, also need to merge - I modified one of the lines you touched (Line ...
6 years, 1 month ago (2014-11-18 21:24:50 UTC) #9
Peter Kasting
New snap up. I verified that in all the files where I had referenced uint16, ...
6 years, 1 month ago (2014-11-18 23:38:43 UTC) #10
mmenke
LGTM, thanks for doing this! https://codereview.chromium.org/718273002/diff/60001/net/base/ip_endpoint.h File net/base/ip_endpoint.h (right): https://codereview.chromium.org/718273002/diff/60001/net/base/ip_endpoint.h#newcode28 net/base/ip_endpoint.h:28: IPEndPoint(const IPEndPoint& endpoint); While ...
6 years, 1 month ago (2014-11-19 15:29:22 UTC) #11
Peter Kasting
On 2014/11/19 15:29:22, mmenke wrote: > LGTM, thanks for doing this! > > https://codereview.chromium.org/718273002/diff/60001/net/base/ip_endpoint.h > ...
6 years, 1 month ago (2014-11-19 22:41:28 UTC) #12
Peter Kasting
On 2014/11/19 22:41:28, Peter Kasting wrote: > On 2014/11/19 15:29:22, mmenke wrote: > > LGTM, ...
6 years, 1 month ago (2014-11-20 00:39:56 UTC) #13
mmenke
6 years, 1 month ago (2014-11-20 06:07:06 UTC) #14
On 2014/11/20 00:39:56, Peter Kasting wrote:
> On 2014/11/19 22:41:28, Peter Kasting wrote:
> > On 2014/11/19 15:29:22, mmenke wrote:
> > > LGTM, thanks for doing this!
> > > 
> > >
https://codereview.chromium.org/718273002/diff/60001/net/base/ip_endpoint.h
> > > File net/base/ip_endpoint.h (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/718273002/diff/60001/net/base/ip_endpoint.h#n...
> > > net/base/ip_endpoint.h:28: IPEndPoint(const IPEndPoint& endpoint);
> > > While you're here, mind adding explicit to the last constructor?
> > 
> > Sure.  Will do it on the main CL.
> 
> Update -- I should have realized this isn't right, it's the copy constructor,
so
> making it explicit breaks e.g. returning IPEndPoint by value from functions. 
> Reverting the change (again, on the main CL).

Oops, sorry about that.

Powered by Google App Engine
This is Rietveld 408576698