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

Side by Side Diff: base/crypto/capi_util.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/crypto/capi_util.h" 5 #include "base/crypto/capi_util.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 10
11 namespace { 11 namespace {
12 12
13 class CAPIUtilSingleton { 13 class CAPIUtilSingleton {
14 public: 14 public:
15 static CAPIUtilSingleton* GetInstance() { 15 static CAPIUtilSingleton* GetInstance() {
16 return Singleton<CAPIUtilSingleton>::get(); 16 return Singleton<CAPIUtilSingleton>::get();
17 } 17 }
18 18
(...skipping 22 matching lines...) Expand all
41 LPCWSTR container, 41 LPCWSTR container,
42 LPCWSTR provider, 42 LPCWSTR provider,
43 DWORD prov_type, 43 DWORD prov_type,
44 DWORD flags) 44 DWORD flags)
45 { 45 {
46 base::AutoLock lock(CAPIUtilSingleton::GetInstance()->acquire_context_lock()); 46 base::AutoLock lock(CAPIUtilSingleton::GetInstance()->acquire_context_lock());
47 return CryptAcquireContext(prov, container, provider, prov_type, flags); 47 return CryptAcquireContext(prov, container, provider, prov_type, flags);
48 } 48 }
49 49
50 } // namespace base 50 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698