PPAPI: Refactor MessageChannel to prep for sync postMessage
commit1d7be68b799be03d98ed6853187a938a65f67f4d
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 20:13:14 +0000 (23 20:13 +0000)
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 20:13:14 +0000 (23 20:13 +0000)
tree41dfd3c61a22f7930888b2a8069933565d733455
parent75e9e3fd9005898573c3d54bde88318f29fe5325
PPAPI: Refactor MessageChannel to prep for sync postMessage

1) Remove unused CopyPPVar function from MessageChannel
2) Remove mostly-duplicate NPVariantToPPVar from MessageChannel.
3) Separate V8VarConverter::FromV8Value implementation from calling the callback (so I can have a sync path later, and this is shorter anyway).
4) Simplify NaCl in-process to out-of-process transition. Now, we just queue stuff for in-process (nobody but NaCl uses Messaging in-process), and if/when we switch to out-of-process (handing off to a NaCl app) we drain the queues then.
5) Some other renames/tweaks to how MessageChannel queues pending conversions.

BUG=367896
R=raymes@chromium.org

Review URL: https://codereview.chromium.org/290553004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272583 0039d316-1c4b-4281-b951-d872f2087c98
17 files changed:
chrome/renderer/chrome_content_renderer_client.cc
components/nacl.gyp
components/nacl/renderer/nacl_helper.cc [new file with mode: 0644]
components/nacl/renderer/nacl_helper.h [new file with mode: 0644]
content/public/renderer/renderer_ppapi_host.h
content/renderer/pepper/message_channel.cc
content/renderer/pepper/message_channel.h
content/renderer/pepper/mock_renderer_ppapi_host.cc
content/renderer/pepper/mock_renderer_ppapi_host.h
content/renderer/pepper/pepper_plugin_instance_impl.cc
content/renderer/pepper/pepper_plugin_instance_impl.h
content/renderer/pepper/renderer_ppapi_host_impl.cc
content/renderer/pepper/renderer_ppapi_host_impl.h
content/renderer/pepper/resource_converter.cc
content/renderer/pepper/resource_converter.h
content/renderer/pepper/v8_var_converter.cc
content/renderer/pepper/v8_var_converter.h