Pepper: Use an adaptor to invoke FileSystemOperationRunner::OpenFile
commit7e20df51dc8f06ca9a59413916d53c97fd5ba371
authorrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 12:15:08 +0000 (4 12:15 +0000)
committerrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 12:15:08 +0000 (4 12:15 +0000)
tree39ad26f0f0ba601187f46bb7a77dc92dd06dfcb1
parent255ab977ee2156de15d7182f2e5635ea8d1c0b87
Pepper: Use an adaptor to invoke FileSystemOperationRunner::OpenFile

PepperFileIOHost keeps a weak pointer of FileSystemOperationRunner so when
it goes away it cannot delete the runner as expected by the fileapi
implementation.

This CL adds an adapter class in the middle so that when OpenFile completes
after PepperFileIOHost destruction, the file is bounced back to another
thread to be closed.

BUG=377599

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274782 0039d316-1c4b-4281-b951-d872f2087c98
chrome/test/ppapi/ppapi_browsertest.cc
content/browser/renderer_host/pepper/pepper_file_io_host.cc
content/browser/renderer_host/pepper/pepper_file_io_host.h