Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: crypto/capi_util.cc

Issue 1539353003: Switch to standard integer types in crypto/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crypto/capi_util.h ('k') | crypto/cssm_init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « crypto/capi_util.h ('k') | crypto/cssm_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698