OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
19 #include "net/base/net_api.h" | 19 #include "net/base/net_export.h" |
20 #include "net/base/net_log.h" | 20 #include "net/base/net_log.h" |
21 #include "net/http/http_auth.h" | 21 #include "net/http/http_auth.h" |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 class AuthChallengeInfo; | 25 class AuthChallengeInfo; |
26 class HttpAuthHandler; | 26 class HttpAuthHandler; |
27 class HttpAuthHandlerFactory; | 27 class HttpAuthHandlerFactory; |
28 class HttpAuthCache; | 28 class HttpAuthCache; |
29 class HttpRequestHeaders; | 29 class HttpRequestHeaders; |
30 struct HttpRequestInfo; | 30 struct HttpRequestInfo; |
31 | 31 |
32 class NET_TEST HttpAuthController | 32 class NET_EXPORT_PRIVATE HttpAuthController |
33 : public base::RefCounted<HttpAuthController>, | 33 : public base::RefCounted<HttpAuthController>, |
34 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 34 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
35 public: | 35 public: |
36 // The arguments are self explanatory except possibly for |auth_url|, which | 36 // The arguments are self explanatory except possibly for |auth_url|, which |
37 // should be both the auth target and auth path in a single url argument. | 37 // should be both the auth target and auth path in a single url argument. |
38 HttpAuthController(HttpAuth::Target target, | 38 HttpAuthController(HttpAuth::Target target, |
39 const GURL& auth_url, | 39 const GURL& auth_url, |
40 HttpAuthCache* http_auth_cache, | 40 HttpAuthCache* http_auth_cache, |
41 HttpAuthHandlerFactory* http_auth_handler_factory); | 41 HttpAuthHandlerFactory* http_auth_handler_factory); |
42 | 42 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 std::set<HttpAuth::Scheme> disabled_schemes_; | 164 std::set<HttpAuth::Scheme> disabled_schemes_; |
165 | 165 |
166 CompletionCallbackImpl<HttpAuthController> io_callback_; | 166 CompletionCallbackImpl<HttpAuthController> io_callback_; |
167 CompletionCallback* user_callback_; | 167 CompletionCallback* user_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 |