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

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

Issue 1383613002: [net/http auth] Cleanup. Method names, and constness. Base URL: https://chromium.googlesource.com/chromium/src.git@mock-auth-handler-generalization
Patch Set: Created 5 years, 2 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
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/http/http_auth_gssapi_posix.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GSSAPI_POSIX_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
6 #define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ 6 #define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 const gss_OID gss_oid); 237 const gss_OID gss_oid);
238 ~HttpAuthGSSAPI(); 238 ~HttpAuthGSSAPI();
239 239
240 bool Init(); 240 bool Init();
241 241
242 bool NeedsIdentity() const; 242 bool NeedsIdentity() const;
243 243
244 bool AllowsExplicitCredentials() const; 244 bool AllowsExplicitCredentials() const;
245 245
246 HttpAuth::AuthorizationResult ParseChallenge( 246 HttpAuth::AuthorizationResult ParseChallenge(
247 HttpAuthChallengeTokenizer* tok); 247 const HttpAuthChallengeTokenizer& tok);
248 248
249 // Generates an authentication token. 249 // Generates an authentication token.
250 // 250 //
251 // The return value is an error code. The authentication token will be 251 // The return value is an error code. The authentication token will be
252 // returned in |*auth_token|. If the result code is not |OK|, the value of 252 // returned in |*auth_token|. If the result code is not |OK|, the value of
253 // |*auth_token| is unspecified. 253 // |*auth_token| is unspecified.
254 // 254 //
255 // If the operation cannot be completed synchronously, |ERR_IO_PENDING| will 255 // If the operation cannot be completed synchronously, |ERR_IO_PENDING| will
256 // be returned and the real result code will be passed to the completion 256 // be returned and the real result code will be passed to the completion
257 // callback. Otherwise the result code is returned immediately from this 257 // callback. Otherwise the result code is returned immediately from this
(...skipping 30 matching lines...) Expand all
288 gss_OID gss_oid_; 288 gss_OID gss_oid_;
289 GSSAPILibrary* library_; 289 GSSAPILibrary* library_;
290 std::string decoded_server_auth_token_; 290 std::string decoded_server_auth_token_;
291 ScopedSecurityContext scoped_sec_context_; 291 ScopedSecurityContext scoped_sec_context_;
292 bool can_delegate_; 292 bool can_delegate_;
293 }; 293 };
294 294
295 } // namespace net 295 } // namespace net
296 296
297 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ 297 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698