From 7a1f7c6f6c982287b3f6bb2acded619f3824416c Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 10 May 2011 21:17:48 +0000 Subject: Make the Pepper proxy support in-process font rendering. This implements a WebKit thread in the PPAPI plugin process so we can do the font calls without IPC. The existing font support was refactored into a virtual class (to prevent PPAPI from depending on WebKit and creating a circular GYP dependency). This moves the renderer sandbox support into content/common so that it can be used by the PPAPI process. Review URL: http://codereview.chromium.org/6981001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84856 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/host_dispatcher.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ppapi/proxy/host_dispatcher.cc') diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc index d9fcc36..2dce10a 100644 --- a/ppapi/proxy/host_dispatcher.cc +++ b/ppapi/proxy/host_dispatcher.cc @@ -90,10 +90,13 @@ HostDispatcher::~HostDispatcher() { } bool HostDispatcher::InitHostWithChannel( - ProxyChannel::Delegate* delegate, + Delegate* delegate, const IPC::ChannelHandle& channel_handle, bool is_client) { - return Dispatcher::InitWithChannel(delegate, channel_handle, is_client); + if (!Dispatcher::InitWithChannel(delegate, channel_handle, is_client)) + return false; + SetDelegate(delegate); + return true; } // static -- cgit v1.1