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

Issue 11510008: Refactor 4 PPB_Flash functions to the new PPAPI resource model. (Closed)

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

Description

Refactor 4 PPB_Flash functions to the new PPAPI resource model. The functions being refactored are: -SetInstanceAlwaysOnTop -DrawGlyphs -GetProxyForURL -Navigate Each of these functions was manually tested with a Flash movie that uses it. Navigate() was tested on: -http://www.tjgames.com.br/jogos-online/169-Yan_Loong.htm -http://www.flonga.com/play/zombotron2.htm which were consistently causing instance deletion during a Navigate() call (causing https://code.google.com/p/chromium/issues/detail?id=165978). BUG=165978 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173980

Patch Set 1 #

Patch Set 2 : . #

Total comments: 15

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 8

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : #

Patch Set 12 : . #

Patch Set 13 : #

Patch Set 14 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -447 lines) Patch
M content/renderer/pepper/pepper_flash_renderer_host.h View 1 2 3 4 2 chunks +34 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_flash_renderer_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +192 lines, -1 line 0 comments Download
M ppapi/host/ppapi_host.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/host/resource_message_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/proxy/flash_resource.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -3 lines 0 comments Download
M ppapi/proxy/flash_resource.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +75 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +27 lines, -24 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -39 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -167 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/thunk/ppb_flash_api.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -33 lines 0 comments Download
M ppapi/thunk/ppb_flash_functions_api.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_thunk.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -29 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -141 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
raymes
8 years ago (2012-12-11 23:52:04 UTC) #1
yzshen1
https://codereview.chromium.org/11510008/diff/2001/content/renderer/pepper/pepper_flash_renderer_host.cc File content/renderer/pepper/pepper_flash_renderer_host.cc (right): https://codereview.chromium.org/11510008/diff/2001/content/renderer/pepper/pepper_flash_renderer_host.cc#newcode23 content/renderer/pepper/pepper_flash_renderer_host.cc:23: #include "ppapi/thunk/ppb_url_request_info_api.h" You don't need this. https://codereview.chromium.org/11510008/diff/2001/content/renderer/pepper/pepper_flash_renderer_host.cc#newcode37 content/renderer/pepper/pepper_flash_renderer_host.cc:37: using ...
8 years ago (2012-12-12 19:09:31 UTC) #2
raymes
https://codereview.chromium.org/11510008/diff/2001/content/renderer/pepper/pepper_flash_renderer_host.cc File content/renderer/pepper/pepper_flash_renderer_host.cc (right): https://codereview.chromium.org/11510008/diff/2001/content/renderer/pepper/pepper_flash_renderer_host.cc#newcode23 content/renderer/pepper/pepper_flash_renderer_host.cc:23: #include "ppapi/thunk/ppb_url_request_info_api.h" On 2012/12/12 19:09:31, yzshen1 wrote: > You ...
8 years ago (2012-12-12 22:01:21 UTC) #3
yzshen1
lgtm
8 years ago (2012-12-12 22:10:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11510008/21002
8 years ago (2012-12-12 22:27:16 UTC) #5
commit-bot: I haz the power
Presubmit check for 11510008-21002 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-12 22:27:21 UTC) #6
raymes
+tsepez for security review
8 years ago (2012-12-12 22:35:51 UTC) #7
Tom Sepez
messages LGTM.
8 years ago (2012-12-12 23:43:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11510008/21002
8 years ago (2012-12-13 00:00:52 UTC) #9
commit-bot: I haz the power
Change committed as 172806
8 years ago (2012-12-13 03:35:37 UTC) #10
raymes
Please diff to patch set 4 to see the updates to fix Navigate. Since I ...
8 years ago (2012-12-14 02:03:38 UTC) #11
brettw
Ugh, LGTM
8 years ago (2012-12-14 19:12:30 UTC) #12
yzshen1
https://codereview.chromium.org/11510008/diff/42002/content/renderer/pepper/pepper_flash_renderer_host.cc File content/renderer/pepper/pepper_flash_renderer_host.cc (right): https://codereview.chromium.org/11510008/diff/42002/content/renderer/pepper/pepper_flash_renderer_host.cc#newcode49 content/renderer/pepper/pepper_flash_renderer_host.cc:49: // This object may be destroyed in the middle ...
8 years ago (2012-12-14 19:13:14 UTC) #13
raymes
https://codereview.chromium.org/11510008/diff/42002/content/renderer/pepper/pepper_flash_renderer_host.cc File content/renderer/pepper/pepper_flash_renderer_host.cc (right): https://codereview.chromium.org/11510008/diff/42002/content/renderer/pepper/pepper_flash_renderer_host.cc#newcode51 content/renderer/pepper/pepper_flash_renderer_host.cc:51: for (size_t i = 0; i < navigate_replies_.size(); ++i) ...
8 years ago (2012-12-17 04:07:57 UTC) #14
yzshen1
LGTM Thanks! https://codereview.chromium.org/11510008/diff/42002/ppapi/host/resource_message_handler.cc File ppapi/host/resource_message_handler.cc (right): https://codereview.chromium.org/11510008/diff/42002/ppapi/host/resource_message_handler.cc#newcode26 ppapi/host/resource_message_handler.cc:26: // PP_OK_COMPLETIONPENDING is returned, we should assume ...
8 years ago (2012-12-17 05:02:23 UTC) #15
raymes
https://codereview.chromium.org/11510008/diff/42002/ppapi/host/resource_message_handler.cc File ppapi/host/resource_message_handler.cc (right): https://codereview.chromium.org/11510008/diff/42002/ppapi/host/resource_message_handler.cc#newcode26 ppapi/host/resource_message_handler.cc:26: // PP_OK_COMPLETIONPENDING is returned, we should assume that we ...
8 years ago (2012-12-17 05:11:00 UTC) #16
yzshen1
8 years ago (2012-12-17 05:19:37 UTC) #17
Still LGTM

https://codereview.chromium.org/11510008/diff/42002/ppapi/host/resource_messa...
File ppapi/host/resource_message_handler.cc (right):

https://codereview.chromium.org/11510008/diff/42002/ppapi/host/resource_messa...
ppapi/host/resource_message_handler.cc:26: // PP_OK_COMPLETIONPENDING is
returned, we should assume that we might have
If my understanding is correct, it is not that it won't happen with other return
values; instead, you are making a rule and asking all resource hosts to follow
it. 

The comment sounds like "it won't happen with other return values".

On 2012/12/17 05:11:00, raymes wrote:
> I tried to make it clear in the comment above but I probably did a bad job :P
> Do you have suggestions on how it might be clearer?
> 
> On 2012/12/17 05:02:23, yzshen1 wrote:
> > This assumption doesn't look very intuitive. Can it be said here or
elsewhere
> > explicitly?
> > 
> > On 2012/12/17 04:07:57, raymes wrote:
> > > Right now I'm making the assumption that if the message handler might
cause
> > the
> > > object to be destroyed, it MUST return PP_OK_COMPLETIONPENDING (otherwise
> line
> > > 53 will get called).
> > 
>

Powered by Google App Engine
This is Rietveld 408576698