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

Issue 9188045: Introduce PPB_Flash_MessageLoop interface for Pepper Flash. (Closed)

Created:
8 years, 11 months ago by yzshen1
Modified:
8 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Introduce PPB_Flash_MessageLoop interface for Pepper Flash. Comparing with PPB_Flash.RunMessageLoop/QuitMessageLoop, this new interface avoids leaking nested message loops. If Quit() is not called to balance the call to Run(), the outermost message loop will be quitted when the resource is destroyed. BUG=109340 TEST=test_flash_message_loop.{h,cc} Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119873

Patch Set 1 #

Patch Set 2 : Fix the issue that the host side proxy may die before sending sync message reply for Run(). #

Patch Set 3 : sync #

Total comments: 10

Patch Set 4 : Changes in response to Trung's suggestions. #

Patch Set 5 : Use base::Callback instead of PP_CompletionCallback in RunFromHostProxy(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+892 lines, -1 line) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A ppapi/api/private/ppb_flash_message_loop.idl View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_flash_message_loop.h View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_message_loop.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_message_loop.cc View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_flash_message_loop_proxy.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_flash_message_loop_proxy.cc View 1 2 3 4 1 chunk +157 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/api_id.h View 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/tests/test_flash_message_loop.h View 1 chunk +39 lines, -0 lines 0 comments Download
A ppapi/tests/test_flash_message_loop.cc View 1 chunk +81 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_message_loop_api.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_message_loop_thunk.cc View 1 chunk +56 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/thunk.h View 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_flash_message_loop_impl.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_flash_message_loop_impl.cc View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
yzshen1
Hi, Antoine and Trung. Please take a look. Thanks!
8 years, 11 months ago (2012-01-12 20:16:53 UTC) #1
piman
lgtm
8 years, 11 months ago (2012-01-13 03:56:39 UTC) #2
yzshen1
On 2012/01/13 03:56:39, piman wrote: > lgtm Updated a newer snapshot. Please take another look. ...
8 years, 11 months ago (2012-01-17 04:21:22 UTC) #3
viettrungluu
http://codereview.chromium.org/9188045/diff/8001/ppapi/cpp/private/flash_message_loop.cc File ppapi/cpp/private/flash_message_loop.cc (right): http://codereview.chromium.org/9188045/diff/8001/ppapi/cpp/private/flash_message_loop.cc#newcode25 ppapi/cpp/private/flash_message_loop.cc:25: if (has_interface<PPB_Flash_MessageLoop>() && instance) { Do we really check ...
8 years, 11 months ago (2012-01-17 21:26:06 UTC) #4
yzshen1
Please take another look. Thanks! http://codereview.chromium.org/9188045/diff/8001/ppapi/cpp/private/flash_message_loop.cc File ppapi/cpp/private/flash_message_loop.cc (right): http://codereview.chromium.org/9188045/diff/8001/ppapi/cpp/private/flash_message_loop.cc#newcode25 ppapi/cpp/private/flash_message_loop.cc:25: if (has_interface<PPB_Flash_MessageLoop>() && instance) ...
8 years, 11 months ago (2012-01-18 07:43:35 UTC) #5
viettrungluu
On 2012/01/18 07:43:35, yzshen1 wrote: > http://codereview.chromium.org/9188045/diff/8001/webkit/plugins/ppapi/ppb_flash_message_loop_impl.h#newcode32 > webkit/plugins/ppapi/ppb_flash_message_loop_impl.h:32: virtual void > RunFromHostProxy(PP_CompletionCallback callback) OVERRIDE; ...
8 years, 11 months ago (2012-01-20 18:19:18 UTC) #6
dmichael (off chromium)
On 2012/01/20 18:19:18, viettrungluu wrote: > On 2012/01/18 07:43:35, yzshen1 wrote: > > > http://codereview.chromium.org/9188045/diff/8001/webkit/plugins/ppapi/ppb_flash_message_loop_impl.h#newcode32 ...
8 years, 11 months ago (2012-01-20 18:32:07 UTC) #7
yzshen1
On 2012/01/20 18:32:07, dmichael wrote: > On 2012/01/20 18:19:18, viettrungluu wrote: > > On 2012/01/18 ...
8 years, 11 months ago (2012-01-20 18:45:00 UTC) #8
yzshen1
Hi, Darin. Would you please do an owner review for webkit_glue.gypi? Thanks! On 2012/01/20 18:45:00, ...
8 years, 10 months ago (2012-01-30 23:53:35 UTC) #9
viettrungluu
lgtm
8 years, 10 months ago (2012-01-31 00:12:28 UTC) #10
darin (slow to review)
LGTM for webkit/glue/
8 years, 10 months ago (2012-01-31 07:21:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9188045/23001
8 years, 10 months ago (2012-01-31 07:30:18 UTC) #12
commit-bot: I haz the power
8 years, 10 months ago (2012-01-31 09:19:18 UTC) #13
Change committed as 119873

Powered by Google App Engine
This is Rietveld 408576698