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

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

Issue 1410923004: Replace PluginThreadTaskRunner with a simpler MainPluginThreadTaskRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_mac_test
Patch Set: Created 5 years, 2 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/remoting_srcs.gypi » ('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
deleted file mode 100644
index e14a93cc2839d295976b47c19ab1f5b88116ecb2..0000000000000000000000000000000000000000
--- a/remoting/client/plugin/pepper_plugin_thread_delegate.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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) {
- // 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.InMilliseconds(), pp::CompletionCallback(
- reinterpret_cast<PP_CompletionCallback_Func>(function), data), 0);
- return true;
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/client/plugin/pepper_plugin_thread_delegate.h ('k') | remoting/remoting_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698