summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_file_io_proxy.cc
Commit message (Collapse)AuthorAgeFilesLines
* Refactor FileIO to the new resource host system.bbudge@chromium.org2013-01-191-457/+0
| | | | | | | | | | | | | | | | | | Taking over from Victor's CL: https://codereview.chromium.org/11419131/ Re-landing, with a fix. The original waited to reset the file state until after the callback had completed. This is too late, as the client should be able to perform another file operation during the callback. Changeset #1 is the original patch. The fix is in change set #2 Original author=Victor Hsieh BUG=none TEST=browser_tests --gtest_filter=PPAPINaClNewlibTest.FileIO* Review URL: https://chromiumcodereview.appspot.com/11941022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177830 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 176792dpapad@chromium.org2013-01-171-0/+457
| | | | | | | | | | | | | | | | | | | | | | Caused PP_ERROR_INPROGRESS when used from within Native Client. > Refactor FileIO to the new resource host system. > Taking over from Victor's CL: https://codereview.chromium.org/11419131/ > > GetOSDescriptor is done by passing raw file descriptor via in-process messaging. > > Operations are kept exclusive, but the restriction can be easily removed if needed. > > Original author=Victor Hsieh > BUG= > TEST=browser_tests --gtest_filter=PPAPINaClNewlibTest.FileIO* > > Review URL: https://chromiumcodereview.appspot.com/11824039 TBR=bbudge@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177287 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileIO to the new resource host system.bbudge@chromium.org2013-01-151-457/+0
| | | | | | | | | | | | | | | | Taking over from Victor's CL: https://codereview.chromium.org/11419131/ GetOSDescriptor is done by passing raw file descriptor via in-process messaging. Operations are kept exclusive, but the restriction can be easily removed if needed. Original author=Victor Hsieh BUG= TEST=browser_tests --gtest_filter=PPAPINaClNewlibTest.FileIO* Review URL: https://chromiumcodereview.appspot.com/11824039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176792 0039d316-1c4b-4281-b951-d872f2087c98
* Provide a safer FileIO Read APIvictorhsieh@chromium.org2012-11-161-7/+7
| | | | | | | | | | An testing util class TestCompletionCallbackWithOutput is introduced for the callback with output. BUG=155395 Review URL: https://chromiumcodereview.appspot.com/11361117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168156 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude host-side code from the NaCl IRT proxy build.bbudge@chromium.org2012-11-131-1/+8
| | | | | | | | BUG=116317 TEST=compiles Review URL: https://codereview.chromium.org/11094060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167290 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Make blocking completion callbacks work.dmichael@chromium.org2012-06-231-33/+41
| | | | | | | | | | | | | | This also makes scoped_refptr<TrackedCallback> the "new" way to pass completion callbacks in an API. This allows the Enter object to handle checking for blocking callbacks on the main thread to report error, and blocking if on the background thread. This way, interfaces don't have to write any special cases for blocking callbacks. When built with enable_pepper_threading=1 locally, URLLoader tests all pass for blocking completion callbacks. I haven't updated all tests yet. BUG=92909 TEST= Review URL: https://chromiumcodereview.appspot.com/10081020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143806 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a proxy for Pepper FileIO.brettw@chromium.org2011-12-101-0/+442
| | | | | | | | | | [ Reland of 113565 http://codereview.chromium.org/8764003 ] This splits apart the old in-process implementation into a new object in shared_impl that does most of the general tracking. This alllows that code to be shared by the proxy. BUG=http://crbug.com/101154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113953 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113817 - Implement a proxy for Pepper FileIO.brettw@chromium.org2011-12-091-442/+0
| | | | | | | | | | | | | [ Reland of 113565 http://codereview.chromium.org/8764003 ] This splits apart the old in-process implementation into a new object in shared_impl that does most of the general tracking. This alllows that code to be shared by the proxy. BUG=http://crbug.com/101154 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/8898005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113819 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a proxy for Pepper FileIO.brettw@chromium.org2011-12-091-0/+442
| | | | | | | | | | [ Reland of 113565 http://codereview.chromium.org/8764003 ] This splits apart the old in-process implementation into a new object in shared_impl that does most of the general tracking. This alllows that code to be shared by the proxy. BUG=http://crbug.com/101154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113817 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113656 - Implement a proxy for Pepper FileIO.brettw@chromium.org2011-12-081-442/+0
| | | | | | | | | | | | | This splits apart the old in-process implementation into a new object in shared_impl that does most of the general tracking. This alllows that code to be shared by the proxy. BUG=http://crbug.com/101154 Review URL: http://codereview.chromium.org/8764003 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/8890037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113659 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a proxy for Pepper FileIO.brettw@chromium.org2011-12-081-0/+442
This splits apart the old in-process implementation into a new object in shared_impl that does most of the general tracking. This alllows that code to be shared by the proxy. BUG=http://crbug.com/101154 Review URL: http://codereview.chromium.org/8764003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113656 0039d316-1c4b-4281-b951-d872f2087c98