| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_ | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 | |
| 10 namespace net { | |
| 11 class X509Certificate; | |
| 12 } | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 class CertificatePattern; | |
| 17 | |
| 18 // Fetches the matching certificate that has the latest valid start date. | |
| 19 // Returns a NULL refptr if there is no such match. | |
| 20 scoped_refptr<net::X509Certificate> GetCertificateMatch( | |
| 21 const CertificatePattern& pattern); | |
| 22 | |
| 23 } // namespace chromeos | |
| 24 | |
| 25 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_ | |
| OLD | NEW |