Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / remoting / client / plugin / pepper_plugin_thread_delegate.h
blob59ea3e4e740aaeb2e365553ac2c9540c590e37a3
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
8 #include "remoting/base/plugin_thread_task_runner.h"
10 // Macro useful for writing cross-platform function pointers.
11 #if defined(OS_WIN) && !defined(CDECL)
12 #define CDECL __cdecl
13 #else
14 #define CDECL
15 #endif
17 namespace pp {
18 class Core;
19 } // namespace pp
21 namespace remoting {
23 class PepperPluginThreadDelegate : public PluginThreadTaskRunner::Delegate {
24 public:
25 PepperPluginThreadDelegate();
26 virtual ~PepperPluginThreadDelegate();
28 virtual bool RunOnPluginThread(
29 base::TimeDelta delay, void(CDECL function)(void*), void* data) OVERRIDE;
31 private:
32 pp::Core* core_;
35 } // namespace remoting
37 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_