Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/toolkit/components/finalizationwitness/FinalizationWitnessService.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 file,
3
 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#ifndef mozilla_finalizationwitnessservice_h__
6
#define mozilla_finalizationwitnessservice_h__
7
8
#include "nsIFinalizationWitnessService.h"
9
#include "nsIObserver.h"
10
11
namespace mozilla {
12
13
/**
14
 * XPConnect initializer, for use in the main thread.
15
 */
16
class FinalizationWitnessService final : public nsIFinalizationWitnessService,
17
                                         public nsIObserver
18
{
19
 public:
20
  NS_DECL_ISUPPORTS
21
  NS_DECL_NSIFINALIZATIONWITNESSSERVICE
22
  NS_DECL_NSIOBSERVER
23
24
  nsresult Init();
25
 private:
26
0
  ~FinalizationWitnessService() {}
27
  void operator=(const FinalizationWitnessService* other) = delete;
28
};
29
30
} // namespace mozilla
31
32
#endif // mozilla_finalizationwitnessservice_h__