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

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed)

Created:
9 years, 11 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

First pass at making the proxy handle multiple renderers. This associates the instance with resources and has most callers retrieve the dispatcher according to the appropriate instance. This isn't hooked up to anything yet. This changes some PPB_Flash interface methods to use PP_Bool. The most challenging part of the change is in the plugin_var_tracker which now needs to track which dispatcher each var object came from, and remap var IDs since each renderer will be generating var IDs in its own space, which will likely overlap. A similar system will need to be done for resources which is not implemented yet. I added some null checks in audio_impl because audio_ can be NULL in some cases when using the trusted API. I discovered this when testing NaCl for this patch. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72053

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 11

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1124 lines, -545 lines) Patch
M ppapi/c/dev/ppb_font_dev.h View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M ppapi/c/dev/ppb_testing_dev.h View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M ppapi/c/private/ppb_flash.h View 1 2 3 4 5 6 6 chunks +18 lines, -17 lines 0 comments Download
M ppapi/ppapi.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/host_dispatcher.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/host_var_serialization_rules.h View 1 2 3 4 5 6 1 chunk +6 lines, -4 lines 0 comments Download
M ppapi/proxy/host_var_serialization_rules.cc View 1 2 3 4 5 6 3 chunks +9 lines, -5 lines 0 comments Download
M ppapi/proxy/image_data.h View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download
M ppapi/proxy/image_data.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 5 6 3 chunks +16 lines, -21 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 6 2 chunks +9 lines, -7 lines 0 comments Download
M ppapi/proxy/plugin_resource.h View 1 2 3 4 5 6 4 chunks +9 lines, -4 lines 0 comments Download
M ppapi/proxy/plugin_resource.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_resource_tracker.h View 1 2 3 4 5 6 5 chunks +16 lines, -7 lines 0 comments Download
M ppapi/proxy/plugin_resource_tracker.cc View 1 2 3 4 5 6 4 chunks +24 lines, -8 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.h View 1 2 3 4 5 6 1 chunk +7 lines, -5 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.cc View 1 2 3 4 5 6 5 chunks +32 lines, -12 lines 0 comments Download
M ppapi/proxy/plugin_var_tracker.h View 1 2 3 4 5 6 1 chunk +116 lines, -28 lines 0 comments Download
M ppapi/proxy/plugin_var_tracker.cc View 1 2 3 4 5 6 4 chunks +199 lines, -49 lines 0 comments Download
M ppapi/proxy/ppapi_messages_internal.h View 1 2 3 4 5 6 5 chunks +6 lines, -13 lines 0 comments Download
M ppapi/proxy/ppb_audio_config_proxy.cc View 1 2 3 4 5 6 2 chunks +21 lines, -15 lines 0 comments Download
M ppapi/proxy/ppb_audio_proxy.cc View 1 2 3 4 5 6 4 chunks +18 lines, -14 lines 0 comments Download
M ppapi/proxy/ppb_buffer_proxy.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M ppapi/proxy/ppb_char_set_proxy.cc View 1 2 3 4 5 6 3 chunks +18 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_core_proxy.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_cursor_control_proxy.cc View 1 2 3 4 5 6 2 chunks +28 lines, -8 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 2 3 4 5 6 10 chunks +78 lines, -46 lines 0 comments Download
M ppapi/proxy/ppb_font_proxy.cc View 1 2 3 4 5 6 10 chunks +38 lines, -18 lines 0 comments Download
M ppapi/proxy/ppb_fullscreen_proxy.cc View 1 2 3 4 5 6 1 chunk +10 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_2d_proxy.cc View 1 2 3 4 5 6 6 chunks +44 lines, -9 lines 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.cc View 1 2 3 4 5 6 5 chunks +13 lines, -34 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 3 chunks +24 lines, -7 lines 0 comments Download
M ppapi/proxy/ppb_pdf_proxy.cc View 1 2 3 4 5 6 5 chunks +14 lines, -7 lines 0 comments Download
M ppapi/proxy/ppb_testing_proxy.h View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_testing_proxy.cc View 1 2 3 4 5 6 6 chunks +22 lines, -9 lines 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_url_loader_proxy.cc View 1 2 3 4 5 6 11 chunks +57 lines, -18 lines 0 comments Download
M ppapi/proxy/ppb_url_request_info_proxy.cc View 1 2 3 4 5 6 6 chunks +35 lines, -15 lines 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_url_response_info_proxy.cc View 1 2 3 4 5 6 4 chunks +12 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_var_deprecated_proxy.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M ppapi/proxy/ppp_instance_proxy.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/serialized_var.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/serialized_var.cc View 1 2 3 4 5 6 9 chunks +21 lines, -17 lines 0 comments Download
M ppapi/proxy/var_serialization_rules.h View 1 2 3 4 5 6 4 chunks +15 lines, -8 lines 0 comments Download
M ppapi/shared_impl/DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A ppapi/shared_impl/image_data_impl.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
A ppapi/shared_impl/image_data_impl.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M ppapi/tests/test_var_deprecated.cc View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M webkit/plugins/ppapi/ppb_audio_impl.cc View 1 2 3 4 5 6 4 chunks +10 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.h View 1 2 3 4 5 6 1 chunk +11 lines, -11 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl_linux.cc View 1 2 3 4 5 6 3 chunks +15 lines, -15 lines 0 comments Download
M webkit/plugins/ppapi/ppb_font_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_image_data_impl.h View 1 2 3 4 5 6 3 chunks +3 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/ppb_image_data_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -17 lines 0 comments Download
M webkit/plugins/ppapi/resource_tracker.h View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M webkit/plugins/ppapi/resource_tracker.cc View 1 2 3 4 5 6 1 chunk +7 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
brettw
PluginVarTracker is badly in need of unit tests. I started one but need to move ...
9 years, 11 months ago (2011-01-19 20:56:09 UTC) #1
piman
http://codereview.chromium.org/6282007/diff/116001/ppapi/c/dev/ppb_testing_dev.h File ppapi/c/dev/ppb_testing_dev.h (right): http://codereview.chromium.org/6282007/diff/116001/ppapi/c/dev/ppb_testing_dev.h#newcode15 ppapi/c/dev/ppb_testing_dev.h:15: #define PPB_TESTING_DEV_INTERFACE "PPB_Testing(Dev);0.4" rev (API change) http://codereview.chromium.org/6282007/diff/116001/ppapi/c/private/ppb_flash.h File ppapi/c/private/ppb_flash.h ...
9 years, 11 months ago (2011-01-20 00:26:23 UTC) #2
brettw
New snap up. http://codereview.chromium.org/6282007/diff/116001/ppapi/proxy/plugin_resource_tracker.h File ppapi/proxy/plugin_resource_tracker.h (right): http://codereview.chromium.org/6282007/diff/116001/ppapi/proxy/plugin_resource_tracker.h#newcode27 ppapi/proxy/plugin_resource_tracker.h:27: static PluginResourceTracker* GetInstance(); Yes, we will ...
9 years, 11 months ago (2011-01-20 00:48:45 UTC) #3
piman
http://codereview.chromium.org/6282007/diff/116001/ppapi/proxy/ppb_image_data_proxy.cc File ppapi/proxy/ppb_image_data_proxy.cc (right): http://codereview.chromium.org/6282007/diff/116001/ppapi/proxy/ppb_image_data_proxy.cc#newcode27 ppapi/proxy/ppb_image_data_proxy.cc:27: PP_ImageDataFormat GetNativeImageDataFormat() { On 2011/01/20 00:48:45, brettw wrote: > ...
9 years, 11 months ago (2011-01-20 01:05:11 UTC) #4
brettw
http://codereview.chromium.org/6282007/diff/116001/ppapi/proxy/ppb_image_data_proxy.cc File ppapi/proxy/ppb_image_data_proxy.cc (right): http://codereview.chromium.org/6282007/diff/116001/ppapi/proxy/ppb_image_data_proxy.cc#newcode27 ppapi/proxy/ppb_image_data_proxy.cc:27: PP_ImageDataFormat GetNativeImageDataFormat() { This flag means more than just ...
9 years, 11 months ago (2011-01-20 05:52:13 UTC) #5
piman
9 years, 11 months ago (2011-01-20 21:31:22 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698