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

Side by Side Diff: net/base/openssl_memory_private_key_store.cc

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixes comments by eroman Created 9 years, 8 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
« no previous file with comments | « net/base/keygen_handler_win.cc ('k') | net/base/run_all_unittests.cc » ('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 // Defines an in-memory private key store, primarily used for testing. 5 // Defines an in-memory private key store, primarily used for testing.
6 6
7 #include <openssl/evp.h> 7 #include <openssl/evp.h>
8 8
9 #include "net/base/openssl_private_key_store.h" 9 #include "net/base/openssl_private_key_store.h"
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "base/openssl_util.h"
14 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
15 #include "net/base/x509_certificate.h" 14 #include "net/base/x509_certificate.h"
16 15
17 namespace net { 16 namespace net {
18 17
19 namespace { 18 namespace {
20 19
21 class OpenSSLMemoryKeyStore : public OpenSSLPrivateKeyStore { 20 class OpenSSLMemoryKeyStore : public OpenSSLPrivateKeyStore {
22 public: 21 public:
23 OpenSSLMemoryKeyStore() {} 22 OpenSSLMemoryKeyStore() {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 59
61 } // namespace 60 } // namespace
62 61
63 // static 62 // static
64 OpenSSLPrivateKeyStore* OpenSSLPrivateKeyStore::GetInstance() { 63 OpenSSLPrivateKeyStore* OpenSSLPrivateKeyStore::GetInstance() {
65 return OpenSSLMemoryKeyStore::GetInstance(); 64 return OpenSSLMemoryKeyStore::GetInstance();
66 } 65 }
67 66
68 } // namespace net 67 } // namespace net
69 68
OLDNEW
« no previous file with comments | « net/base/keygen_handler_win.cc ('k') | net/base/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698