From 4614f1974881ecfd0a0118683bac628c6128c2a9 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Fri, 21 Jan 2011 00:26:43 +0000 Subject: First pass at making the proxy handle multiple renderers. This associates the instance with resources and has most callers retrieve the dispatcher according to the appropriate instance. This isn't hooked up to anything yet. This changes some PPB_Flash interface methods to use PP_Bool. The most challenging part of the change is in the plugin_var_tracker which now needs to track which dispatcher each var object came from, and remap var IDs since each renderer will be generating var IDs in its own space, which will likely overlap. A similar system will need to be done for resources which is not implemented yet. I added some null checks in audio_impl because audio_ can be NULL in some cases when using the trusted API. I discovered this when testing NaCl for this patch. Review URL: http://codereview.chromium.org/6282007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72053 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/ppb_flash_proxy.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ppapi/proxy/ppb_flash_proxy.h') diff --git a/ppapi/proxy/ppb_flash_proxy.h b/ppapi/proxy/ppb_flash_proxy.h index cbe30bd..797dae8 100644 --- a/ppapi/proxy/ppb_flash_proxy.h +++ b/ppapi/proxy/ppb_flash_proxy.h @@ -40,9 +40,9 @@ class PPB_Flash_Proxy : public InterfaceProxy { private: // Message handlers. void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, - bool on_top); + PP_Bool on_top); void OnMsgDrawGlyphs(const pp::proxy::PPBFlash_DrawGlyphs_Params& params, - bool* result); + PP_Bool* result); void OnMsgGetProxyForURL(PP_Instance instance, const std::string& url, SerializedVarReturnValue result); @@ -57,7 +57,7 @@ class PPB_Flash_Proxy : public InterfaceProxy { int32_t* result); void OnMsgDeleteModuleLocalFileOrDir(PP_Instance instance, const std::string& path, - bool recursive, + PP_Bool recursive, int32_t* result); void OnMsgCreateModuleLocalDir(PP_Instance instance, const std::string& path, @@ -74,7 +74,7 @@ class PPB_Flash_Proxy : public InterfaceProxy { void OnMsgNavigateToURL(PP_Instance instance, const std::string& url, const std::string& target, - bool* result); + PP_Bool* result); }; } // namespace proxy -- cgit v1.1