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

Issue 10803050: Hook up the PPB_Flash_Print interface to new host system. (Closed)

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

Description

Hook up the PPB_Flash_Print interface to new host system. This adds the ability to implement "instance" messages (as opposed to resource messages) to PpapiHost via a message filter interface. The ownership model for these filters works just like RenderViewObserver. All non-resource messages are sent through this list of filters. This adds the ability to add such filters in the Chrome layer (as opposed to just content) by plumbing through some notifications. This patch responds to the trivial "Flash print" interface by calling the existing function in the renderer. This doesn't change the in-process case. Making this code path work in process will require that the "core" instance interface be done first or at the same time. As a result, the old in-process implementation is kept (it forwards to the same function in the end). This patch adds a HostResourceFactory for Chrome but doesn't hook it up yet. There is a TODO for this. I need to conver the host factories to a filter-like system to allow dynamic adding of filters from the Chrome layer. I'll do this in a follow-up patch. TEST=manual BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148840

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : review comments #

Patch Set 4 : with deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -3 lines) Patch
M chrome/chrome_renderer.gypi View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/pepper_flash_renderer_message_filter.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/pepper_flash_renderer_message_filter.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/pepper_helper.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/pepper_helper.cc View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M content/public/renderer/render_view_observer.h View 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.cc View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 3 chunks +4 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A ppapi/host/instance_message_filter.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/host/instance_message_filter.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M ppapi/host/ppapi_host.h View 1 2 4 chunks +16 lines, -0 lines 0 comments Download
M ppapi/host/ppapi_host.cc View 1 2 5 chunks +22 lines, -2 lines 0 comments Download
M ppapi/ppapi_host.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
brettw
This is mostly just a bunch of plumbing to implement one trivial function "the new ...
8 years, 5 months ago (2012-07-20 05:03:40 UTC) #1
jam
lgtm
8 years, 5 months ago (2012-07-20 06:07:00 UTC) #2
brettw
David: hold off on looking at this for a bit.
8 years, 5 months ago (2012-07-23 04:18:40 UTC) #3
brettw
I guess you can review this. I changed some minor parts of this in a ...
8 years, 5 months ago (2012-07-24 19:24:19 UTC) #4
dmichael (off chromium)
http://codereview.chromium.org/10803050/diff/2001/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc File chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc (right): http://codereview.chromium.org/10803050/diff/2001/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc#newcode14 chrome/renderer/pepper/chrome_renderer_pepper_host_factory.cc:14: ChromeRendererPepperHostFactory::ChromeRendererPepperHostFactory(){ nit: space between ) and { http://codereview.chromium.org/10803050/diff/2001/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h File ...
8 years, 5 months ago (2012-07-25 16:57:27 UTC) #5
brettw
I actually redid the ownership completely and just pass them is as scoped_ptrs and got ...
8 years, 5 months ago (2012-07-26 16:18:12 UTC) #6
dmichael (off chromium)
lgtm This looks simpler, thanks.
8 years, 4 months ago (2012-07-27 15:44:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/10803050/13001
8 years, 4 months ago (2012-07-27 19:37:13 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-07-27 20:57:40 UTC) #9
Try job failure for 10803050-13001 (retry) on mac_rel for step "check_deps".
It's a second try, previously, step "check_deps" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698