Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 // generated by this factory should include the port number of the server | 65 // generated by this factory should include the port number of the server |
| 66 // they are authenticating to when constructing a Kerberos SPN. The default | 66 // they are authenticating to when constructing a Kerberos SPN. The default |
| 67 // value is false. | 67 // value is false. |
| 68 bool use_port() const { return use_port_; } | 68 bool use_port() const { return use_port_; } |
| 69 void set_use_port(bool use_port) { use_port_ = use_port; } | 69 void set_use_port(bool use_port) { use_port_ = use_port; } |
| 70 | 70 |
| 71 void set_host_resolver(HostResolver* host_resolver); | 71 void set_host_resolver(HostResolver* host_resolver); |
| 72 | 72 |
| 73 // Sets the system library to use, thereby assuming ownership of | 73 // Sets the system library to use, thereby assuming ownership of |
| 74 // |auth_library|. | 74 // |auth_library|. |
| 75 void set_library(AuthLibrary* auth_provider) { | 75 void set_library(scoped_ptr<AuthLibrary> auth_provider) { |
| 76 auth_library_.reset(auth_provider); | 76 auth_library_ = auth_provider.Pass(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 // Only used for testing. | |
| 80 AuthLibrary* get_library() { return auth_library_.get(); } | |
|
asanka
2015/10/26 15:11:54
Nit: library().
aberent
2015/10/27 21:50:44
Done.
| |
| 81 | |
| 79 int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, | 82 int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
| 80 HttpAuth::Target target, | 83 HttpAuth::Target target, |
| 81 const GURL& origin, | 84 const GURL& origin, |
| 82 CreateReason reason, | 85 CreateReason reason, |
| 83 int digest_nonce_count, | 86 int digest_nonce_count, |
| 84 const BoundNetLog& net_log, | 87 const BoundNetLog& net_log, |
| 85 scoped_ptr<HttpAuthHandler>* handler) override; | 88 scoped_ptr<HttpAuthHandler>* handler) override; |
| 86 | 89 |
| 87 private: | 90 private: |
| 88 bool disable_cname_lookup_; | 91 bool disable_cname_lookup_; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 std::string* auth_token_; | 167 std::string* auth_token_; |
| 165 | 168 |
| 166 State next_state_; | 169 State next_state_; |
| 167 | 170 |
| 168 const URLSecurityManager* url_security_manager_; | 171 const URLSecurityManager* url_security_manager_; |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace net | 174 } // namespace net |
| 172 | 175 |
| 173 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 176 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| OLD | NEW |