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

Unified Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 11299147: Pepper proxy: make the browser sender handle the proxy lock properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/plugin_dispatcher.cc
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc
index 29bcb4ab00c215f754f592ab3bd48684f938628a..137031d9cb251c1d55d3902e06200695da3030a6 100644
--- a/ppapi/proxy/plugin_dispatcher.cc
+++ b/ppapi/proxy/plugin_dispatcher.cc
@@ -192,6 +192,10 @@ bool PluginDispatcher::Send(IPC::Message* msg) {
if (msg->is_sync()) {
// Synchronous messages might be re-entrant, so we need to drop the lock.
ProxyAutoUnlock unlock;
+
+ // TODO(yzshen): Make sending message thread-safe. It may be accessed from
+ // non-main threads. Moreover, since the proxy lock has been released, it
+ // may be accessed by multiple threads at the same time.
brettw 2012/11/27 00:49:15 Is there a bug on this?
yzshen1 2012/11/30 04:29:13 Yes. Although I haven't seen any bug reports, the
return Dispatcher::Send(msg);
}
return Dispatcher::Send(msg);

Powered by Google App Engine
This is Rietveld 408576698