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

Side by Side Diff: net/http/http_auth_handler_negotiate.h

Issue 4560001: Support specifying the GSSAPI library that will be used. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix another compile error on Windows Created 10 years, 1 month 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
« no previous file with comments | « net/http/http_auth_handler_factory.cc ('k') | net/http/http_auth_handler_negotiate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void set_host_resolver(HostResolver* host_resolver); 65 void set_host_resolver(HostResolver* host_resolver);
66 66
67 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 67 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge,
68 HttpAuth::Target target, 68 HttpAuth::Target target,
69 const GURL& origin, 69 const GURL& origin,
70 CreateReason reason, 70 CreateReason reason,
71 int digest_nonce_count, 71 int digest_nonce_count,
72 const BoundNetLog& net_log, 72 const BoundNetLog& net_log,
73 scoped_ptr<HttpAuthHandler>* handler); 73 scoped_ptr<HttpAuthHandler>* handler);
74 74
75 // Set the system library to use. Typically the only callers which need to 75 // Sets the system library to use, thereby assuming ownership of
76 // use this are unit tests which pass in a mocked-out version of the 76 // |auth_library|.
77 // system library.
78 // The caller is responsible for managing the lifetime of |*auth_library|,
79 // and the lifetime must exceed that of this Factory object and all
80 // HttpAuthHandler's that this Factory object creates.
81 void set_library(AuthLibrary* auth_library) { 77 void set_library(AuthLibrary* auth_library) {
82 auth_library_ = auth_library; 78 auth_library_.reset(auth_library);
83 } 79 }
84 80
85 private: 81 private:
86 bool disable_cname_lookup_; 82 bool disable_cname_lookup_;
87 bool use_port_; 83 bool use_port_;
88 HostResolver* resolver_; 84 HostResolver* resolver_;
89 #if defined(OS_WIN) 85 #if defined(OS_WIN)
90 ULONG max_token_length_; 86 ULONG max_token_length_;
91 bool first_creation_; 87 bool first_creation_;
92 bool is_unsupported_; 88 bool is_unsupported_;
93 #endif 89 #endif
94 AuthLibrary* auth_library_; 90 scoped_ptr<AuthLibrary> auth_library_;
95 }; 91 };
96 92
97 HttpAuthHandlerNegotiate(AuthLibrary* sspi_library, 93 HttpAuthHandlerNegotiate(AuthLibrary* sspi_library,
98 #if defined(OS_WIN) 94 #if defined(OS_WIN)
99 ULONG max_token_length, 95 ULONG max_token_length,
100 #endif 96 #endif
101 URLSecurityManager* url_security_manager, 97 URLSecurityManager* url_security_manager,
102 HostResolver* host_resolver, 98 HostResolver* host_resolver,
103 bool disable_cname_lookup, 99 bool disable_cname_lookup,
104 bool use_port); 100 bool use_port);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 std::string* auth_token_; 162 std::string* auth_token_;
167 163
168 State next_state_; 164 State next_state_;
169 165
170 const URLSecurityManager* url_security_manager_; 166 const URLSecurityManager* url_security_manager_;
171 }; 167 };
172 168
173 } // namespace net 169 } // namespace net
174 170
175 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ 171 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_factory.cc ('k') | net/http/http_auth_handler_negotiate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698