| 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/base/x509_util.h" | 5 #include "net/cert/x509_util.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "net/base/x509_certificate.h" | 8 #include "net/cert/x509_certificate.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 namespace x509_util { | 12 namespace x509_util { |
| 13 | 13 |
| 14 ClientCertSorter::ClientCertSorter() : now_(base::Time::Now()) {} | 14 ClientCertSorter::ClientCertSorter() : now_(base::Time::Now()) {} |
| 15 | 15 |
| 16 bool ClientCertSorter::operator()( | 16 bool ClientCertSorter::operator()( |
| 17 const scoped_refptr<X509Certificate>& a, | 17 const scoped_refptr<X509Certificate>& a, |
| 18 const scoped_refptr<X509Certificate>& b) const { | 18 const scoped_refptr<X509Certificate>& b) const { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 40 const X509Certificate::OSCertHandles& a_intermediates = | 40 const X509Certificate::OSCertHandles& a_intermediates = |
| 41 a->GetIntermediateCertificates(); | 41 a->GetIntermediateCertificates(); |
| 42 const X509Certificate::OSCertHandles& b_intermediates = | 42 const X509Certificate::OSCertHandles& b_intermediates = |
| 43 b->GetIntermediateCertificates(); | 43 b->GetIntermediateCertificates(); |
| 44 return a_intermediates.size() < b_intermediates.size(); | 44 return a_intermediates.size() < b_intermediates.size(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace x509_util | 47 } // namespace x509_util |
| 48 | 48 |
| 49 } // namespace net | 49 } // namespace net |
| OLD | NEW |