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

Issue 1949004: Added authentication scheme as key to HttpAuthCache. (Closed)

Created:
10 years, 7 months ago by Randy Smith (Not in Mondays)
Modified:
9 years, 7 months ago
Reviewers:
cbentzel, eroman, ukai
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Added authentication scheme as key to HttpAuthCache. Behavioral changes are small; this is mostly a syntactic sugar change. But there are a few behavioral changes: * If a web site replies with different schemes for the same realm, we'll have two entries in the cache. * There will not be a log entry in HttpNetworkTransaction::SelectNextAuthIdentityToTry when we have the wrong authentication scheme (we don't see that entry any more) * We will no longer return ERR_TUNNEL_CONNECTION_FAILED from SocketStream::HandleAuthChallenge when there's an entry in the cache with a non-basic authentication scheme (we won't know it's there). Contributed by rdsmith@chromium.org BUG=33433 TEST=HttpAuthCacheTest.* (as modified in this commit), HttpNetworkTransactionTest.*, SocketStreamTest.*, only on Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47149

Patch Set 1 #

Total comments: 12

Patch Set 2 : Added in fixes corresponding to code review comments. #

Total comments: 9

Patch Set 3 : Fixed nits pointed out by Chris. #

Total comments: 10

Patch Set 4 : Fixed nits from eroman. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -84 lines) Patch
M net/http/http_auth_cache.h View 1 2 3 5 chunks +25 lines, -17 lines 0 comments Download
M net/http/http_auth_cache.cc View 1 2 4 chunks +11 lines, -6 lines 0 comments Download
M net/http/http_auth_cache_unittest.cc View 1 2 3 4 chunks +81 lines, -31 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 2 chunks +9 lines, -23 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
cbentzel
Overall looks good. I didn't spend much time going over with a fine-toothed comb picking ...
10 years, 7 months ago (2010-05-05 16:15:42 UTC) #1
Randy Smith (Not in Mondays)
Comments incorporated, tests re-run, new patch uploaded. One more round before expanding the code review? ...
10 years, 7 months ago (2010-05-05 18:04:09 UTC) #2
cbentzel
You should open this to a wider audience now. http://codereview.chromium.org/1949004/diff/5001/6002 File net/http/http_auth_cache.h (right): http://codereview.chromium.org/1949004/diff/5001/6002#newcode1 net/http/http_auth_cache.h:1: ...
10 years, 7 months ago (2010-05-06 01:11:40 UTC) #3
Randy Smith (Not in Mondays)
Chris and I have gone round a couple of times on this CL to (I ...
10 years, 7 months ago (2010-05-06 18:10:41 UTC) #4
cbentzel
LGTM http://codereview.chromium.org/1949004/diff/5001/6002 File net/http/http_auth_cache.h (right): http://codereview.chromium.org/1949004/diff/5001/6002#newcode1 net/http/http_auth_cache.h:1: // Copyright (c) 2008 The Chromium Authors. All ...
10 years, 7 months ago (2010-05-06 21:33:57 UTC) #5
cbentzel
Also - please remove the note to me from the CL description.
10 years, 7 months ago (2010-05-10 16:57:24 UTC) #6
Randy Smith (Not in Mondays)
On 2010/05/10 16:57:24, cbentzel wrote: > Also - please remove the note to me from ...
10 years, 7 months ago (2010-05-10 17:17:20 UTC) #7
eroman
lgtm after a couple of nits. > * If a web site replies with different ...
10 years, 7 months ago (2010-05-10 17:34:11 UTC) #8
Randy Smith (Not in Mondays)
Fixed nits from Eric. http://codereview.chromium.org/1949004/diff/14001/15002 File net/http/http_auth_cache.h (right): http://codereview.chromium.org/1949004/diff/14001/15002#newcode35 net/http/http_auth_cache.h:35: // |scheme| - the authentication ...
10 years, 7 months ago (2010-05-10 20:18:51 UTC) #9
eroman
LGTM
10 years, 7 months ago (2010-05-11 06:29:51 UTC) #10
ukai
10 years, 7 months ago (2010-05-12 06:16:51 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698