Index: net/http/http_auth_handler_digest.h |
diff --git a/net/http/http_auth_handler_digest.h b/net/http/http_auth_handler_digest.h |
index dbe02b4f2da0e43f8ad9fc46532adab549d24e6d..5621c2a85192d3c85545fba0f93e3e3e54d5131b 100644 |
--- a/net/http/http_auth_handler_digest.h |
+++ b/net/http/http_auth_handler_digest.h |
@@ -65,7 +65,7 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerDigest : public HttpAuthHandler { |
// This factory owns the passed in |nonce_generator|. |
void set_nonce_generator(const NonceGenerator* nonce_generator); |
- int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
+ int CreateAuthHandler(const HttpAuthChallengeTokenizer& challenge, |
HttpAuth::Target target, |
const GURL& origin, |
CreateReason reason, |
@@ -78,13 +78,13 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerDigest : public HttpAuthHandler { |
}; |
HttpAuth::AuthorizationResult HandleAnotherChallenge( |
- HttpAuthChallengeTokenizer* challenge) override; |
+ const HttpAuthChallengeTokenizer& challenge) override; |
protected: |
- bool Init(HttpAuthChallengeTokenizer* challenge) override; |
+ int Init(const HttpAuthChallengeTokenizer& challenge) override; |
int GenerateAuthTokenImpl(const AuthCredentials* credentials, |
- const HttpRequestInfo* request, |
+ const HttpRequestInfo& request, |
const CompletionCallback& callback, |
std::string* auth_token) override; |
@@ -124,7 +124,7 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerDigest : public HttpAuthHandler { |
// Parse the challenge, saving the results into this instance. |
// Returns true on success. |
- bool ParseChallenge(HttpAuthChallengeTokenizer* challenge); |
+ bool ParseChallenge(const HttpAuthChallengeTokenizer& challenge); |
// Parse an individual property. Returns true on success. |
bool ParseChallengeProperty(const std::string& name, |
@@ -139,7 +139,7 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerDigest : public HttpAuthHandler { |
// Extract the method and path of the request, as needed by |
// the 'A2' production. (path may be a hostname for proxy). |
- void GetRequestMethodAndPath(const HttpRequestInfo* request, |
+ void GetRequestMethodAndPath(const HttpRequestInfo& request, |
std::string* method, |
std::string* path) const; |