Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: net/ftp/ftp_auth_cache.h

Issue 132004: Add a simple cache of certificates for SSL client authentication.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/ssl_client_auth_cache_unittest.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 10
(...skipping 24 matching lines...) Expand all
35 // Add an entry for |origin| to the cache. If there is already an 35 // Add an entry for |origin| to the cache. If there is already an
36 // entry for |origin|, it will be overwritten. Both parameters are IN only. 36 // entry for |origin|, it will be overwritten. Both parameters are IN only.
37 void Add(const GURL& origin, AuthData* value); 37 void Add(const GURL& origin, AuthData* value);
38 38
39 // Remove the entry for |origin| from the cache, if one exists. 39 // Remove the entry for |origin| from the cache, if one exists.
40 void Remove(const GURL& origin); 40 void Remove(const GURL& origin);
41 41
42 private: 42 private:
43 typedef std::string AuthCacheKey; 43 typedef std::string AuthCacheKey;
44 typedef scoped_refptr<AuthData> AuthCacheValue; 44 typedef scoped_refptr<AuthData> AuthCacheValue;
45 typedef std::map<AuthCacheKey,AuthCacheValue> AuthCacheMap; 45 typedef std::map<AuthCacheKey, AuthCacheValue> AuthCacheMap;
46 46
47 // Get the key in hash table |cache_| where entries for ftp server |origin| 47 // Get the key in hash table |cache_| where entries for ftp server |origin|
48 // should be saved. 48 // should be saved.
49 static AuthCacheKey MakeKey(const GURL& origin); 49 static AuthCacheKey MakeKey(const GURL& origin);
50 50
51 // internal representation of cache, an STL map. 51 // internal representation of cache, an STL map.
52 AuthCacheMap cache_; 52 AuthCacheMap cache_;
53 }; 53 };
54 54
55 } // namespace net 55 } // namespace net
56 56
57 #endif // NET_FTP_FTP_AUTH_CACHE_H_ 57 #endif // NET_FTP_FTP_AUTH_CACHE_H_
OLDNEW
« no previous file with comments | « net/base/ssl_client_auth_cache_unittest.cc ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698