| 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_FTP_FTP_AUTH_CACHE_H_ | 5 #ifndef NET_FTP_FTP_AUTH_CACHE_H_ |
| 6 #define NET_FTP_FTP_AUTH_CACHE_H_ | 6 #define NET_FTP_FTP_AUTH_CACHE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <list> | 10 #include <list> |
| 9 | 11 |
| 10 #include "net/base/auth.h" | 12 #include "net/base/auth.h" |
| 11 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 12 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 13 | 15 |
| 14 namespace net { | 16 namespace net { |
| 15 | 17 |
| 16 // The FtpAuthCache class is a simple cache structure to store authentication | 18 // The FtpAuthCache class is a simple cache structure to store authentication |
| 17 // information for ftp. Provides lookup, insertion, and deletion of entries. | 19 // information for ftp. Provides lookup, insertion, and deletion of entries. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 typedef std::list<Entry> EntryList; | 54 typedef std::list<Entry> EntryList; |
| 53 | 55 |
| 54 // Internal representation of cache, an STL list. This makes lookups O(n), | 56 // Internal representation of cache, an STL list. This makes lookups O(n), |
| 55 // but we expect n to be very low. | 57 // but we expect n to be very low. |
| 56 EntryList entries_; | 58 EntryList entries_; |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 } // namespace net | 61 } // namespace net |
| 60 | 62 |
| 61 #endif // NET_FTP_FTP_AUTH_CACHE_H_ | 63 #endif // NET_FTP_FTP_AUTH_CACHE_H_ |
| OLD | NEW |