|
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
Total comments: 8
|
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
|
Total messages: 9 (0 generated)
|