diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 22:49:36 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 22:49:36 +0000 |
commit | 236bf85d455cd3aa4f66d16279756b96f57d762f (patch) | |
tree | 4bf1ce8869093c5c6c13863b7105986e9d96aabc /content/renderer/render_view_impl.h | |
parent | 951ef0bdf8d1c272afb3bdce4dd3c39ffaab2fee (diff) | |
download | chromium_src-236bf85d455cd3aa4f66d16279756b96f57d762f.zip chromium_src-236bf85d455cd3aa4f66d16279756b96f57d762f.tar.gz chromium_src-236bf85d455cd3aa4f66d16279756b96f57d762f.tar.bz2 |
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
Review URL: https://chromiumcodereview.appspot.com/10803050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_impl.h')
-rw-r--r-- | content/renderer/render_view_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h index 0dc2bed..1c21cd6 100644 --- a/content/renderer/render_view_impl.h +++ b/content/renderer/render_view_impl.h @@ -329,6 +329,9 @@ class RenderViewImpl : public RenderWidget, // Informs the render view that a PPAPI plugin has changed selection. void PpapiPluginSelectionChanged(); + // Notification that a PPAPI plugin has been created. + void PpapiPluginCreated(ppapi::host::PpapiHost* host); + // Retrieves the current caret position if a PPAPI plugin has focus. bool GetPpapiPluginCaretBounds(gfx::Rect* rect); |