This source file includes following definitions.
- RunOnPluginThread
#include "remoting/client/plugin/pepper_plugin_thread_delegate.h"
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/module.h"
namespace remoting {
PepperPluginThreadDelegate::PepperPluginThreadDelegate()
: core_(pp::Module::Get()->core()) {
}
PepperPluginThreadDelegate::~PepperPluginThreadDelegate() { }
bool PepperPluginThreadDelegate::RunOnPluginThread(
base::TimeDelta delay, void(CDECL function)(void*), void* data) {
core_->CallOnMainThread(
delay.InMilliseconds(), pp::CompletionCallback(
reinterpret_cast<PP_CompletionCallback_Func>(function), data), 0);
return true;
}
}