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

Issue 11299147: Pepper proxy: make the browser sender handle the proxy lock properly. (Closed)

Created:
8 years, 1 month ago by yzshen1
Modified:
8 years ago
Reviewers:
brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Pepper proxy: make the browser sender handle the proxy lock properly. - unlock the pepper proxy lock when sending sync messages to the browser; - remove the SendToBrowser() method from the PluginProxyDelegate; TEST=None BUG=161286 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169781

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -73 lines) Patch
M content/ppapi_plugin/ppapi_thread.h View 2 chunks +1 line, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 chunk +4 lines, -0 lines 2 comments Download
M ppapi/proxy/plugin_globals.h View 6 chunks +19 lines, -3 lines 0 comments Download
M ppapi/proxy/plugin_globals.cc View 3 chunks +50 lines, -0 lines 1 comment Download
M ppapi/proxy/plugin_main_nacl.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M ppapi/proxy/plugin_proxy_delegate.h View 2 chunks +4 lines, -5 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 11 chunks +10 lines, -11 lines 0 comments Download
M ppapi/proxy/ppb_host_resolver_private_proxy.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 5 chunks +7 lines, -11 lines 0 comments Download
M ppapi/proxy/ppb_network_monitor_private_proxy.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_talk_private_proxy.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc View 4 chunks +3 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_udp_socket_private_proxy.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_x509_certificate_private_proxy.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
yzshen1
Hi, Brett. Would you please take a look? Thanks!
8 years, 1 month ago (2012-11-22 00:26:12 UTC) #1
yzshen1
https://codereview.chromium.org/11299147/diff/1/ppapi/proxy/plugin_globals.cc File ppapi/proxy/plugin_globals.cc (right): https://codereview.chromium.org/11299147/diff/1/ppapi/proxy/plugin_globals.cc#newcode111 ppapi/proxy/plugin_globals.cc:111: ProxyAutoUnlock unlock; This is a little ugly, because unlocking ...
8 years, 1 month ago (2012-11-22 00:42:29 UTC) #2
brettw
LGTM https://codereview.chromium.org/11299147/diff/1/ppapi/proxy/plugin_dispatcher.cc File ppapi/proxy/plugin_dispatcher.cc (right): https://codereview.chromium.org/11299147/diff/1/ppapi/proxy/plugin_dispatcher.cc#newcode198 ppapi/proxy/plugin_dispatcher.cc:198: // may be accessed by multiple threads at ...
8 years ago (2012-11-27 00:49:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11299147/1
8 years ago (2012-11-27 00:49:49 UTC) #4
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years ago (2012-11-27 03:29:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/11299147/1
8 years ago (2012-11-27 22:26:56 UTC) #6
commit-bot: I haz the power
Change committed as 169781
8 years ago (2012-11-27 23:01:32 UTC) #7
yzshen1
8 years ago (2012-11-30 04:29:13 UTC) #8
Message was sent while issue was closed.
Thanks Brett!

https://codereview.chromium.org/11299147/diff/1/ppapi/proxy/plugin_dispatcher.cc
File ppapi/proxy/plugin_dispatcher.cc (right):

https://codereview.chromium.org/11299147/diff/1/ppapi/proxy/plugin_dispatcher...
ppapi/proxy/plugin_dispatcher.cc:198: // may be accessed by multiple threads at
the same time.
On 2012/11/27 00:49:15, brettw wrote:
> Is there a bug on this?

Yes. Although I haven't seen any bug reports, the Send() implementation doesn't
look safe. I will take a closer look and fix it.

Powered by Google App Engine
This is Rietveld 408576698