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

Side by Side Diff: net/base/x509_certificate.h

Issue 5024003: Reland r65996. Disallows Singletons on non-joinable thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow another use that should be fixed. Created 10 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/base/keygen_handler_unittest.cc ('k') | net/base/x509_certificate.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef NET_BASE_X509_CERTIFICATE_H_ 5 #ifndef NET_BASE_X509_CERTIFICATE_H_
6 #define NET_BASE_X509_CERTIFICATE_H_ 6 #define NET_BASE_X509_CERTIFICATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 static OSCertHandle DupOSCertHandle(OSCertHandle cert_handle); 270 static OSCertHandle DupOSCertHandle(OSCertHandle cert_handle);
271 271
272 // Frees (or releases a reference to) an OS certificate handle. 272 // Frees (or releases a reference to) an OS certificate handle.
273 static void FreeOSCertHandle(OSCertHandle cert_handle); 273 static void FreeOSCertHandle(OSCertHandle cert_handle);
274 274
275 private: 275 private:
276 friend class base::RefCountedThreadSafe<X509Certificate>; 276 friend class base::RefCountedThreadSafe<X509Certificate>;
277 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, Cache); 277 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, Cache);
278 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, IntermediateCertificates); 278 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, IntermediateCertificates);
279 279
280 class Cache;
281
282 // Construct an X509Certificate from a handle to the certificate object 280 // Construct an X509Certificate from a handle to the certificate object
283 // in the underlying crypto library. 281 // in the underlying crypto library.
284 X509Certificate(OSCertHandle cert_handle, Source source, 282 X509Certificate(OSCertHandle cert_handle, Source source,
285 const OSCertHandles& intermediates); 283 const OSCertHandles& intermediates);
286 284
287 ~X509Certificate(); 285 ~X509Certificate();
288 286
289 // Common object initialization code. Called by the constructors only. 287 // Common object initialization code. Called by the constructors only.
290 void Initialize(); 288 void Initialize();
291 289
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 327
330 // Where the certificate comes from. 328 // Where the certificate comes from.
331 Source source_; 329 Source source_;
332 330
333 DISALLOW_COPY_AND_ASSIGN(X509Certificate); 331 DISALLOW_COPY_AND_ASSIGN(X509Certificate);
334 }; 332 };
335 333
336 } // namespace net 334 } // namespace net
337 335
338 #endif // NET_BASE_X509_CERTIFICATE_H_ 336 #endif // NET_BASE_X509_CERTIFICATE_H_
OLDNEW
« no previous file with comments | « net/base/keygen_handler_unittest.cc ('k') | net/base/x509_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698