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

Side by Side Diff: net/http/http_auth_handler_factory.cc

Issue 7719024: Revert 97925 - Linux: allow linking directly with Kerberos instead of using dlopen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "net/http/http_auth_handler_factory.h" 5 #include "net/http/http_auth_handler_factory.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/http/http_auth_filter.h" 10 #include "net/http/http_auth_filter.h"
11 #include "net/http/http_auth_handler_basic.h" 11 #include "net/http/http_auth_handler_basic.h"
12 #include "net/http/http_auth_handler_digest.h" 12 #include "net/http/http_auth_handler_digest.h"
13 #include "net/http/http_auth_handler_ntlm.h"
14
15 #if defined(USE_KERBEROS) 13 #if defined(USE_KERBEROS)
16 #include "net/http/http_auth_handler_negotiate.h" 14 #include "net/http/http_auth_handler_negotiate.h"
17 #endif 15 #endif
16 #include "net/http/http_auth_handler_ntlm.h"
18 17
19 namespace net { 18 namespace net {
20 19
21 int HttpAuthHandlerFactory::CreateAuthHandlerFromString( 20 int HttpAuthHandlerFactory::CreateAuthHandlerFromString(
22 const std::string& challenge, 21 const std::string& challenge,
23 HttpAuth::Target target, 22 HttpAuth::Target target,
24 const GURL& origin, 23 const GURL& origin,
25 const BoundNetLog& net_log, 24 const BoundNetLog& net_log,
26 scoped_ptr<HttpAuthHandler>* handler) { 25 scoped_ptr<HttpAuthHandler>* handler) {
27 HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); 26 HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end());
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if (it == factory_map_.end()) { 188 if (it == factory_map_.end()) {
190 handler->reset(); 189 handler->reset();
191 return ERR_UNSUPPORTED_AUTH_SCHEME; 190 return ERR_UNSUPPORTED_AUTH_SCHEME;
192 } 191 }
193 DCHECK(it->second); 192 DCHECK(it->second);
194 return it->second->CreateAuthHandler(challenge, target, origin, reason, 193 return it->second->CreateAuthHandler(challenge, target, origin, reason,
195 digest_nonce_count, net_log, handler); 194 digest_nonce_count, net_log, handler);
196 } 195 }
197 196
198 } // namespace net 197 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_auth_gssapi_posix_unittest.cc ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698