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

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed)

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

Description

This adds new Content interfaces wrapping the Pepper host in both the browser and the renderer so Chrome-implemented resources can access them. There aren't any Chrome resources yet so this is currently unused, but this will be a good place to put stuff. This enabled me to delete the old pepper_instance_state_accessor and move its methods onto the RendererPpapiHost. This makes the PluginModule own the new RendererPpapiHostImpl object. Previously this was a bit confused. It used to be owned by the dispatcher wrapper for the out-of-process case, and there was one per-instance (whoops!) for the in-process case. Now these cases are uniform. There is a new interface on PluginModule to allow owning this pointer. The in-process fake IPC channel should be per-plugin instead of per-instance, so I moved the routing from PepperInProcessResourceCreation to a new object that's owned by the host impl. The PepperInProcessResourceCreation just references this.

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1154 lines, -459 lines) Patch
M chrome/renderer/pepper/pepper_flash_renderer_message_filter.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/renderer/pepper/pepper_helper.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/pepper/pepper_helper.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 chunk +5 lines, -3 lines 0 comments Download
A content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.h View 1 2 3 4 5 3 chunks +1 line, -8 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 1 2 3 4 5 3 chunks +1 line, -18 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 4 chunks +5 lines, -3 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A content/public/browser/browser_ppapi_host.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
M content/public/renderer/render_view_observer.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
A content/public/renderer/renderer_ppapi_host.h View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M content/renderer/gamepad_shared_memory_reader.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.h View 2 chunks +11 lines, -6 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 3 chunks +14 lines, -11 lines 0 comments Download
A content/renderer/pepper/mock_renderer_ppapi_host.h View 1 2 3 4 1 chunk +60 lines, -0 lines 0 comments Download
A content/renderer/pepper/mock_renderer_ppapi_host.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.h View 3 chunks +5 lines, -8 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.cc View 1 2 3 4 5 6 5 chunks +10 lines, -10 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host_unittest.cc View 1 2 3 4 5 chunks +9 lines, -34 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.h View 1 2 3 chunks +15 lines, -22 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.cc View 1 2 3 3 chunks +6 lines, -123 lines 0 comments Download
A content/renderer/pepper/pepper_in_process_router.h View 1 1 chunk +70 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_in_process_router.cc View 1 1 chunk +153 lines, -0 lines 0 comments Download
D content/renderer/pepper/pepper_instance_state_accessor.h View 1 chunk +0 lines, -33 lines 0 comments Download
D content/renderer/pepper/pepper_instance_state_accessor_impl.h View 1 chunk +0 lines, -45 lines 0 comments Download
D content/renderer/pepper/pepper_instance_state_accessor_impl.cc View 1 chunk +0 lines, -50 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 9 chunks +39 lines, -17 lines 0 comments Download
A content/renderer/pepper/renderer_ppapi_host_impl.h View 1 2 3 4 5 1 chunk +116 lines, -0 lines 0 comments Download
A content/renderer/pepper/renderer_ppapi_host_impl.cc View 1 2 3 4 5 1 chunk +130 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ppapi/host/dispatch_host_message.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M ppapi/host/host_message_context.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/proxy/connection.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A ppapi/proxy/dispatch_reply_message.h View 1 2 1 chunk +80 lines, -0 lines 0 comments Download
M ppapi/proxy/file_chooser_resource.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M ppapi/proxy/file_chooser_resource.cc View 1 4 chunks +15 lines, -9 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/proxy/plugin_proxy_delegate.h View 1 2 chunks +9 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_resource.h View 1 2 chunks +14 lines, -10 lines 0 comments Download
M ppapi/proxy/plugin_resource.cc View 1 2 chunks +36 lines, -9 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M ppapi/shared_impl/resource.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.h View 3 chunks +19 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
brettw
This is on top of this patch http://codereview.chromium.org/10803050/
8 years, 5 months ago (2012-07-24 19:28:20 UTC) #1
raymes
On 2012/07/24 19:28:20, brettw wrote: > This is on top of this patch http://codereview.chromium.org/10803050/ For ...
8 years, 5 months ago (2012-07-25 02:21:25 UTC) #2
raymes
Some high level comments. https://chromiumcodereview.appspot.com/10815073/diff/1/chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc File chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc (right): https://chromiumcodereview.appspot.com/10815073/diff/1/chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc#newcode13 chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc:13: PepperFlashRendererMessageFilter::PepperFlashRendererMessageFilter( Thought: what if everything ...
8 years, 5 months ago (2012-07-25 16:53:22 UTC) #3
raymes
Will still probably take one more pass over this. http://codereview.chromium.org/10815073/diff/6002/content/public/renderer/renderer_ppapi_host.h File content/public/renderer/renderer_ppapi_host.h (right): http://codereview.chromium.org/10815073/diff/6002/content/public/renderer/renderer_ppapi_host.h#newcode21 content/public/renderer/renderer_ppapi_host.h:21: ...
8 years, 4 months ago (2012-07-29 15:53:24 UTC) #4
brettw
https://chromiumcodereview.appspot.com/10815073/diff/1/chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc File chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc (right): https://chromiumcodereview.appspot.com/10815073/diff/1/chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc#newcode13 chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc:13: PepperFlashRendererMessageFilter::PepperFlashRendererMessageFilter( I may actually end up doing that. I'm ...
8 years, 4 months ago (2012-07-30 05:46:36 UTC) #5
brettw
(new snap up)
8 years, 4 months ago (2012-07-30 05:46:52 UTC) #6
raymes
8 years, 4 months ago (2012-07-30 17:23:31 UTC) #7
lgtm with some nits.

Also not sure if having more tests (e.g. for the in-process routing stuff) makes
sense.

https://chromiumcodereview.appspot.com/10815073/diff/8015/content/content_bro...
File content/content_browser.gypi (right):

https://chromiumcodereview.appspot.com/10815073/diff/8015/content/content_bro...
content/content_browser.gypi:589:
'browser/renderer_host/pepper/browser_ppapi_host_impl.h',
These are out of order.

https://chromiumcodereview.appspot.com/10815073/diff/8015/content/renderer/pe...
File content/renderer/pepper/pepper_in_process_resource_creation.cc (right):

https://chromiumcodereview.appspot.com/10815073/diff/8015/content/renderer/pe...
content/renderer/pepper/pepper_in_process_resource_creation.cc:12: #include
"content/renderer/pepper/pepper_in_process_router.h"
Order is wrong

https://chromiumcodereview.appspot.com/10815073/diff/8015/content/renderer/pe...
File content/renderer/pepper/renderer_ppapi_host_impl.cc (right):

https://chromiumcodereview.appspot.com/10815073/diff/8015/content/renderer/pe...
content/renderer/pepper/renderer_ppapi_host_impl.cc:112: return NULL;
return false

https://chromiumcodereview.appspot.com/10815073/diff/8015/ppapi/shared_impl/r...
File ppapi/shared_impl/resource.h (right):

https://chromiumcodereview.appspot.com/10815073/diff/8015/ppapi/shared_impl/r...
ppapi/shared_impl/resource.h:178: // sends).
This comment is out of date now

https://chromiumcodereview.appspot.com/10815073/diff/8015/webkit/plugins/ppap...
File webkit/plugins/ppapi/plugin_module.h (right):

https://chromiumcodereview.appspot.com/10815073/diff/8015/webkit/plugins/ppap...
webkit/plugins/ppapi/plugin_module.h:67: class EmbedderState {
Not sure if it makes sense to be more descriptive about what this is for (rather
than just calling it embedderstate).

Powered by Google App Engine
This is Rietveld 408576698