OLD | NEW |
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> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
16 #include "net/http/http_auth.h" | 16 #include "net/http/http_auth.h" |
17 #include "net/log/net_log.h" | |
18 #include "url/gurl.h" | 17 #include "url/gurl.h" |
19 | 18 |
20 namespace net { | 19 namespace net { |
21 | 20 |
22 class AuthChallengeInfo; | 21 class AuthChallengeInfo; |
23 class AuthCredentials; | 22 class AuthCredentials; |
24 class HttpAuthHandler; | 23 class HttpAuthHandler; |
25 class HttpAuthHandlerFactory; | 24 class HttpAuthHandlerFactory; |
26 class HttpAuthCache; | 25 class HttpAuthCache; |
27 class HttpRequestHeaders; | 26 class HttpRequestHeaders; |
| 27 class NetLogWithSource; |
28 struct HttpRequestInfo; | 28 struct HttpRequestInfo; |
29 class SSLInfo; | 29 class SSLInfo; |
30 | 30 |
31 class NET_EXPORT_PRIVATE HttpAuthController | 31 class NET_EXPORT_PRIVATE HttpAuthController |
32 : public base::RefCounted<HttpAuthController>, | 32 : public base::RefCounted<HttpAuthController>, |
33 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 33 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
34 public: | 34 public: |
35 // The arguments are self explanatory except possibly for |auth_url|, which | 35 // The arguments are self explanatory except possibly for |auth_url|, which |
36 // should be both the auth target and auth path in a single url argument. | 36 // should be both the auth target and auth path in a single url argument. |
37 HttpAuthController(HttpAuth::Target target, | 37 HttpAuthController(HttpAuth::Target target, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 HttpAuthHandlerFactory* const http_auth_handler_factory_; | 163 HttpAuthHandlerFactory* const http_auth_handler_factory_; |
164 | 164 |
165 std::set<HttpAuth::Scheme> disabled_schemes_; | 165 std::set<HttpAuth::Scheme> disabled_schemes_; |
166 | 166 |
167 CompletionCallback callback_; | 167 CompletionCallback callback_; |
168 }; | 168 }; |
169 | 169 |
170 } // namespace net | 170 } // namespace net |
171 | 171 |
172 #endif // NET_HTTP_HTTP_AUTH_CONTROLLER_H_ | 172 #endif // NET_HTTP_HTTP_AUTH_CONTROLLER_H_ |
OLD | NEW |