Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/ChildProcessMessageManager.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_dom_ChildProcessMessageManager_h
8
#define mozilla_dom_ChildProcessMessageManager_h
9
10
#include "mozilla/dom/SyncMessageSender.h"
11
#include "mozilla/dom/MessageManagerBinding.h"
12
13
namespace mozilla {
14
namespace dom {
15
16
class ChildProcessMessageManager final : public SyncMessageSender
17
{
18
public:
19
  explicit ChildProcessMessageManager(ipc::MessageManagerCallback* aCallback)
20
    : SyncMessageSender(aCallback,
21
                        MessageManagerFlags::MM_PROCESSMANAGER |
22
                        MessageManagerFlags::MM_OWNSCALLBACK)
23
0
  {
24
0
    mozilla::HoldJSObjects(this);
25
0
  }
26
27
  virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
28
0
  {
29
0
    return ChildProcessMessageManager_Binding::Wrap(aCx, this, aGivenProto);
30
0
  }
31
32
protected:
33
  virtual ~ChildProcessMessageManager()
34
0
  {
35
0
    mozilla::DropJSObjects(this);
36
0
  }
37
};
38
39
} // namespace dom
40
} // namespace mozilla
41
42
#endif // mozilla_dom_ChildProcessMessageManager_h