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

Issue 661194: Make a proper TCPSocketParams (Closed)

Created:
10 years, 10 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make a proper TCPSocketParams BUG=none TEST=existing unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40182

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -76 lines) Patch
M net/http/http_network_transaction.cc View 3 chunks +14 lines, -21 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 5 chunks +6 lines, -5 lines 0 comments Download
M net/socket/tcp_client_socket_pool.h View 1 5 chunks +25 lines, -5 lines 0 comments Download
M net/socket/tcp_client_socket_pool.cc View 1 4 chunks +12 lines, -11 lines 0 comments Download
M net/socket/tcp_client_socket_pool_unittest.cc View 1 12 chunks +26 lines, -27 lines 0 comments Download
M net/spdy/spdy_network_transaction.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
vandebo (ex-Chrome)
10 years, 10 months ago (2010-02-26 20:00:44 UTC) #1
willchan no longer on Chromium
LGTM. Thanks for the cleanup! http://codereview.chromium.org/661194/diff/1/5 File net/socket/tcp_client_socket_pool.h (right): http://codereview.chromium.org/661194/diff/1/5#newcode37 net/socket/tcp_client_socket_pool.h:37: HostResolver::RequestInfo destination_; I know ...
10 years, 10 months ago (2010-02-26 21:12:48 UTC) #2
vandebo (ex-Chrome)
Thanks for the review. Waiting for try bots to commit. http://codereview.chromium.org/661194/diff/1/5 File net/socket/tcp_client_socket_pool.h (right): http://codereview.chromium.org/661194/diff/1/5#newcode37 ...
10 years, 10 months ago (2010-02-26 21:46:22 UTC) #3
willchan no longer on Chromium
10 years, 10 months ago (2010-02-26 22:10:20 UTC) #4
http://codereview.chromium.org/661194/diff/1/5
File net/socket/tcp_client_socket_pool.h (right):

http://codereview.chromium.org/661194/diff/1/5#newcode37
net/socket/tcp_client_socket_pool.h:37: HostResolver::RequestInfo destination_;
On 2010/02/26 21:46:22, vandebo wrote:
> On 2010/02/26 21:12:48, willchan wrote:
> > I know we have many instances of this in our code (and I've gradually been
> > trying to fix them), but it's against the style guide to have public member
> > variables in classes.  You might want to make this a struct instead and
rename
> > the member variable to get rid of the trailing underscore.  Otherwise, you
can
> > make this private and use accessors.
> 
> Wouldn't it also be against the style guide to have this constructor with a
> struct?

From
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Struct...:

"Methods should not provide behavior but should only be used to set up the data
members, e.g., constructor, destructor, Initialize(), Reset(), Validate()."

This constructor seems to only be initializing the data.  There doesn't seem to
be any other behavior provided.

> 
> Changed to an accessor.
>

Powered by Google App Engine
This is Rietveld 408576698