Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1472)

Unified Diff: remoting/client/plugin/pepper_plugin_thread_delegate.cc

Issue 9427023: Add functions to expand PostDelayedTask interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add fix to RunOnPluginThread() in host_plugin.cc Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/pepper_plugin_thread_delegate.h ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_plugin_thread_delegate.cc
diff --git a/remoting/client/plugin/pepper_plugin_thread_delegate.cc b/remoting/client/plugin/pepper_plugin_thread_delegate.cc
index 730c09eb9a26ef9a0fdd219e5a51643f534dc9b2..47a039eeb38b481c1855b9eaa6f79326457741b7 100644
--- a/remoting/client/plugin/pepper_plugin_thread_delegate.cc
+++ b/remoting/client/plugin/pepper_plugin_thread_delegate.cc
@@ -16,14 +16,14 @@ PepperPluginThreadDelegate::PepperPluginThreadDelegate()
PepperPluginThreadDelegate::~PepperPluginThreadDelegate() { }
bool PepperPluginThreadDelegate::RunOnPluginThread(
- int delay_ms, void(CDECL function)(void*), void* data) {
+ base::TimeDelta delay, void(CDECL function)(void*), void* data) {
// It is safe to cast |function| to PP_CompletionCallback_Func,
// which is defined as void(*)(void*, int). The callee will just
// ignore the last argument. The only case when it may be unsafe is
// with VS when default calling convention is set to __stdcall, but
// this code will not typecheck in that case.
core_->CallOnMainThread(
- delay_ms, pp::CompletionCallback(
+ delay.InMilliseconds(), pp::CompletionCallback(
reinterpret_cast<PP_CompletionCallback_Func>(function), data), 0);
return true;
}
« no previous file with comments | « remoting/client/plugin/pepper_plugin_thread_delegate.h ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698