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 <string> | 8 #include <string> |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "crypto/crypto_export.h" | 10 #include "crypto/crypto_export.h" |
11 | 11 |
12 #if defined(USE_NSS) | 12 namespace base { |
13 class FilePath; | 13 class FilePath; |
14 #endif // defined(USE_NSS) | |
15 | |
16 namespace base { | |
17 class Lock; | 14 class Lock; |
18 class Time; | 15 class Time; |
19 } // namespace base | 16 } // namespace base |
20 | 17 |
21 // This file specifically doesn't depend on any NSS or NSPR headers because it | 18 // This file specifically doesn't depend on any NSS or NSPR headers because it |
22 // is included by various (non-crypto) parts of chrome to call the | 19 // is included by various (non-crypto) parts of chrome to call the |
23 // initialization functions. | 20 // initialization functions. |
24 namespace crypto { | 21 namespace crypto { |
25 | 22 |
26 class SymmetricKey; | 23 class SymmetricKey; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 private: | 171 private: |
175 base::Lock *lock_; | 172 base::Lock *lock_; |
176 DISALLOW_COPY_AND_ASSIGN(AutoNSSWriteLock); | 173 DISALLOW_COPY_AND_ASSIGN(AutoNSSWriteLock); |
177 }; | 174 }; |
178 | 175 |
179 #endif // defined(USE_NSS) | 176 #endif // defined(USE_NSS) |
180 | 177 |
181 } // namespace crypto | 178 } // namespace crypto |
182 | 179 |
183 #endif // CRYPTO_NSS_UTIL_H_ | 180 #endif // CRYPTO_NSS_UTIL_H_ |
OLD | NEW |