| 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 "chrome/browser/chromeos/cros/certificate_pattern.h" | 5 #include "chrome/browser/chromeos/cros/certificate_pattern.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include <cert.h> | 12 #include <cert.h> |
| 13 #include <pk11pub.h> | 13 #include <pk11pub.h> |
| 14 | 14 |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "net/base/cert_database.h" | |
| 18 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 19 #include "net/base/nss_cert_database.h" | 18 #include "net/cert/cert_database.h" |
| 20 #include "net/base/x509_cert_types.h" | 19 #include "net/cert/nss_cert_database.h" |
| 21 #include "net/base/x509_certificate.h" | 20 #include "net/cert/x509_cert_types.h" |
| 21 #include "net/cert/x509_certificate.h" |
| 22 | 22 |
| 23 // To shorten some of those long lines below. | 23 // To shorten some of those long lines below. |
| 24 using base::DictionaryValue; | 24 using base::DictionaryValue; |
| 25 using base::ListValue; | 25 using base::ListValue; |
| 26 using std::find; | 26 using std::find; |
| 27 using std::list; | 27 using std::list; |
| 28 using std::string; | 28 using std::string; |
| 29 using std::vector; | 29 using std::vector; |
| 30 | 30 |
| 31 namespace chromeos { | 31 namespace chromeos { |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // If we didn't copy anything from the dictionary, then it had better be | 343 // If we didn't copy anything from the dictionary, then it had better be |
| 344 // empty. | 344 // empty. |
| 345 DCHECK(dict.empty() == Empty()); | 345 DCHECK(dict.empty() == Empty()); |
| 346 if (dict.empty() != Empty()) | 346 if (dict.empty() != Empty()) |
| 347 return false; | 347 return false; |
| 348 | 348 |
| 349 return true; | 349 return true; |
| 350 } | 350 } |
| 351 | 351 |
| 352 } // namespace chromeos | 352 } // namespace chromeos |
| OLD | NEW |