OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "crypto/capi_util.h" | 5 #include "crypto/capi_util.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
8 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
9 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
10 | 12 |
11 namespace { | 13 namespace { |
12 | 14 |
13 class CAPIUtilSingleton { | 15 class CAPIUtilSingleton { |
14 public: | 16 public: |
15 static CAPIUtilSingleton* GetInstance() { | 17 static CAPIUtilSingleton* GetInstance() { |
16 return base::Singleton<CAPIUtilSingleton>::get(); | 18 return base::Singleton<CAPIUtilSingleton>::get(); |
17 } | 19 } |
(...skipping 30 matching lines...) Expand all Loading... |
48 | 50 |
49 void* WINAPI CryptAlloc(size_t size) { | 51 void* WINAPI CryptAlloc(size_t size) { |
50 return malloc(size); | 52 return malloc(size); |
51 } | 53 } |
52 | 54 |
53 void WINAPI CryptFree(void* p) { | 55 void WINAPI CryptFree(void* p) { |
54 free(p); | 56 free(p); |
55 } | 57 } |
56 | 58 |
57 } // namespace crypto | 59 } // namespace crypto |
OLD | NEW |