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

Issue 23881002: Windows only: Move client socket functionality from TCPClientSocket into TCPSocket. (Closed)

Created:
7 years, 3 months ago by yzshen1
Modified:
7 years, 3 months ago
Reviewers:
wtc, akalin
CC:
chromium-reviews, cbentzel+watch_chromium.org, Wez
Visibility:
Public.

Description

Windows only: Move client socket functionality from TCPClientSocket into TCPSocket. TCPClientSocket becomes a wrapper around TCPSocket to expose a client-only interface. The corresponding change for POSIX will be in a separate CL. BUG=262601 TEST=new tests in tcp_socket_unittest.cc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223286

Patch Set 1 #

Patch Set 2 : #

Total comments: 82

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Patch Set 8 : #

Total comments: 11

Patch Set 9 : #

Patch Set 10 : #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+1383 lines, -1189 lines) Patch
M net/net.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M net/socket/tcp_client_socket.h View 1 2 3 4 5 6 7 8 2 chunks +121 lines, -10 lines 0 comments Download
M net/socket/tcp_client_socket.cc View 1 2 3 4 5 6 7 8 2 chunks +314 lines, -0 lines 0 comments Download
D net/socket/tcp_client_socket_win.h View 1 chunk +0 lines, -157 lines 0 comments Download
D net/socket/tcp_client_socket_win.cc View 1 chunk +0 lines, -956 lines 0 comments Download
M net/socket/tcp_server_socket.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M net/socket/tcp_socket_libevent.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/socket/tcp_socket_libevent.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/socket/tcp_socket_unittest.cc View 1 2 3 4 5 6 7 4 chunks +74 lines, -2 lines 0 comments Download
M net/socket/tcp_socket_win.h View 1 2 3 4 5 6 7 8 9 3 chunks +87 lines, -11 lines 2 comments Download
M net/socket/tcp_socket_win.cc View 1 2 3 4 5 6 7 8 9 12 chunks +777 lines, -42 lines 6 comments Download

Messages

Total messages: 20 (0 generated)
yzshen1
Hi, Fred and Wan-Teh. Would you please take a look? Thanks!
7 years, 3 months ago (2013-09-03 16:32:05 UTC) #1
yzshen1
On 2013/09/03 16:32:05, yzshen1 wrote: > Hi, Fred and Wan-Teh. > > Would you please ...
7 years, 3 months ago (2013-09-03 16:39:33 UTC) #2
akalin
will look by today
7 years, 3 months ago (2013-09-05 16:07:01 UTC) #3
akalin
mostly nits https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc File net/socket/tcp_client_socket.cc (right): https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc#newcode87 net/socket/tcp_client_socket.cc:87: DCHECK(socket_.get()); no need for .get() https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc#newcode91 net/socket/tcp_client_socket.cc:91: ...
7 years, 3 months ago (2013-09-05 22:52:28 UTC) #4
yzshen1
Thanks Fred and Wan-Teh! https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc File net/socket/tcp_client_socket.cc (right): https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc#newcode87 net/socket/tcp_client_socket.cc:87: DCHECK(socket_.get()); On 2013/09/05 22:52:28, akalin ...
7 years, 3 months ago (2013-09-06 00:57:44 UTC) #5
wtc
Review comments on patch set 2: I was in the middle of reviewing patch set ...
7 years, 3 months ago (2013-09-06 21:55:42 UTC) #6
yzshen1
Thanks Wan-Teh. Please take another look. https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc File net/socket/tcp_client_socket.cc (right): https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc#newcode10 net/socket/tcp_client_socket.cc:10: #if defined(OS_WIN) On ...
7 years, 3 months ago (2013-09-09 23:14:48 UTC) #7
yzshen1
Hi, Wan-Teh. I have made changes according to our discussion. Please take another look. Thanks!
7 years, 3 months ago (2013-09-10 00:52:23 UTC) #8
yzshen1
On 2013/09/10 00:52:23, yzshen1 wrote: > Hi, Wan-Teh. > > I have made changes according ...
7 years, 3 months ago (2013-09-11 22:14:18 UTC) #9
wtc
Patch set 6 LGTM. I didn't review TCPSocketWin::Close() carefully. I will review it again tomorrow. ...
7 years, 3 months ago (2013-09-12 01:27:16 UTC) #10
yzshen1
Thanks, Wan-Teh. https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc File net/socket/tcp_client_socket.cc (right): https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc#newcode362 net/socket/tcp_client_socket.cc:362: result = socket_->SetDefaultOptionsForClient(); On 2013/09/12 01:27:16, wtc ...
7 years, 3 months ago (2013-09-12 20:07:50 UTC) #11
wtc
Patch set 8 LGTM. I also reviewed TCPSocketWin::Close(). I suggest two changes below to keep ...
7 years, 3 months ago (2013-09-12 21:31:07 UTC) #12
yzshen1
https://codereview.chromium.org/23881002/diff/117001/net/socket/tcp_socket_win.cc File net/socket/tcp_socket_win.cc (right): https://codereview.chromium.org/23881002/diff/117001/net/socket/tcp_socket_win.cc#newcode297 net/socket/tcp_socket_win.cc:297: } Then we will need an additional boolean flag ...
7 years, 3 months ago (2013-09-12 21:45:09 UTC) #13
akalin
LGTM after nits below I just took a quick pass over; looks like wtc@ did ...
7 years, 3 months ago (2013-09-12 23:21:36 UTC) #14
yzshen1
Thanks, Fred! https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc File net/socket/tcp_client_socket.cc (right): https://codereview.chromium.org/23881002/diff/17001/net/socket/tcp_client_socket.cc#newcode91 net/socket/tcp_client_socket.cc:91: PLOG(ERROR) << "TCPSocket::SetDefaultOptionsForClient() returned an error"; On ...
7 years, 3 months ago (2013-09-13 05:07:51 UTC) #15
yzshen1
Hi, Wan-Teh. https://codereview.chromium.org/23881002/diff/117001/net/socket/tcp_socket_win.cc File net/socket/tcp_socket_win.cc (right): https://codereview.chromium.org/23881002/diff/117001/net/socket/tcp_socket_win.cc#newcode297 net/socket/tcp_socket_win.cc:297: } I realized that we could still ...
7 years, 3 months ago (2013-09-13 06:39:07 UTC) #16
wtc
Patch set 10 LGTM. https://codereview.chromium.org/23881002/diff/139001/net/socket/tcp_socket_win.cc File net/socket/tcp_socket_win.cc (right): https://codereview.chromium.org/23881002/diff/139001/net/socket/tcp_socket_win.cc#newcode620 net/socket/tcp_socket_win.cc:620: void TCPSocketWin::Close() { The property ...
7 years, 3 months ago (2013-09-13 16:33:04 UTC) #17
yzshen1
https://codereview.chromium.org/23881002/diff/139001/net/socket/tcp_socket_win.cc File net/socket/tcp_socket_win.cc (right): https://codereview.chromium.org/23881002/diff/139001/net/socket/tcp_socket_win.cc#newcode620 net/socket/tcp_socket_win.cc:620: void TCPSocketWin::Close() { On 2013/09/13 16:33:05, wtc wrote: > ...
7 years, 3 months ago (2013-09-13 18:16:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/23881002/139001
7 years, 3 months ago (2013-09-15 07:15:55 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-15 15:14:24 UTC) #20
Message was sent while issue was closed.
Change committed as 223286

Powered by Google App Engine
This is Rietveld 408576698