Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/clients/manager/ClientHandleOpChild.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
#ifndef _mozilla_dom_ClientHandleOpChild_h
7
#define _mozilla_dom_ClientHandleOpChild_h
8
9
#include "mozilla/dom/ClientOpPromise.h"
10
#include "mozilla/dom/PClientHandleOpChild.h"
11
12
namespace mozilla {
13
namespace dom {
14
15
class ClientHandle;
16
17
class ClientHandleOpChild final : public PClientHandleOpChild
18
{
19
  RefPtr<ClientHandle> mClientHandle;
20
  const ClientOpCallback mResolveCallback;
21
  const ClientOpCallback mRejectCallback;
22
23
  // PClientHandleOpChild interface
24
  void
25
  ActorDestroy(ActorDestroyReason aReason) override;
26
27
  mozilla::ipc::IPCResult
28
  Recv__delete__(const ClientOpResult& aResult) override;
29
30
public:
31
  ClientHandleOpChild(ClientHandle* aClientHandle,
32
                      const ClientOpConstructorArgs& aArgs,
33
                      const ClientOpCallback&& aResolveCallback,
34
                      const ClientOpCallback&& aRejectCallback);
35
36
0
  ~ClientHandleOpChild() = default;
37
};
38
39
} // namespace dom
40
} // namespace mozilla
41
42
#endif // _mozilla_dom_ClientHandleOpChild_h