2014-05-18 07:05:46 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; 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 GMPPlatform_h_
|
|
|
|
#define GMPPlatform_h_
|
|
|
|
|
|
|
|
#include "gmp-platform.h"
|
2017-02-14 01:09:38 +03:00
|
|
|
#include <functional>
|
2014-05-18 07:05:46 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gmp {
|
|
|
|
|
2014-07-11 07:35:56 +04:00
|
|
|
class GMPChild;
|
|
|
|
|
2014-08-05 11:56:05 +04:00
|
|
|
void InitPlatformAPI(GMPPlatformAPI& aPlatformAPI, GMPChild* aChild);
|
|
|
|
|
|
|
|
GMPErr RunOnMainThread(GMPTask* aTask);
|
2014-05-18 07:05:46 +04:00
|
|
|
|
2017-02-14 01:09:38 +03:00
|
|
|
GMPTask* NewGMPTask(std::function<void()>&& aFunction);
|
|
|
|
|
|
|
|
GMPErr SetTimerOnMainThread(GMPTask* aTask, int64_t aTimeoutMS);
|
2014-05-18 07:05:46 +04:00
|
|
|
|
|
|
|
} // namespace gmp
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // GMPPlatform_h_
|