Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/security/manager/ssl/nsKeyModule.h
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#ifndef nsKeyModule_h
6
#define nsKeyModule_h
7
8
#include "ScopedNSSTypes.h"
9
#include "nsIKeyModule.h"
10
#include "pk11pub.h"
11
12
#define NS_KEYMODULEOBJECT_CID   \
13
{ 0x9d383ddd, 0x6856, 0x4187, {0x84, 0x85, 0xf3, 0x61, 0x95, 0xb2, 0x9a, 0x0e} }
14
0
#define NS_KEYMODULEOBJECT_CONTRACTID "@mozilla.org/security/keyobject;1"
15
16
#define NS_KEYMODULEOBJECTFACTORY_CID   \
17
{ 0x2a35dd47, 0xb026, 0x4e8d, {0xb6, 0xb7, 0x57, 0x40, 0xf6, 0x1a, 0xb9, 0x02} }
18
0
#define NS_KEYMODULEOBJECTFACTORY_CONTRACTID \
19
0
"@mozilla.org/security/keyobjectfactory;1"
20
21
class nsKeyObject final : public nsIKeyObject
22
{
23
public:
24
  nsKeyObject();
25
26
  NS_DECL_ISUPPORTS
27
  NS_DECL_NSIKEYOBJECT
28
29
private:
30
0
  ~nsKeyObject() {}
31
32
  // Disallow copy constructor
33
  nsKeyObject(nsKeyObject&);
34
35
  UniquePK11SymKey mSymKey;
36
};
37
38
39
class nsKeyObjectFactory final : public nsIKeyObjectFactory
40
{
41
public:
42
0
  nsKeyObjectFactory() {}
43
44
  NS_DECL_THREADSAFE_ISUPPORTS
45
  NS_DECL_NSIKEYOBJECTFACTORY
46
47
private:
48
0
  ~nsKeyObjectFactory() {}
49
50
  // Disallow copy constructor
51
  nsKeyObjectFactory(nsKeyObjectFactory&);
52
};
53
54
#endif // nsKeyModule_h