OLD | NEW |
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 #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/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
19 #include "net/http/http_auth.h" | 19 #include "net/http/http_auth.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 class AuthChallengeInfo; | 23 class AuthChallengeInfo; |
24 class HostResolver; | |
25 class HttpAuthHandler; | 24 class HttpAuthHandler; |
26 class HttpNetworkSession; | 25 class HttpNetworkSession; |
27 class HttpRequestHeaders; | 26 class HttpRequestHeaders; |
28 struct HttpRequestInfo; | 27 struct HttpRequestInfo; |
29 | 28 |
30 class HttpAuthController : public base::RefCounted<HttpAuthController> { | 29 class HttpAuthController : public base::RefCounted<HttpAuthController> { |
31 public: | 30 public: |
32 // The arguments are self explanatory except possibly for |auth_url|, which | 31 // The arguments are self explanatory except possibly for |auth_url|, which |
33 // should be both the auth target and auth path in a single url argument. | 32 // should be both the auth target and auth path in a single url argument. |
34 HttpAuthController(HttpAuth::Target target, const GURL& auth_url, | 33 HttpAuthController(HttpAuth::Target target, const GURL& auth_url, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 139 |
141 std::set<std::string> disabled_schemes_; | 140 std::set<std::string> disabled_schemes_; |
142 | 141 |
143 CompletionCallbackImpl<HttpAuthController> io_callback_; | 142 CompletionCallbackImpl<HttpAuthController> io_callback_; |
144 CompletionCallback* user_callback_; | 143 CompletionCallback* user_callback_; |
145 }; | 144 }; |
146 | 145 |
147 } // namespace net | 146 } // namespace net |
148 | 147 |
149 #endif // NET_HTTP_HTTP_AUTH_CONTROLLER_H_ | 148 #endif // NET_HTTP_HTTP_AUTH_CONTROLLER_H_ |
OLD | NEW |