OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/cert/x509_certificate.h" | 5 #include "net/cert/x509_certificate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/base64.h" | 14 #include "base/base64.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/macros.h" |
17 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/singleton.h" | 19 #include "base/memory/singleton.h" |
19 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
20 #include "base/pickle.h" | 21 #include "base/pickle.h" |
21 #include "base/profiler/scoped_tracker.h" | 22 #include "base/profiler/scoped_tracker.h" |
22 #include "base/sha1.h" | 23 #include "base/sha1.h" |
23 #include "base/strings/string_piece.h" | 24 #include "base/strings/string_piece.h" |
24 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
25 #include "base/synchronization/lock.h" | 26 #include "base/synchronization/lock.h" |
26 #include "base/time/time.h" | 27 #include "base/time/time.h" |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 RemoveFromCache(cert_handle_); | 760 RemoveFromCache(cert_handle_); |
760 FreeOSCertHandle(cert_handle_); | 761 FreeOSCertHandle(cert_handle_); |
761 } | 762 } |
762 for (size_t i = 0; i < intermediate_ca_certs_.size(); ++i) { | 763 for (size_t i = 0; i < intermediate_ca_certs_.size(); ++i) { |
763 RemoveFromCache(intermediate_ca_certs_[i]); | 764 RemoveFromCache(intermediate_ca_certs_[i]); |
764 FreeOSCertHandle(intermediate_ca_certs_[i]); | 765 FreeOSCertHandle(intermediate_ca_certs_[i]); |
765 } | 766 } |
766 } | 767 } |
767 | 768 |
768 } // namespace net | 769 } // namespace net |
OLD | NEW |