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

Issue 10161005: Add DefaultListenSocket. (Closed)

Created:
8 years, 8 months ago by Philippe
Modified:
8 years, 7 months ago
CC:
Marshall, pfeldman, willchan no longer on Chromium, chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Refactor TCPListenSocket. This is part of Chrome for Android upstreaming. This CL adds a common base class, StreamListenSocket, providing a default implementation inherited by TCPListenSocket and the upcoming UnixDomainSocket. That lets us share the common code used by both TCPListenSocket and UnixDomainSocket. This also removes the recently introduced ListenSocket class which is unnecessary now we have StreamListenSocket. TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137387

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update #

Patch Set 3 : Fix year in license header #

Total comments: 30

Patch Set 4 : Address Matt's comments #

Total comments: 14

Patch Set 5 : Address Matt's comments #

Patch Set 6 : Sync #

Patch Set 7 : Fix unit test failure #

Patch Set 8 : Fix build on Windows #

Patch Set 9 : Sync #

Patch Set 10 : Sync #

Patch Set 11 : Sync #

Patch Set 12 : Fix build on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -768 lines) Patch
M chrome_frame/test/test_server.h View 1 2 3 4 5 6 7 14 chunks +33 lines, -26 lines 0 comments Download
M chrome_frame/test/test_server.cc View 1 2 3 9 chunks +20 lines, -14 lines 0 comments Download
M chrome_frame/test/test_with_web_server.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
D net/base/listen_socket.h View 1 2 3 4 5 1 chunk +0 lines, -64 lines 0 comments Download
D net/base/listen_socket.cc View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
A net/base/stream_listen_socket.h View 1 2 3 4 5 6 7 8 1 chunk +152 lines, -0 lines 0 comments Download
A + net/base/stream_listen_socket.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +67 lines, -108 lines 0 comments Download
M net/base/tcp_listen_socket.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -94 lines 0 comments Download
M net/base/tcp_listen_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +26 lines, -347 lines 0 comments Download
M net/base/tcp_listen_socket_unittest.h View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -9 lines 0 comments Download
M net/base/tcp_listen_socket_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M net/server/http_connection.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M net/server/http_connection.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/server/http_server.h View 1 2 3 4 5 4 chunks +9 lines, -8 lines 0 comments Download
M net/server/http_server.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M net/socket/transport_client_socket_unittest.cc View 1 2 3 4 5 chunks +10 lines, -9 lines 0 comments Download
M net/tools/fetch/http_listen_socket.h View 1 2 3 4 4 chunks +17 lines, -13 lines 0 comments Download
M net/tools/fetch/http_listen_socket.cc View 1 2 3 4 8 chunks +27 lines, -32 lines 0 comments Download
M net/tools/fetch/http_server.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M net/tools/fetch/http_session.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
Philippe
http://codereview.chromium.org/10161005/diff/1/net/socket/transport_client_socket_unittest.cc File net/socket/transport_client_socket_unittest.cc (right): http://codereview.chromium.org/10161005/diff/1/net/socket/transport_client_socket_unittest.cc#newcode34 net/socket/transport_client_socket_unittest.cc:34: } // namespace This change is needed to make ...
8 years, 8 months ago (2012-04-24 12:49:04 UTC) #1
mmenke
Sorry I didn't get to this yesterday. A number of these comments are about the ...
8 years, 8 months ago (2012-04-25 17:25:30 UTC) #2
mmenke
http://codereview.chromium.org/10161005/diff/12003/net/base/default_listen_socket.h File net/base/default_listen_socket.h (right): http://codereview.chromium.org/10161005/diff/12003/net/base/default_listen_socket.h#newcode61 net/base/default_listen_socket.h:61: static SOCKET Accept(SOCKET s); On 2012/04/25 17:25:31, Matt Menke ...
8 years, 8 months ago (2012-04-25 17:27:20 UTC) #3
Philippe
Hi Matt, Thanks for your comments. I'm in a team offsite until Thursday, therefore I ...
8 years, 7 months ago (2012-04-30 06:55:21 UTC) #4
mmenke
This is looking pretty good to me. Just nits. http://codereview.chromium.org/10161005/diff/12003/net/base/default_listen_socket.h File net/base/default_listen_socket.h (right): http://codereview.chromium.org/10161005/diff/12003/net/base/default_listen_socket.h#newcode41 net/base/default_listen_socket.h:41: ...
8 years, 7 months ago (2012-04-30 19:11:44 UTC) #5
Philippe
http://codereview.chromium.org/10161005/diff/29017/net/base/stream_listen_socket.cc File net/base/stream_listen_socket.cc (right): http://codereview.chromium.org/10161005/diff/29017/net/base/stream_listen_socket.cc#newcode128 net/base/stream_listen_socket.cc:128: if (listen(socket_, backlog) == -1) { On 2012/04/30 19:11:44, ...
8 years, 7 months ago (2012-05-03 14:27:52 UTC) #6
Philippe
I'm adding Erik Wright for changes in chrome_frame/.
8 years, 7 months ago (2012-05-03 14:30:35 UTC) #7
erikwright (departed)
LGTM for the changes in chrome_frame/ .
8 years, 7 months ago (2012-05-03 18:10:04 UTC) #8
Philippe
On 2012/05/03 18:10:04, erikwright wrote: > LGTM for the changes in chrome_frame/ . I'm currently ...
8 years, 7 months ago (2012-05-04 11:50:45 UTC) #9
mmenke
On 2012/05/04 11:50:45, Philippe wrote: > On 2012/05/03 18:10:04, erikwright wrote: > > LGTM for ...
8 years, 7 months ago (2012-05-04 15:09:29 UTC) #10
Philippe
On 2012/05/04 15:09:29, Matt Menke wrote: > On 2012/05/04 11:50:45, Philippe wrote: > > On ...
8 years, 7 months ago (2012-05-04 15:18:05 UTC) #11
mnaganov (inactive)
On 2012/05/04 15:09:29, Matt Menke wrote: > On 2012/05/04 11:50:45, Philippe wrote: > > On ...
8 years, 7 months ago (2012-05-04 15:18:47 UTC) #12
mmenke
On 2012/05/04 15:18:47, Mikhail Naganov (Chromium) wrote: > On 2012/05/04 15:09:29, Matt Menke wrote: > ...
8 years, 7 months ago (2012-05-04 15:20:26 UTC) #13
mmenke
On 2012/05/04 15:20:26, Matt Menke wrote: > On 2012/05/04 15:18:47, Mikhail Naganov (Chromium) wrote: > ...
8 years, 7 months ago (2012-05-04 17:41:04 UTC) #14
Philippe
On 2012/05/04 17:41:04, Matt Menke wrote: > On 2012/05/04 15:20:26, Matt Menke wrote: > > ...
8 years, 7 months ago (2012-05-07 08:32:34 UTC) #15
mmenke
Assuming its use in devtools Android is analogous to its use in devtools on other ...
8 years, 7 months ago (2012-05-07 15:01:46 UTC) #16
pliard
In DevTools Android, the use of UnixDomainSocket (with the linux-specific abstract namespace capability) is only ...
8 years, 7 months ago (2012-05-07 15:22:42 UTC) #17
mmenke
I expect to sign off on this pretty much as-is, barring any objections, which I ...
8 years, 7 months ago (2012-05-07 20:50:27 UTC) #18
mmenke
On 2012/05/07 20:50:27, Matt Menke wrote: > I expect to sign off on this pretty ...
8 years, 7 months ago (2012-05-07 20:53:39 UTC) #19
Philippe
On 2012/05/07 20:53:39, Matt Menke wrote: > On 2012/05/07 20:50:27, Matt Menke wrote: > > ...
8 years, 7 months ago (2012-05-09 13:42:51 UTC) #20
Philippe
On 2012/05/09 13:42:51, Philippe wrote: > On 2012/05/07 20:53:39, Matt Menke wrote: > > On ...
8 years, 7 months ago (2012-05-14 09:40:04 UTC) #21
mmenke
On 2012/05/14 09:40:04, Philippe wrote: > On 2012/05/09 13:42:51, Philippe wrote: > > On 2012/05/07 ...
8 years, 7 months ago (2012-05-14 13:18:20 UTC) #22
mmenke
LGTM, though make sure that when you merge, the DCHECK in tcp_listen_socket.cc goes away.
8 years, 7 months ago (2012-05-15 15:46:50 UTC) #23
mmenke
On 2012/05/15 15:46:50, Matt Menke wrote: > LGTM, though make sure that when you merge, ...
8 years, 7 months ago (2012-05-15 15:49:43 UTC) #24
pliard
Thanks for the review Matt! Yes, I already did the merge. I was waiting for ...
8 years, 7 months ago (2012-05-15 16:01:11 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10161005/71040
8 years, 7 months ago (2012-05-15 16:02:20 UTC) #26
commit-bot: I haz the power
Try job failure for 10161005-71040 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-15 18:38:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/10161005/71040
8 years, 7 months ago (2012-05-16 08:06:50 UTC) #28
commit-bot: I haz the power
8 years, 7 months ago (2012-05-16 09:22:33 UTC) #29
Change committed as 137387

Powered by Google App Engine
This is Rietveld 408576698