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 #elif defined(USE_NSS) | 31 #elif defined(USE_NSS) |
30 // Forward declaration; real one in <cert.h> | 32 // Forward declaration; real one in <cert.h> |
31 struct CERTCertificateStr; | 33 struct CERTCertificateStr; |
32 #endif | 34 #endif |
33 | 35 |
34 class Pickle; | 36 class Pickle; |
35 | 37 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 331 |
330 // Where the certificate comes from. | 332 // Where the certificate comes from. |
331 Source source_; | 333 Source source_; |
332 | 334 |
333 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 335 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
334 }; | 336 }; |
335 | 337 |
336 } // namespace net | 338 } // namespace net |
337 | 339 |
338 #endif // NET_BASE_X509_CERTIFICATE_H_ | 340 #endif // NET_BASE_X509_CERTIFICATE_H_ |
OLD | NEW |