Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: ppapi/proxy/ppb_url_loader_proxy.cc

Issue 6543028: Implement the filesystem proxy. This allows the FileRef tests to pass in the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppb_url_loader_proxy.cc
===================================================================
--- ppapi/proxy/ppb_url_loader_proxy.cc (revision 75471)
+++ ppapi/proxy/ppb_url_loader_proxy.cc (working copy)
@@ -70,8 +70,13 @@
URLLoader::~URLLoader() {
// Always need to fire completion callbacks to prevent a leak in the plugin.
- if (current_read_callback_.func)
- PP_RunCompletionCallback(&current_read_callback_, PP_ERROR_ABORTED);
+ if (current_read_callback_.func) {
+ // TODO(brettw) the callbacks at this level should be refactored with a
+ // more automatic tracking system like we have in the renderer.
+ MessageLoop::current()->PostTask(FROM_HERE, NewRunnableFunction(
+ current_read_callback_.func, current_read_callback_.user_data,
+ static_cast<int32_t>(PP_ERROR_ABORTED)));
+ }
if (response_info_)
PluginResourceTracker::GetInstance()->ReleaseResource(response_info_);

Powered by Google App Engine
This is Rietveld 408576698