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

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

Issue 1393693002: [net/http auth] Split HttpAuthHandler creation from initialization. Base URL: https://chromium.googlesource.com/chromium/src.git@rename-auth-handler-methods
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_handler_mock.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void set_use_port(bool use_port) { use_port_ = use_port; } 69 void set_use_port(bool use_port) { use_port_ = use_port; }
70 70
71 void set_host_resolver(HostResolver* host_resolver); 71 void set_host_resolver(HostResolver* host_resolver);
72 72
73 // Sets the system library to use, thereby assuming ownership of 73 // Sets the system library to use, thereby assuming ownership of
74 // |auth_library|. 74 // |auth_library|.
75 void set_library(AuthLibrary* auth_provider) { 75 void set_library(AuthLibrary* auth_provider) {
76 auth_library_.reset(auth_provider); 76 auth_library_.reset(auth_provider);
77 } 77 }
78 78
79 int CreateAuthHandler(const HttpAuthChallengeTokenizer& challenge, 79 // HttpAuthHandlerFactory
80 HttpAuth::Target target, 80 scoped_ptr<HttpAuthHandler> CreateAuthHandlerForScheme(
81 const GURL& origin, 81 const std::string& scheme) override;
82 CreateReason reason, 82 scoped_ptr<HttpAuthHandler> CreateAndInitPreemptiveAuthHandler(
83 int digest_nonce_count, 83 HttpAuthCache::Entry* cache_entry,
84 const BoundNetLog& net_log, 84 const HttpAuthChallengeTokenizer& tokenizer,
85 scoped_ptr<HttpAuthHandler>* handler) override; 85 HttpAuth::Target target,
86 const BoundNetLog& net_log) override;
86 87
87 private: 88 private:
88 bool disable_cname_lookup_; 89 bool disable_cname_lookup_;
89 bool use_port_; 90 bool use_port_;
90 HostResolver* resolver_; 91 HostResolver* resolver_;
91 #if defined(OS_WIN) 92 #if defined(OS_WIN)
92 ULONG max_token_length_; 93 ULONG max_token_length_;
93 #endif 94 #endif
94 bool is_unsupported_; 95 bool is_unsupported_;
95 scoped_ptr<AuthLibrary> auth_library_; 96 scoped_ptr<AuthLibrary> auth_library_;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 std::string* auth_token_; 165 std::string* auth_token_;
165 166
166 State next_state_; 167 State next_state_;
167 168
168 const URLSecurityManager* url_security_manager_; 169 const URLSecurityManager* url_security_manager_;
169 }; 170 };
170 171
171 } // namespace net 172 } // namespace net
172 173
173 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ 174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_mock.cc ('k') | net/http/http_auth_handler_negotiate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698