2017-11-01 20:19:38 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef _mozilla_dom_ClientHandleOpParent_h
|
|
|
|
#define _mozilla_dom_ClientHandleOpParent_h
|
|
|
|
|
2017-12-05 22:54:10 +03:00
|
|
|
#include "ClientOpPromise.h"
|
2017-11-01 20:19:38 +03:00
|
|
|
#include "mozilla/dom/PClientHandleOpParent.h"
|
2019-08-27 01:53:37 +03:00
|
|
|
#include "ClientHandleParent.h"
|
2017-11-01 20:19:38 +03:00
|
|
|
|
2022-05-09 23:41:05 +03:00
|
|
|
namespace mozilla::dom {
|
2017-11-01 20:19:38 +03:00
|
|
|
|
2017-12-05 22:54:10 +03:00
|
|
|
class ClientSourceParent;
|
|
|
|
|
2017-11-01 20:19:38 +03:00
|
|
|
class ClientHandleOpParent final : public PClientHandleOpParent {
|
2017-12-05 22:54:10 +03:00
|
|
|
MozPromiseRequestHolder<ClientOpPromise> mPromiseRequestHolder;
|
2019-08-27 01:53:37 +03:00
|
|
|
MozPromiseRequestHolder<SourcePromise> mSourcePromiseRequestHolder;
|
2017-12-05 22:54:10 +03:00
|
|
|
|
|
|
|
ClientSourceParent* GetSource() const;
|
|
|
|
|
2017-11-01 20:19:38 +03:00
|
|
|
// PClientHandleOpParent interface
|
|
|
|
void ActorDestroy(ActorDestroyReason aReason) override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
ClientHandleOpParent() = default;
|
|
|
|
~ClientHandleOpParent() = default;
|
|
|
|
|
2020-02-01 18:16:43 +03:00
|
|
|
void Init(ClientOpConstructorArgs&& aArgs);
|
2017-11-01 20:19:38 +03:00
|
|
|
};
|
|
|
|
|
2022-05-09 23:41:05 +03:00
|
|
|
} // namespace mozilla::dom
|
2017-11-01 20:19:38 +03:00
|
|
|
|
|
|
|
#endif // _mozilla_dom_ClientHandleOpParent_h
|