pepper_plugin_thread_delegate.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
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.
4
5#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
6#define REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
7
8#include "remoting/base/plugin_thread_task_runner.h"
9
10namespace pp {
11class Core;
12}  // namespace pp
13
14namespace remoting {
15
16class PepperPluginThreadDelegate : public PluginThreadTaskRunner::Delegate {
17 public:
18  PepperPluginThreadDelegate();
19  virtual ~PepperPluginThreadDelegate();
20
21  virtual bool RunOnPluginThread(
22      base::TimeDelta delay, void(CDECL function)(void*), void* data) OVERRIDE;
23
24 private:
25  pp::Core* core_;
26};
27
28} // namespace remoting
29
30#endif  // REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
31