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

Side by Side Diff: net/socket/dns_cert_provenance_checker.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: willchan comments + rebase Created 9 years, 1 month 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
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698