diff options
author | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 12:47:05 +0000 |
---|---|---|
committer | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 12:47:05 +0000 |
commit | ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6 (patch) | |
tree | c017e812bb298f7f2c7341372ab62021df3c8a29 /net/http/http_auth_handler_negotiate.h | |
parent | bb33eb1e2468eacb996e19493a36c3f6e4625b12 (diff) | |
download | chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.zip chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.tar.gz chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.tar.bz2 |
Support specifying the GSSAPI library that will be used.
This preference can be set either via command-line or via group policy.
BUG=53625
TEST=unittests: ConfigurationPolicyPrefStore*; net_unittests: HttpAuthHandlerNegotiateTest.*:HttpAuthGSSAPIPOSIXTest.*; manually: start Chrome with command-line switch --gssapi-library-name=XYZ and see if this results in the Chrome process loading /usr/lib/whatever/XYZ as soon as an authenticated HTTP site is encountered.
Review URL: http://codereview.chromium.org/4560001
Patch from Jakob Kummerow <jkummerow@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_negotiate.h')
-rw-r--r-- | net/http/http_auth_handler_negotiate.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/http/http_auth_handler_negotiate.h b/net/http/http_auth_handler_negotiate.h index 5f46ab1..a19d182 100644 --- a/net/http/http_auth_handler_negotiate.h +++ b/net/http/http_auth_handler_negotiate.h @@ -72,14 +72,10 @@ class HttpAuthHandlerNegotiate : public HttpAuthHandler { const BoundNetLog& net_log, scoped_ptr<HttpAuthHandler>* handler); - // Set the system library to use. Typically the only callers which need to - // use this are unit tests which pass in a mocked-out version of the - // system library. - // The caller is responsible for managing the lifetime of |*auth_library|, - // and the lifetime must exceed that of this Factory object and all - // HttpAuthHandler's that this Factory object creates. + // Sets the system library to use, thereby assuming ownership of + // |auth_library|. void set_library(AuthLibrary* auth_library) { - auth_library_ = auth_library; + auth_library_.reset(auth_library); } private: @@ -91,7 +87,7 @@ class HttpAuthHandlerNegotiate : public HttpAuthHandler { bool first_creation_; bool is_unsupported_; #endif - AuthLibrary* auth_library_; + scoped_ptr<AuthLibrary> auth_library_; }; HttpAuthHandlerNegotiate(AuthLibrary* sspi_library, |