OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/socket/dns_cert_provenance_checker.h" | 5 #include "net/socket/dns_cert_provenance_checker.h" |
6 | 6 |
7 #if !defined(USE_OPENSSL) | 7 #if !defined(USE_OPENSSL) |
8 | 8 |
9 #include <nspr.h> | 9 #include <nspr.h> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 private: | 76 private: |
77 friend struct base::DefaultLazyInstanceTraits<DnsCertLimits>; | 77 friend struct base::DefaultLazyInstanceTraits<DnsCertLimits>; |
78 | 78 |
79 std::set<std::string> uploaded_hostnames_; | 79 std::set<std::string> uploaded_hostnames_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(DnsCertLimits); | 81 DISALLOW_COPY_AND_ASSIGN(DnsCertLimits); |
82 }; | 82 }; |
83 | 83 |
84 static base::LazyInstance<DnsCertLimits> g_dns_cert_limits( | 84 static base::LazyInstance<DnsCertLimits> g_dns_cert_limits = |
85 base::LINKER_INITIALIZED); | 85 LAZY_INSTANCE_INITIALIZER; |
86 | 86 |
87 // DnsCertProvenanceCheck performs the DNS lookup of the certificate. This | 87 // DnsCertProvenanceCheck performs the DNS lookup of the certificate. This |
88 // class is self-deleting. | 88 // class is self-deleting. |
89 class DnsCertProvenanceCheck : public base::NonThreadSafe { | 89 class DnsCertProvenanceCheck : public base::NonThreadSafe { |
90 public: | 90 public: |
91 DnsCertProvenanceCheck( | 91 DnsCertProvenanceCheck( |
92 const std::string& hostname, | 92 const std::string& hostname, |
93 DnsRRResolver* dnsrr_resolver, | 93 DnsRRResolver* dnsrr_resolver, |
94 DnsCertProvenanceChecker::Delegate* delegate, | 94 DnsCertProvenanceChecker::Delegate* delegate, |
95 const std::vector<base::StringPiece>& der_certs) | 95 const std::vector<base::StringPiece>& der_certs) |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 std::string DnsCertProvenanceChecker::BuildEncryptedReport( | 356 std::string DnsCertProvenanceChecker::BuildEncryptedReport( |
357 const std::string& hostname, | 357 const std::string& hostname, |
358 const std::vector<std::string>& der_certs) { | 358 const std::vector<std::string>& der_certs) { |
359 return ""; | 359 return ""; |
360 } | 360 } |
361 | 361 |
362 } // namespace net | 362 } // namespace net |
363 | 363 |
364 #endif // USE_OPENSSL | 364 #endif // USE_OPENSSL |
OLD | NEW |