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

Issue 2808020: Create HttpAuthController. (Closed)

Created:
10 years, 6 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
cbentzel, ahendrickson
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Create HttpAuthController. (again) This packages up the auth state into a single class to enable a HttpProxyClientSocket class (which is needed for SSLClientSocketPool). Fix memory leak. BUG=30357 TEST=existing unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50696

Patch Set 1 #

Total comments: 1

Patch Set 2 : Cleanup #

Total comments: 19

Patch Set 3 : Adress comments #

Patch Set 4 : Rename to HttpAuthController #

Total comments: 2

Patch Set 5 : nits #

Patch Set 6 : Fix mem leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+538 lines, -409 lines) Patch
M net/base/net_error_list.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_auth.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_auth.cc View 1 chunk +6 lines, -0 lines 0 comments Download
A net/http/http_auth_controller.h View 4 5 1 chunk +134 lines, -0 lines 0 comments Download
A net/http/http_auth_controller.cc View 4 1 chunk +331 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.h View 1 2 3 3 chunks +6 lines, -74 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 12 chunks +52 lines, -335 lines 0 comments Download
M net/net.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vandebo (ex-Chrome)
Chris, let me know what you think of this - It mostly just moves code. ...
10 years, 6 months ago (2010-06-22 02:06:19 UTC) #1
cbentzel
Steve, Thanks for doing this. I've been doing a lot of restructuring/refactoring of the auth ...
10 years, 6 months ago (2010-06-22 13:50:55 UTC) #2
vandebo (ex-Chrome)
On 2010/06/22 13:50:55, cbentzel wrote: > My very quick reaction is whether the behavior should ...
10 years, 6 months ago (2010-06-22 17:03:47 UTC) #3
cbentzel
> Considering your initial feedback, I'm going to run with this CL. Do you want ...
10 years, 6 months ago (2010-06-22 17:24:57 UTC) #4
vandebo (ex-Chrome)
On 2010/06/22 17:24:57, cbentzel wrote: > ahendrickson should take a look. > I'll take a ...
10 years, 6 months ago (2010-06-22 17:37:57 UTC) #5
cbentzel
The two issues with passing in a NULL request_info_ prevent me from giving an LGTM ...
10 years, 6 months ago (2010-06-22 18:26:58 UTC) #6
cbentzel
Also, I wish I could come up with a better name for the new class. ...
10 years, 6 months ago (2010-06-22 18:28:12 UTC) #7
vandebo (ex-Chrome)
http://codereview.chromium.org/2808020/diff/3002/5005 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/2808020/diff/3002/5005#newcode971 net/http/http_network_transaction.cc:971: NULL, &io_callback_); On 2010/06/22 18:26:59, cbentzel wrote: > You ...
10 years, 6 months ago (2010-06-22 22:21:56 UTC) #8
cbentzel
LGTM The valgrind trybot failure seems due to ld memory exhaustion (many of the trybots ...
10 years, 6 months ago (2010-06-23 10:49:17 UTC) #9
ahendrickson
10 years, 6 months ago (2010-06-23 18:49:02 UTC) #10
LGTM, with minor nits.

http://codereview.chromium.org/2808020/diff/14001/15004
File net/http/http_auth_controller.cc (right):

http://codereview.chromium.org/2808020/diff/14001/15004#newcode82
net/http/http_auth_controller.cc:82: DCHECK(!HaveAuth());
Could you add a DCHECK(identity_.invalid)?  Or else set it to true before
creating the auth handler.

http://codereview.chromium.org/2808020/diff/14001/15005
File net/http/http_auth_controller.h (right):

http://codereview.chromium.org/2808020/diff/14001/15005#newcode28
net/http/http_auth_controller.h:28: // The arguments are self explanatory except
for possible auth_url, which
Nit: for possible --> possibly for.
auth_url --> |auth_url|

Powered by Google App Engine
This is Rietveld 408576698