| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |