forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[net/auth] Split HandleAnotherChallenge into a base and an Impl.
HttpAuthHandler is a base class that has a couple of pure virtual methods for specialization by HTTP authentication scheme specific handlers. There are three main entry points to an HttpAuthHandler: 1. Construction and initialization, which is only invoked via a HttpAuthHandlerFactory. 2. GenerateAuthToken(). 3. HandleAnotherChallenge(). Of these the initialization -- via InitFromChallenge() -- and GenerateAuthToken() methods wrap pure virtual specializations via Init() and GenerateAuthTokenImpl() respectively. This wrapping allows consistent handling of logging around the specialization. The odd one out is HandleAnotherChallenge() which was left as a pure virtual method to be overridden by each specialization. This CL makes HandleAnotherChallenge() also a wrapper in line with the other entry points. This is done by making HandleAnotherChallenge() be a concrete wrapper that invokes HandleAnotherChallengeImpl() which is a pure virtual specialization point. In addition, this CL introduces AUTH_GENERATE_TOKEN and AUTH_HANDLE_CHALLENGE NetLog event types that wrap the events happening within GenerateAuthToken() and HandleAnotherChallenge() respectively. The handlers no longer log any target specific events like AUTH_SERVER and AUTH_PROXY which are removed by this CL. Bug: 884313 Change-Id: Ib7f97e61e0dcdc60dc15326604b7d3e383ab5c22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1566490 Reviewed-by: Matt Menke <mmenke@chromium.org> Commit-Queue: Asanka Herath <asanka@chromium.org> Cr-Commit-Position: refs/heads/master@{#662225}
- Loading branch information
Showing
16 changed files
with
195 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.