Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=8 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef mozilla_plugins_ChildAsyncCall_h
9 #define mozilla_plugins_ChildAsyncCall_h
11 #include "PluginMessageUtils.h"
12 #include "base/task.h"
14 namespace mozilla {
15 namespace plugins {
17 typedef void (*PluginThreadCallback)(void*);
19 class PluginInstanceChild;
21 class ChildAsyncCall : public CancelableTask
22 {
23 public:
24 ChildAsyncCall(PluginInstanceChild* instance,
25 PluginThreadCallback aFunc, void* aUserData);
27 void Run() MOZ_OVERRIDE;
28 void Cancel() MOZ_OVERRIDE;
30 protected:
31 PluginInstanceChild* mInstance;
32 PluginThreadCallback mFunc;
33 void* mData;
35 void RemoveFromAsyncList();
36 };
38 } // namespace plugins
39 } // namespace mozilla
41 #endif // mozilla_plugins_ChildAsyncCall_h