| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "net/base/ssl_client_auth_cache.h" | 5 #include "net/base/ssl_client_auth_cache.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/base/x509_certificate.h" | 8 #include "net/base/x509_certificate.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 X509Certificate* value) { | 30 X509Certificate* value) { |
| 31 cache_[server] = value; | 31 cache_[server] = value; |
| 32 | 32 |
| 33 // TODO(wtc): enforce a maximum number of entries. | 33 // TODO(wtc): enforce a maximum number of entries. |
| 34 } | 34 } |
| 35 | 35 |
| 36 void SSLClientAuthCache::Remove(const std::string& server) { | 36 void SSLClientAuthCache::Remove(const std::string& server) { |
| 37 cache_.erase(server); | 37 cache_.erase(server); |
| 38 } | 38 } |
| 39 | 39 |
| 40 void SSLClientAuthCache::Clear() { |
| 41 cache_.clear(); |
| 42 } |
| 43 |
| 40 } // namespace net | 44 } // namespace net |
| OLD | NEW |