summaryrefslogtreecommitdiffstats
path: root/content/ppapi_plugin/ppapi_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/ppapi_plugin/ppapi_thread.h')
-rw-r--r--content/ppapi_plugin/ppapi_thread.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/content/ppapi_plugin/ppapi_thread.h b/content/ppapi_plugin/ppapi_thread.h
index bff66db..56e12c5 100644
--- a/content/ppapi_plugin/ppapi_thread.h
+++ b/content/ppapi_plugin/ppapi_thread.h
@@ -22,7 +22,7 @@
#include "ppapi/proxy/plugin_proxy_delegate.h"
class FilePath;
-class PpapiWebKitPlatformSupportImpl;
+class PpapiWebKitThread;
namespace IPC {
struct ChannelHandle;
@@ -48,6 +48,9 @@ class PpapiThread : public ChildThread,
virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE;
// PluginProxyDelegate.
+ virtual ppapi::WebKitForwarding* GetWebKitForwarding() OVERRIDE;
+ virtual void PostToWebKitThread(const tracked_objects::Location& from_here,
+ const base::Closure& task) OVERRIDE;
virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE;
virtual void PreCacheFont(const void* logfontw) OVERRIDE;
@@ -89,13 +92,15 @@ class PpapiThread : public ChildThread,
// See Dispatcher::Delegate::GetGloballySeenInstanceIDSet.
std::set<PP_Instance> globally_seen_instance_ids_;
+ // Lazily created by GetWebKitForwarding.
+ scoped_ptr<ppapi::WebKitForwarding> webkit_forwarding_;
+
+ scoped_ptr<PpapiWebKitThread> webkit_thread_;
+
// The PluginDispatcher instances contained in the map are not owned by it.
std::map<uint32, ppapi::proxy::PluginDispatcher*> plugin_dispatchers_;
uint32 next_plugin_dispatcher_id_;
- // The WebKitPlatformSupport implementation.
- scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_;
-
DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread);
};