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

Side by Side Diff: net/base/crypto_module.h

Issue 2724013002: net: remove CryptoModule class (Closed)
Patch Set: Created 3 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
« no previous file with comments | « net/BUILD.gn ('k') | net/base/crypto_module_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_BASE_CRYPTO_MODULE_H_
6 #define NET_BASE_CRYPTO_MODULE_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "net/base/net_export.h"
14
15 #if defined(USE_NSS_CERTS)
16 typedef struct PK11SlotInfoStr PK11SlotInfo;
17 #endif
18
19 namespace net {
20
21 class CryptoModule;
22
23 class NET_EXPORT CryptoModule
24 : public base::RefCountedThreadSafe<CryptoModule> {
25 public:
26 #if defined(USE_NSS_CERTS)
27 typedef PK11SlotInfo* OSModuleHandle;
28 #else
29 typedef void* OSModuleHandle;
30 #endif
31
32 OSModuleHandle os_module_handle() const { return module_handle_; }
33
34 std::string GetTokenName() const;
35
36 static CryptoModule* CreateFromHandle(OSModuleHandle handle);
37
38 private:
39 friend class base::RefCountedThreadSafe<CryptoModule>;
40
41 explicit CryptoModule(OSModuleHandle handle);
42 ~CryptoModule();
43
44 OSModuleHandle module_handle_;
45
46 DISALLOW_COPY_AND_ASSIGN(CryptoModule);
47 };
48
49 } // namespace net
50
51 #endif // NET_BASE_CRYPTO_MODULE_H_
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/base/crypto_module_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698