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

Side by Side Diff: net/ssl/openssl_client_key_store.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 | « net/spdy/hpack/hpack_constants.cc ('k') | net/ssl/openssl_client_key_store.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ 5 #ifndef NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_
6 #define NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ 6 #define NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_
7 7
8 #include <openssl/evp.h> 8 #include <openssl/evp.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 private: 84 private:
85 KeyPair(); // intentionally not implemented. 85 KeyPair(); // intentionally not implemented.
86 }; 86 };
87 87
88 // Returns the index of the keypair for |public_key|. or -1 if not found. 88 // Returns the index of the keypair for |public_key|. or -1 if not found.
89 int FindKeyPairIndex(EVP_PKEY* public_key); 89 int FindKeyPairIndex(EVP_PKEY* public_key);
90 90
91 std::vector<KeyPair> pairs_; 91 std::vector<KeyPair> pairs_;
92 92
93 friend struct DefaultSingletonTraits<OpenSSLClientKeyStore>; 93 friend struct base::DefaultSingletonTraits<OpenSSLClientKeyStore>;
94 94
95 DISALLOW_COPY_AND_ASSIGN(OpenSSLClientKeyStore); 95 DISALLOW_COPY_AND_ASSIGN(OpenSSLClientKeyStore);
96 }; 96 };
97 97
98 } // namespace net 98 } // namespace net
99 99
100 #endif // NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ 100 #endif // NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_
OLDNEW
« no previous file with comments | « net/spdy/hpack/hpack_constants.cc ('k') | net/ssl/openssl_client_key_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698