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

Side by Side Diff: net/cert/x509_util.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 8 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698