Do PPB_FileIO Query and Read in the plugin process.
commit55dbb11d7b5291121f7ae53caaba0ffb8e21d914
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 30 Jul 2013 20:14:30 +0000 (30 20:14 +0000)
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 30 Jul 2013 20:14:30 +0000 (30 20:14 +0000)
treeec6fab2ff33ff0b22357585587a6346bc5ae9ccb
parent79dc5b3c55e45c7eeaf5ae962890c4391c562b35
Do PPB_FileIO Query and Read in the plugin process.
This changes Open to send a file descriptor to the plugin process on Open.
The file descriptor is used on the plugin side to implement Query and Read.
The implementation reuses base::FileUtilProxy to use a file thread on the
plugin side to call potentially blocking file functions.

TBR=dmichael@chromium.org, jschuh@chromium.org

BUG=194304
TEST=browser_tests, PPAPITest.FileIO

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214420 0039d316-1c4b-4281-b951-d872f2087c98
chrome/nacl/nacl_ipc_adapter.cc
content/renderer/pepper/pepper_file_io_host.cc
content/renderer/pepper/pepper_file_io_host.h
ppapi/ppapi_tests.gypi
ppapi/proxy/file_io_resource.cc
ppapi/proxy/file_io_resource.h
ppapi/proxy/ppapi_messages.h
ppapi/tests/test_file_io.cc
ppapi/tests/test_file_ref.cc