1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-16 05:18:39 +00:00
Files
UXP/dom/plugins/ipc/ChildAsyncCall.h
T
Moonchild c9b8a576da Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from dom. More to come.
2023-05-04 10:47:14 +08:00

40 lines
989 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* 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_plugins_ChildAsyncCall_h
#define mozilla_plugins_ChildAsyncCall_h
#include "PluginMessageUtils.h"
#include "nsThreadUtils.h"
namespace mozilla {
namespace plugins {
typedef void (*PluginThreadCallback)(void*);
class PluginInstanceChild;
class ChildAsyncCall : public CancelableRunnable
{
public:
ChildAsyncCall(PluginInstanceChild* instance,
PluginThreadCallback aFunc, void* aUserData);
NS_IMETHOD Run() override;
nsresult Cancel() override;
protected:
PluginInstanceChild* mInstance;
PluginThreadCallback mFunc;
void* mData;
void RemoveFromAsyncList();
};
} // namespace plugins
} // namespace mozilla
#endif // mozilla_plugins_ChildAsyncCall_h