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

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

Issue 1800003: Auto-format style pass over files. (Closed)
Patch Set: Remove trailing whitespace. Created 10 years, 7 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_handler_ntlm_portable.cc ('k') | net/http/http_auth_unittest.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 // See "SSPI Sample Application" at 5 // See "SSPI Sample Application" at
6 // http://msdn.microsoft.com/en-us/library/aa918273.aspx 6 // http://msdn.microsoft.com/en-us/library/aa918273.aspx
7 // and "NTLM Security Support Provider" at 7 // and "NTLM Security Support Provider" at
8 // http://msdn.microsoft.com/en-us/library/aa923611.aspx. 8 // http://msdn.microsoft.com/en-us/library/aa923611.aspx.
9 9
10 #include "net/http/http_auth_handler_ntlm.h" 10 #include "net/http/http_auth_handler_ntlm.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return auth_sspi_.GenerateAuthToken( 54 return auth_sspi_.GenerateAuthToken(
55 NULL, // username 55 NULL, // username
56 NULL, // password 56 NULL, // password
57 CreateSPN(origin_), 57 CreateSPN(origin_),
58 request, 58 request,
59 proxy, 59 proxy,
60 auth_token); 60 auth_token);
61 } 61 }
62 62
63 HttpAuthHandlerNTLM::Factory::Factory() 63 HttpAuthHandlerNTLM::Factory::Factory()
64 : max_token_length_(0), 64 : max_token_length_(0),
65 first_creation_(true), 65 first_creation_(true),
66 is_unsupported_(false), 66 is_unsupported_(false),
67 sspi_library_(SSPILibrary::GetDefault()) { 67 sspi_library_(SSPILibrary::GetDefault()) {
68 } 68 }
69 69
70 HttpAuthHandlerNTLM::Factory::~Factory() { 70 HttpAuthHandlerNTLM::Factory::~Factory() {
71 } 71 }
72 72
73 int HttpAuthHandlerNTLM::Factory::CreateAuthHandler( 73 int HttpAuthHandlerNTLM::Factory::CreateAuthHandler(
74 HttpAuth::ChallengeTokenizer* challenge, 74 HttpAuth::ChallengeTokenizer* challenge,
75 HttpAuth::Target target, 75 HttpAuth::Target target,
76 const GURL& origin, 76 const GURL& origin,
77 scoped_refptr<HttpAuthHandler>* handler) { 77 scoped_refptr<HttpAuthHandler>* handler) {
(...skipping 12 matching lines...) Expand all
90 scoped_refptr<HttpAuthHandler> tmp_handler( 90 scoped_refptr<HttpAuthHandler> tmp_handler(
91 new HttpAuthHandlerNTLM(sspi_library_, max_token_length_, 91 new HttpAuthHandlerNTLM(sspi_library_, max_token_length_,
92 url_security_manager())); 92 url_security_manager()));
93 if (!tmp_handler->InitFromChallenge(challenge, target, origin)) 93 if (!tmp_handler->InitFromChallenge(challenge, target, origin))
94 return ERR_INVALID_RESPONSE; 94 return ERR_INVALID_RESPONSE;
95 handler->swap(tmp_handler); 95 handler->swap(tmp_handler);
96 return OK; 96 return OK;
97 } 97 }
98 98
99 } // namespace net 99 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_ntlm_portable.cc ('k') | net/http/http_auth_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698