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

Issue 243077: Add net/socket_stream. (Closed)

Created:
11 years, 2 months ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add net/socket_stream. This is used for WebSocket protocol. BUG=12497 TEST=none

Patch Set 1 #

Patch Set 2 : Add thin helper methods on SocketStreamRequest that just forward to the underlying Job object. #

Total comments: 10

Patch Set 3 : fix yuzo's comment #

Total comments: 26

Patch Set 4 : Fix comments #

Patch Set 5 : Fix tyoshino's comment #

Total comments: 12

Patch Set 6 : Fix tyoshino comment. #

Total comments: 36

Patch Set 7 : fix wtc's comment #

Patch Set 8 : minor fix #

Total comments: 8

Patch Set 9 : remove SocketStreamRequest #

Patch Set 10 : Fix bugs #

Patch Set 11 : Add DetachDelegate and fix comments #

Total comments: 41

Patch Set 12 : Rename SocketStreamJob to SocketStream #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -0 lines) Patch
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
A net/socket_stream/socket_stream.h View 1 chunk +254 lines, -0 lines 1 comment Download
A net/socket_stream/socket_stream.cc View 1 chunk +623 lines, -0 lines 2 comments Download

Messages

Total messages: 30 (0 generated)
ukai
For now, ssl won't work, because current SSLClientSocket implementations don't provide full duplex connection.
11 years, 2 months ago (2009-10-02 10:47:10 UTC) #1
wtc
SSLClientSocket (at least the Windows version) will become full-duplex when mbelshe's CL is checked in: ...
11 years, 2 months ago (2009-10-02 14:23:48 UTC) #2
darin (slow to review)
It seems like the API here is inspired by URLRequest and URLRequestJob. One of the ...
11 years, 2 months ago (2009-10-02 16:37:28 UTC) #3
ukai
On 2009/10/02 14:23:48, wtc wrote: > SSLClientSocket (at least the Windows version) will become > ...
11 years, 2 months ago (2009-10-05 07:06:50 UTC) #4
ukai
On 2009/10/02 16:37:28, darin wrote: > It seems like the API here is inspired by ...
11 years, 2 months ago (2009-10-05 07:08:19 UTC) #5
Yuzo
The following are my initial comments. I'll look again later. http://codereview.chromium.org/243077/diff/3002/4002 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/3002/4002#newcode61 ...
11 years, 2 months ago (2009-10-05 09:54:45 UTC) #6
ukai
http://codereview.chromium.org/243077/diff/3002/4002 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/3002/4002#newcode61 Line 61: CHECK(!request_); On 2009/10/05 09:54:45, Yuzo wrote: > Are ...
11 years, 2 months ago (2009-10-05 10:18:51 UTC) #7
Yuzo
http://codereview.chromium.org/243077/diff/1006/10 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/1006/10#newcode262 Line 262: } while (rv != ERR_IO_PENDING && next_state_ != ...
11 years, 2 months ago (2009-10-06 04:09:22 UTC) #8
ukai
http://codereview.chromium.org/243077/diff/1006/10 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/1006/10#newcode262 Line 262: } while (rv != ERR_IO_PENDING && next_state_ != ...
11 years, 2 months ago (2009-10-06 04:42:53 UTC) #9
tyoshino (SeeGerritForStatus)
http://codereview.chromium.org/243077/diff/1006/10 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/1006/10#newcode122 Line 122: request_ = 0; = NULL http://codereview.chromium.org/243077/diff/1006/12 File net/socket_stream/socket_stream_request.cc ...
11 years, 2 months ago (2009-10-06 06:54:38 UTC) #10
ukai
http://codereview.chromium.org/243077/diff/1006/10 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/1006/10#newcode122 Line 122: request_ = 0; On 2009/10/06 06:54:38, tyoshino wrote: ...
11 years, 2 months ago (2009-10-06 07:10:21 UTC) #11
tyoshino (SeeGerritForStatus)
http://codereview.chromium.org/243077/diff/7002/5009 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/7002/5009#newcode10 Line 10: #include "base/logging.h" Add #include "base/message_loop.h" http://codereview.chromium.org/243077/diff/7002/5009#newcode112 Line 112: ...
11 years, 2 months ago (2009-10-06 09:33:06 UTC) #12
Yuzo
LGTM
11 years, 2 months ago (2009-10-06 10:29:17 UTC) #13
wtc
On 2009/10/02 16:37:28, darin wrote: > It seems like the API here is inspired by ...
11 years, 2 months ago (2009-10-06 21:27:44 UTC) #14
wtc
On 2009/10/05 07:06:50, ukai wrote: > > I've a patch to ssl_client_socket_nss and send it ...
11 years, 2 months ago (2009-10-06 21:30:34 UTC) #15
wtc
I haven't reviewed socket_stream_job.cc carefully. Here are my comments. http://codereview.chromium.org/243077/diff/8002/2006 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/8002/2006#newcode1 Line ...
11 years, 2 months ago (2009-10-07 02:27:00 UTC) #16
ukai
http://codereview.chromium.org/243077/diff/7002/5009 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/7002/5009#newcode10 Line 10: #include "base/logging.h" On 2009/10/06 09:33:07, tyoshino wrote: > ...
11 years, 2 months ago (2009-10-07 04:57:38 UTC) #17
ukai
On 2009/10/06 21:27:44, wtc wrote: > On 2009/10/02 16:37:28, darin wrote: > > It seems ...
11 years, 2 months ago (2009-10-07 05:00:32 UTC) #18
ukai
Thanks for review. http://codereview.chromium.org/243077/diff/8002/2006 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/8002/2006#newcode1 Line 1: // Copyright (c) 2009 The ...
11 years, 2 months ago (2009-10-07 06:12:02 UTC) #19
tyoshino (SeeGerritForStatus)
http://codereview.chromium.org/243077/diff/15007/16003 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/15007/16003#newcode84 Line 84: return false; indentation http://codereview.chromium.org/243077/diff/15007/16003#newcode260 Line 260: case STATE_CONNECTION_ESTABLISHED: ...
11 years, 2 months ago (2009-10-07 10:04:25 UTC) #20
wtc
Fumitoshi, I didn't have time to review the new Patch Set today. Since this is ...
11 years, 2 months ago (2009-10-08 01:48:51 UTC) #21
ukai
On 2009/10/08 01:48:51, wtc wrote: > Fumitoshi, > > I didn't have time to review ...
11 years, 2 months ago (2009-10-08 06:24:18 UTC) #22
ukai
http://codereview.chromium.org/243077/diff/15007/16003 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/15007/16003#newcode84 Line 84: return false; On 2009/10/07 10:04:25, tyoshino wrote: > ...
11 years, 2 months ago (2009-10-08 06:24:25 UTC) #23
wtc
LGTM. Please check this in after addressing my comments below. I don't need to review ...
11 years, 2 months ago (2009-10-08 21:38:19 UTC) #24
ukai
http://codereview.chromium.org/243077/diff/17002/17004 File net/socket_stream/socket_stream_job.cc (right): http://codereview.chromium.org/243077/diff/17002/17004#newcode92 Line 92: AddRef(); // Released in FinishJob() On 2009/10/08 21:38:19, ...
11 years, 2 months ago (2009-10-09 04:46:37 UTC) #25
tyoshino (SeeGerritForStatus)
LGTM
11 years, 2 months ago (2009-10-09 07:12:42 UTC) #26
wtc
http://codereview.chromium.org/243077/diff/17002/17005 File net/socket_stream/socket_stream_job.h (right): http://codereview.chromium.org/243077/diff/17002/17005#newcode125 Line 125: void set_data(size_t offset) { data_ = headers_.get() + ...
11 years, 2 months ago (2009-10-09 16:02:48 UTC) #27
wtc
http://codereview.chromium.org/243077/diff/18002/18005 File net/socket_stream/socket_stream.h (right): http://codereview.chromium.org/243077/diff/18002/18005#newcode30 Line 30: class SocketStream : public base::RefCountedThreadSafe<SocketStream> { I forgot ...
11 years, 2 months ago (2009-10-22 23:33:18 UTC) #28
eroman
http://codereview.chromium.org/243077/diff/18002/18004 File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/243077/diff/18002/18004#newcode43 Line 43: host_resolver_(CreateSystemHostResolver()), The HostResolver should be passed in as ...
11 years, 1 month ago (2009-11-09 22:22:11 UTC) #29
eroman
11 years, 1 month ago (2009-11-09 22:26:28 UTC) #30
http://codereview.chromium.org/243077/diff/18002/18004
File net/socket_stream/socket_stream.cc (right):

http://codereview.chromium.org/243077/diff/18002/18004#newcode43
Line 43: host_resolver_(CreateSystemHostResolver()),
On 2009/11/09 22:22:11, eroman wrote:
> The HostResolver should be passed in as a dependency instead.
> 
> When running in chrome we should use the same HostResolver as the other code,
so
> it can share the same cache, threadpool, etc..
> 
> (Also this gives unittests the flexibility to specify mock implementations.)

Also the HostResolver created in the chrome code is tied to some command-line
flags, like disabling IPv6, which this would be missing out on.

Powered by Google App Engine
This is Rietveld 408576698