Change the PepperInProcessRouter to defer resource destruction messages.
commit165bae7dac7c4e05eca691c58aa8eafe07b1fcc4
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 11 Sep 2013 20:08:06 +0000 (11 20:08 +0000)
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 11 Sep 2013 20:08:06 +0000 (11 20:08 +0000)
tree82dd098c6aa2ab473826f12c009c3d2d63f69766
parentbbf5a5f7a51e6d35b91b7565019decfc2c43fa67
Change the PepperInProcessRouter to defer resource destruction messages.
This changes the in process "proxy" so it posts tasks to send resource destruction messages
instead of calling them directly. This prevents several kinds of reentrancy into the plugin-side
code. In this case, when a URLLoader is released, the plugin can finish before the host cancels
the load and potentially deletes the instance.

BUG=276368

Review URL: https://chromiumcodereview.appspot.com/23688004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222614 0039d316-1c4b-4281-b951-d872f2087c98
content/renderer/pepper/pepper_in_process_router.cc
content/renderer/pepper/pepper_in_process_router.h