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

Side by Side Diff: remoting/client/plugin/pepper_plugin_thread_delegate.h

Issue 10830016: Replace PluginMessageLoopProxy with PluginThreadTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_ 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
7 7
8 #include "remoting/base/plugin_message_loop_proxy.h" 8 #include "remoting/base/plugin_thread_task_runner.h"
9 9
10 // Macro useful for writing cross-platform function pointers. 10 // Macro useful for writing cross-platform function pointers.
11 #if defined(OS_WIN) && !defined(CDECL) 11 #if defined(OS_WIN) && !defined(CDECL)
12 #define CDECL __cdecl 12 #define CDECL __cdecl
13 #else 13 #else
14 #define CDECL 14 #define CDECL
15 #endif 15 #endif
16 16
17 namespace pp { 17 namespace pp {
18 class Core; 18 class Core;
19 } // namespace pp 19 } // namespace pp
20 20
21 namespace remoting { 21 namespace remoting {
22 22
23 class PepperPluginThreadDelegate : public PluginMessageLoopProxy::Delegate { 23 class PepperPluginThreadDelegate : public PluginThreadTaskRunner::Delegate {
24 public: 24 public:
25 PepperPluginThreadDelegate(); 25 PepperPluginThreadDelegate();
26 virtual ~PepperPluginThreadDelegate(); 26 virtual ~PepperPluginThreadDelegate();
27 27
28 virtual bool RunOnPluginThread( 28 virtual bool RunOnPluginThread(
29 base::TimeDelta delay, void(CDECL function)(void*), void* data) OVERRIDE; 29 base::TimeDelta delay, void(CDECL function)(void*), void* data) OVERRIDE;
30 30
31 private: 31 private:
32 pp::Core* core_; 32 pp::Core* core_;
33 }; 33 };
34 34
35 } // namespace remoting 35 } // namespace remoting
36 36
37 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_ 37 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PLUGIN_THREAD_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698