|
Remove webkit::ppapi::Resource.
This makes all resource _impl's derive directly from ppapi::Resource so we
can share code better. This means removing PluginInstances and converting
them to PP_Instances.
This adds a new ResourceHelper static class to help in the conversion of
resources to PluginInstances for the _impl classes.
Overall the new code is in general slightly worse than the old because using
the ResourceHelper is more annoying than just calling instance() on the old
webkit::ppapi::Resource object. However, I'm hoping that, because this will
allow us to move more code into shared_impl and reduce duplicate logic, it
will eventually have a net positive effect.
This also adds a ScopedPPResource class that works just like a scoped_refptr. We need this in a few places. Most of the places that used the old ScopedResourceId class could be removed now since resources have PP_Resource IDs generated even when there's no plugin reference (this didn't use to be the case) so we can pass resources as input params to the plugin even when there's no plugin ref, as long as there's a scoped_refptr to the Resource.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98047
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+961 lines, -650 lines) |
Patch |
 |
M |
chrome/renderer/chrome_ppb_pdf_impl.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/chrome_ppb_pdf_impl.cc
|
View
|
1
2
|
4 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper_plugin_delegate_impl.cc
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_shared.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/resource_tracker.h
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/resource_tracker.cc
|
View
|
1
2
|
4 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
A |
ppapi/shared_impl/scoped_pp_resource.h
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/shared_impl/scoped_pp_resource.cc
|
View
|
1
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webkit_glue.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/callbacks_unittest.cc
|
View
|
|
4 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/message_channel.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/mock_resource.h
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/plugin_object.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.h
|
View
|
|
3 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
View
|
1
2
|
7 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppapi_webplugin_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_audio_impl.h
|
View
|
|
4 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_audio_impl.cc
|
View
|
1
2
3
|
8 chunks |
+33 lines, -31 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_broker_impl.h
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_broker_impl.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_buffer_impl.h
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_buffer_impl.cc
|
View
|
1
2
3
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_context_3d_impl.h
|
View
|
|
4 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_context_3d_impl.cc
|
View
|
1
2
3
|
7 chunks |
+11 lines, -17 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_cursor_control_impl.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_directory_reader_impl.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_directory_reader_impl.cc
|
View
|
1
2
3
|
4 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_chooser_impl.h
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_chooser_impl.cc
|
View
|
1
2
3
|
6 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_io_impl.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_io_impl.cc
|
View
|
1
2
3
|
15 chunks |
+47 lines, -13 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_ref_impl.h
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_ref_impl.cc
|
View
|
1
2
3
|
11 chunks |
+35 lines, -16 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_system_impl.h
|
View
|
|
2 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_file_system_impl.cc
|
View
|
1
2
3
|
3 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_flash_file_impl.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_flash_impl.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_flash_menu_impl.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_flash_menu_impl.cc
|
View
|
1
2
3
|
4 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_flash_net_connector_impl.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_flash_net_connector_impl.cc
|
View
|
1
2
3
|
3 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_font_impl.h
|
View
|
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_font_impl.cc
|
View
|
1
2
3
|
4 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_2d_impl.h
|
View
|
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
|
View
|
1
2
3
|
5 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_3d_impl.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
|
View
|
1
2
3
|
8 chunks |
+21 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_image_data_impl.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_image_data_impl.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_input_event_impl.h
|
View
|
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_input_event_impl.cc
|
View
|
1
2
3
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_layer_compositor_impl.h
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_layer_compositor_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_proxy_impl.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_scrollbar_impl.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_scrollbar_impl.cc
|
View
|
1
2
3
|
10 chunks |
+43 lines, -20 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_surface_3d_impl.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_surface_3d_impl.cc
|
View
|
1
2
3
|
8 chunks |
+28 lines, -12 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_transport_impl.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_transport_impl.cc
|
View
|
1
2
3
|
9 chunks |
+33 lines, -9 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_url_loader_impl.h
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_url_loader_impl.cc
|
View
|
1
2
3
|
7 chunks |
+25 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_url_request_info_impl.h
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_url_request_info_impl.cc
|
View
|
1
2
3
|
3 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_url_response_info_impl.h
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_url_response_info_impl.cc
|
View
|
1
2
3
|
4 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_capture_impl.h
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_capture_impl.cc
|
View
|
1
2
3
|
8 chunks |
+15 lines, -23 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_decoder_impl.h
|
View
|
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_decoder_impl.cc
|
View
|
1
2
3
|
7 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_layer_impl.h
|
View
|
1
2
3
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_layer_impl.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_layer_software.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_video_layer_software.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_widget_impl.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/ppb_widget_impl.cc
|
View
|
1
2
3
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/quota_file_io.h
|
View
|
|
4 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/quota_file_io.cc
|
View
|
1
2
3
|
11 chunks |
+45 lines, -10 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/quota_file_io_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
D |
webkit/plugins/ppapi/resource.h
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
D |
webkit/plugins/ppapi/resource.cc
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/resource_creation_impl.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/resource_creation_impl.cc
|
View
|
|
9 chunks |
+33 lines, -34 lines |
0 comments
|
Download
|
 |
A |
webkit/plugins/ppapi/resource_helper.h
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
A |
webkit/plugins/ppapi/resource_helper.cc
|
View
|
1
2
3
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/resource_tracker.h
|
View
|
1
2
|
4 chunks |
+3 lines, -16 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/resource_tracker.cc
|
View
|
1
2
3
|
4 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/resource_tracker_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
webkit/plugins/ppapi/url_request_info_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|