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 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
16 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "net/base/x509_cert_types.h" | 18 #include "net/base/x509_cert_types.h" |
19 | 19 |
20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
21 #include <windows.h> | 21 #include <windows.h> |
22 #include <wincrypt.h> | 22 #include <wincrypt.h> |
23 #elif defined(OS_MACOSX) | 23 #elif defined(OS_MACOSX) |
24 #include <CoreFoundation/CFArray.h> | 24 #include <CoreFoundation/CFArray.h> |
25 #include <Security/SecBase.h> | 25 #include <Security/SecBase.h> |
| 26 |
| 27 #include "base/lock.h" |
26 #elif defined(USE_OPENSSL) | 28 #elif defined(USE_OPENSSL) |
27 // Forward declaration; real one in <x509.h> | 29 // Forward declaration; real one in <x509.h> |
28 struct x509_st; | 30 struct x509_st; |
29 typedef struct x509_store_st X509_STORE; | 31 typedef struct x509_store_st X509_STORE; |
30 #elif defined(USE_NSS) | 32 #elif defined(USE_NSS) |
31 // Forward declaration; real one in <cert.h> | 33 // Forward declaration; real one in <cert.h> |
32 struct CERTCertificateStr; | 34 struct CERTCertificateStr; |
33 #endif | 35 #endif |
34 | 36 |
35 class Pickle; | 37 class Pickle; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 336 |
335 // Where the certificate comes from. | 337 // Where the certificate comes from. |
336 Source source_; | 338 Source source_; |
337 | 339 |
338 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 340 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
339 }; | 341 }; |
340 | 342 |
341 } // namespace net | 343 } // namespace net |
342 | 344 |
343 #endif // NET_BASE_X509_CERTIFICATE_H_ | 345 #endif // NET_BASE_X509_CERTIFICATE_H_ |
OLD | NEW |