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

Issue 10091003: Convert flash to thunk (Closed)

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

Description

Convert the PPB_Flash interface to use the thunk system. This was a bit tricky since some of the functions had no instance context, so I added global functions on the PpapiGlobals interface for them. It would be nice to add a PP_Instance argument and fix this in the future. I did a new style of doing the thunking. The "function APIs" haven't really worked out since it's almost always easier to add the functions directly on the instance one. Since this is a larger and more separable chunk, I just added a getter on the instance API for the flash API and thunk through that. I'd like to convert the remaining ~3 function APIs to either call directly on the instance or use this method, but that's not addressed by this patch. I moved the flash command line switch to plugin_switches so this could be hooked up properly. It allowed me to delete the delegate API for this. I combined the flash fullscreen functions into the new Flash API which removed a bit of code. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133636

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+726 lines, -582 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_broker_main.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_plugin_main.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 3 chunks +2 lines, -8 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 2 chunks +4 lines, -10 lines 0 comments Download
M ppapi/proxy/plugin_globals.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_globals.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 3 chunks +65 lines, -26 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 2 3 4 5 6 7 6 chunks +143 lines, -241 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 2 chunks +2 lines, -12 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 7 chunks +4 lines, -42 lines 0 comments Download
M ppapi/shared_impl/ppapi_globals.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/shared_impl/test_globals.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/shared_impl/test_globals.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
A ppapi/thunk/interfaces_ppb_private_flash.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_api.h View 1 chunk +55 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_fullscreen_thunk.cc View 2 chunks +5 lines, -3 lines 0 comments Download
A ppapi/thunk/ppb_flash_thunk.cc View 1 2 3 4 5 1 chunk +231 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 2 chunks +4 lines, -5 lines 0 comments Download
M ppapi/thunk/thunk.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/plugin_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/plugin_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 2 chunks +1 line, -8 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 chunks +7 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 2 chunks +4 lines, -14 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.h View 1 2 1 chunk +43 lines, -10 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 2 3 4 5 6 7 4 chunks +50 lines, -164 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
8 years, 8 months ago (2012-04-17 18:27:08 UTC) #1
yzshen1
Only a few nits. https://chromiumcodereview.appspot.com/10091003/diff/7001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (right): https://chromiumcodereview.appspot.com/10091003/diff/7001/content/ppapi_plugin/ppapi_thread.cc#newcode19 content/ppapi_plugin/ppapi_thread.cc:19: #include "content/public/common/content_switches.h" This may not ...
8 years, 8 months ago (2012-04-18 17:57:22 UTC) #2
brettw
New patch up PTAL
8 years, 8 months ago (2012-04-19 18:30:54 UTC) #3
yzshen1
8 years, 8 months ago (2012-04-19 19:03:23 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698