OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CRYPTO_NSS_UTIL_H_ | 5 #ifndef CRYPTO_NSS_UTIL_H_ |
6 #define CRYPTO_NSS_UTIL_H_ | 6 #define CRYPTO_NSS_UTIL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "crypto/crypto_export.h" | 14 #include "crypto/crypto_export.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class FilePath; | |
18 class Lock; | 17 class Lock; |
19 class Time; | 18 class Time; |
20 } // namespace base | 19 } // namespace base |
21 | 20 |
22 // This file specifically doesn't depend on any NSS or NSPR headers because it | 21 // This file specifically doesn't depend on any NSS or NSPR headers because it |
23 // is included by various (non-crypto) parts of chrome to call the | 22 // is included by various (non-crypto) parts of chrome to call the |
24 // initialization functions. | 23 // initialization functions. |
25 namespace crypto { | 24 namespace crypto { |
26 | 25 |
27 // EarlySetupForNSSInit performs lightweight setup which must occur before the | 26 // EarlySetupForNSSInit performs lightweight setup which must occur before the |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 AutoNSSWriteLock(); | 95 AutoNSSWriteLock(); |
97 ~AutoNSSWriteLock(); | 96 ~AutoNSSWriteLock(); |
98 private: | 97 private: |
99 base::Lock *lock_; | 98 base::Lock *lock_; |
100 DISALLOW_COPY_AND_ASSIGN(AutoNSSWriteLock); | 99 DISALLOW_COPY_AND_ASSIGN(AutoNSSWriteLock); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace crypto | 102 } // namespace crypto |
104 | 103 |
105 #endif // CRYPTO_NSS_UTIL_H_ | 104 #endif // CRYPTO_NSS_UTIL_H_ |
OLD | NEW |