Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/midi/MIDIManagerParent.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim:set ts=2 sw=2 sts=2 et cindent: */
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
#include "mozilla/dom/MIDIManagerParent.h"
8
#include "mozilla/dom/MIDIPlatformService.h"
9
10
namespace mozilla {
11
namespace dom {
12
13
void
14
MIDIManagerParent::ActorDestroy(ActorDestroyReason aWhy)
15
0
{
16
0
}
17
18
void
19
MIDIManagerParent::Teardown()
20
0
{
21
0
  if (MIDIPlatformService::IsRunning()) {
22
0
    MIDIPlatformService::Get()->RemoveManager(this);
23
0
  }
24
0
}
25
26
mozilla::ipc::IPCResult
27
MIDIManagerParent::RecvShutdown()
28
0
{
29
0
  Teardown();
30
0
  Unused << Send__delete__(this);
31
0
  return IPC_OK();
32
0
}
33
34
} // namespace dom
35
} // namespace mozilla