|
Rent syncemove all uses of the global Dispatcher Get function.
This reqired reworking how plugin->host GetInterface works. Previously,
interface requests were symmetric where each side would first do a
SupportsInterface to see if the remote side supports the interface, then create
the proxy. Since the plugin may talk to multiple renderers, we don't know where
to send these requests. The solution is to make the assumption that the
renderer always supports all PPB interfaces (which is possible since the proxy
is compiled with the executable).
This also adds some better lookup for interfaces to avoid having multiple lists
of interfaces. We now have a list of interfaces and factory functions in
dispatcher.cc.
Add some additional testing infrastructure for the dispatchers with simple tests.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74121
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1283 lines, -636 lines) |
Patch |
 |
M |
chrome/ppapi_plugin/ppapi_thread.cc
|
View
|
1
2
3
4
|
4 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_test_sink.h
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/c/dev/ppb_opengles_dev.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_tests.gypi
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/dispatcher.h
|
View
|
1
2
3
4
|
6 chunks |
+15 lines, -55 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/dispatcher.cc
|
View
|
1
2
3
4
|
4 chunks |
+117 lines, -174 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/host_dispatcher.h
|
View
|
1
2
3
4
|
2 chunks |
+26 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/host_dispatcher.cc
|
View
|
1
2
3
4
|
2 chunks |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/proxy/host_dispatcher_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/interface_id.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/interface_proxy.h
|
View
|
1
2
3
4
|
2 chunks |
+30 lines, -28 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_dispatcher.h
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_dispatcher.cc
|
View
|
1
2
3
4
|
6 chunks |
+96 lines, -24 lines |
0 comments
|
Download
|
 |
A |
ppapi/proxy/plugin_dispatcher_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_resource_tracker_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_var_serialization_rules.cc
|
View
|
1
2
3
4
|
4 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_var_tracker.h
|
View
|
1
2
3
4
|
6 chunks |
+14 lines, -15 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_var_tracker.cc
|
View
|
1
2
3
4
|
6 chunks |
+27 lines, -15 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/plugin_var_tracker_unittest.cc
|
View
|
1
2
3
4
|
5 chunks |
+17 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_messages_internal.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_proxy_test.h
|
View
|
1
2
3
4
5
|
2 chunks |
+69 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_proxy_test.cc
|
View
|
1
2
3
4
|
2 chunks |
+87 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_audio_config_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_audio_config_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_audio_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_audio_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+20 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_buffer_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_buffer_proxy.cc
|
View
|
1
2
3
4
|
4 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_char_set_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_char_set_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_context_3d_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_context_3d_proxy.cc
|
View
|
1
2
3
4
|
4 chunks |
+18 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_core_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_core_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_cursor_control_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_cursor_control_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_flash_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_flash_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_font_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_font_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_fullscreen_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_fullscreen_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+17 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_graphics_2d_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_graphics_2d_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_image_data_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_image_data_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_instance_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_opengles2_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_opengles2_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+17 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_pdf_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_pdf_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_surface_3d_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_surface_3d_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_testing_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_testing_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_url_loader_proxy.h
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_url_loader_proxy.cc
|
View
|
1
2
3
4
|
5 chunks |
+32 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_url_request_info_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_url_request_info_proxy.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_url_response_info_proxy.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_url_response_info_proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+18 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_var_deprecated_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppb_var_deprecated_proxy.cc
|
View
|
1
2
3
4
|
15 chunks |
+87 lines, -19 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppp_class_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppp_class_proxy.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppp_instance_proxy.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppp_instance_proxy.cc
|
View
|
1
2
3
4
|
5 chunks |
+28 lines, -17 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|