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

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

Issue 2688173002: Don't rely on SSL cipher fallback in proxy auth. (Closed)
Patch Set: Created 3 years, 10 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
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_CONTROLLER_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_CONTROLLER_H_
6 #define NET_HTTP_HTTP_AUTH_CONTROLLER_H_ 6 #define NET_HTTP_HTTP_AUTH_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual bool HaveAuthHandler() const; 67 virtual bool HaveAuthHandler() const;
68 68
69 virtual bool HaveAuth() const; 69 virtual bool HaveAuth() const;
70 70
71 virtual scoped_refptr<AuthChallengeInfo> auth_info(); 71 virtual scoped_refptr<AuthChallengeInfo> auth_info();
72 72
73 virtual bool IsAuthSchemeDisabled(HttpAuth::Scheme scheme) const; 73 virtual bool IsAuthSchemeDisabled(HttpAuth::Scheme scheme) const;
74 virtual void DisableAuthScheme(HttpAuth::Scheme scheme); 74 virtual void DisableAuthScheme(HttpAuth::Scheme scheme);
75 virtual void DisableEmbeddedIdentity(); 75 virtual void DisableEmbeddedIdentity();
76 76
77 // Called when the connection has been closed, so the current handler (which
78 // contains state bound to the connection) should be dropped. If retrying on a
79 // new connection, the next call to MaybeGenerateAuthToken will retry the
80 // current auth scheme.
81 virtual void OnConnectionClosed();
82
77 private: 83 private:
78 // Actions for InvalidateCurrentHandler() 84 // Actions for InvalidateCurrentHandler()
79 enum InvalidateHandlerAction { 85 enum InvalidateHandlerAction {
80 INVALIDATE_HANDLER_AND_CACHED_CREDENTIALS, 86 INVALIDATE_HANDLER_AND_CACHED_CREDENTIALS,
81 INVALIDATE_HANDLER_AND_DISABLE_SCHEME, 87 INVALIDATE_HANDLER_AND_DISABLE_SCHEME,
82 INVALIDATE_HANDLER 88 INVALIDATE_HANDLER
83 }; 89 };
84 90
85 // So that we can mock this object. 91 // So that we can mock this object.
86 friend class base::RefCounted<HttpAuthController>; 92 friend class base::RefCounted<HttpAuthController>;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 HttpAuthHandlerFactory* const http_auth_handler_factory_; 169 HttpAuthHandlerFactory* const http_auth_handler_factory_;
164 170
165 std::set<HttpAuth::Scheme> disabled_schemes_; 171 std::set<HttpAuth::Scheme> disabled_schemes_;
166 172
167 CompletionCallback callback_; 173 CompletionCallback callback_;
168 }; 174 };
169 175
170 } // namespace net 176 } // namespace net
171 177
172 #endif // NET_HTTP_HTTP_AUTH_CONTROLLER_H_ 178 #endif // NET_HTTP_HTTP_AUTH_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_auth_controller.cc » ('j') | net/http/http_proxy_client_socket_wrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698