| 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_CACHE_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_CACHE_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_CACHE_H_ | 6 #define NET_HTTP_HTTP_AUTH_CACHE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "googleurl/src/gurl.h" | |
| 14 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 15 #include "net/http/http_auth.h" | 14 #include "net/http/http_auth.h" |
| 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 // HttpAuthCache stores HTTP authentication identities and challenge info. | 19 // HttpAuthCache stores HTTP authentication identities and challenge info. |
| 20 // For each (origin, realm, scheme) triple the cache stores a | 20 // For each (origin, realm, scheme) triple the cache stores a |
| 21 // HttpAuthCache::Entry, which holds: | 21 // HttpAuthCache::Entry, which holds: |
| 22 // - the origin server {protocol scheme, host, port} | 22 // - the origin server {protocol scheme, host, port} |
| 23 // - the last identity used (username/password) | 23 // - the last identity used (username/password) |
| 24 // - the last auth handler used (contains realm and authentication scheme) | 24 // - the last auth handler used (contains realm and authentication scheme) |
| 25 // - the list of paths which used this realm | 25 // - the list of paths which used this realm |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 int nonce_count_; | 175 int nonce_count_; |
| 176 | 176 |
| 177 // List of paths that define the realm's protection space. | 177 // List of paths that define the realm's protection space. |
| 178 PathList paths_; | 178 PathList paths_; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace net | 181 } // namespace net |
| 182 | 182 |
| 183 #endif // NET_HTTP_HTTP_AUTH_CACHE_H_ | 183 #endif // NET_HTTP_HTTP_AUTH_CACHE_H_ |
| OLD | NEW |