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

Issue 7812020: Moved the following IPC messages used by the chrome NPAPI plugin installer out of content (Closed)

Created:
9 years, 3 months ago by ananta
Modified:
9 years, 3 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Moved the following IPC messages used by the chrome NPAPI plugin installer out of content into Chrome. 1. PluginProcessHostMsg_GetPluginFinderUrl 2. PluginProcessHostMsg_MissingPluginStatus 3. PluginProcessHostMsg_DownloadUrl These messages are prefixed with Chrome. Removed the InstallMissingPlugin and OnInstallMissingPlugin handlers from the NPAPI plugin sources and from our webkit plugin implementation. The plugin infobar no longer sends over an IPC message to initiate installation of the third party plugin. It sends over a windows message which is handled in the plugin installer for Windows. This functionality is not implemented for the mac and linux as before. To display the plugin installation infobar the PluginProcessHostMsg_MissingPluginStatus message sent by the plugin needs the routing id and the renderer process id. This information is now passed along with the plugin instantiation parameters in NPP_New. These parameters are only read by the default plugin. This is a continuation of the fixes to ensure that IPC's don't span across content and chrome. BUG=87335 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99062

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 16

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 4

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -226 lines) Patch
M chrome/browser/chrome_plugin_message_filter.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chrome_plugin_message_filter.cc View 1 2 3 4 5 6 7 3 chunks +63 lines, -4 lines 0 comments Download
M chrome/browser/plugin_installer_infobar_delegate.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/plugin_installer_infobar_delegate.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/plugin_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/plugin_observer.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -30 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/chrome_plugin_messages.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/default_plugin/default_plugin.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/default_plugin/plugin_impl_gtk.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/default_plugin/plugin_impl_gtk.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/default_plugin/plugin_impl_mac.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/default_plugin/plugin_impl_mac.mm View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/default_plugin/plugin_impl_win.h View 1 2 3 4 5 6 7 5 chunks +17 lines, -1 line 0 comments Download
M chrome/default_plugin/plugin_impl_win.cc View 1 2 3 4 5 6 7 8 11 chunks +37 lines, -20 lines 0 comments Download
A chrome/default_plugin/plugin_installer_base.h View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/default_plugin/plugin_installer_base.cc View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
M content/common/content_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/content_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/plugin_messages.h View 3 chunks +0 lines, -12 lines 0 comments Download
M content/common/view_messages.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 2 3 4 5 6 7 8 9 4 chunks +17 lines, -7 lines 0 comments Download
M content/plugin/webplugin_proxy.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/plugin/webplugin_proxy.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/render_view.h View 3 chunks +0 lines, -10 lines 0 comments Download
M content/renderer/render_view.cc View 4 chunks +0 lines, -36 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.h View 2 chunks +0 lines, -2 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 3 chunks +0 lines, -11 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/npapi/plugin_host.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M webkit/plugins/npapi/webplugin.h View 1 chunk +0 lines, -5 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl_mac.mm View 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl_win.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M webkit/plugins/npapi/webplugin_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/npapi/webplugin_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
9 years, 3 months ago (2011-08-31 04:28:58 UTC) #1
jam
http://codereview.chromium.org/7812020/diff/6019/chrome/browser/plugin_installer_infobar_delegate.cc File chrome/browser/plugin_installer_infobar_delegate.cc (right): http://codereview.chromium.org/7812020/diff/6019/chrome/browser/plugin_installer_infobar_delegate.cc#newcode56 chrome/browser/plugin_installer_infobar_delegate.cc:56: ::SendMessageTimeout( why send a message with a timeout of ...
9 years, 3 months ago (2011-08-31 17:34:42 UTC) #2
ananta
http://codereview.chromium.org/7812020/diff/6019/chrome/browser/plugin_installer_infobar_delegate.cc File chrome/browser/plugin_installer_infobar_delegate.cc (right): http://codereview.chromium.org/7812020/diff/6019/chrome/browser/plugin_installer_infobar_delegate.cc#newcode56 chrome/browser/plugin_installer_infobar_delegate.cc:56: ::SendMessageTimeout( On 2011/08/31 17:34:42, John Abd-El-Malek wrote: > why ...
9 years, 3 months ago (2011-08-31 20:18:14 UTC) #3
jam
lgtm http://codereview.chromium.org/7812020/diff/8051/chrome/browser/plugin_observer.h File chrome/browser/plugin_observer.h (right): http://codereview.chromium.org/7812020/diff/8051/chrome/browser/plugin_observer.h#newcode10 chrome/browser/plugin_observer.h:10: #include "ui/gfx/native_widget_types.h" nit: is this needed? http://codereview.chromium.org/7812020/diff/8051/content/common/content_constants.h File ...
9 years, 3 months ago (2011-08-31 20:23:57 UTC) #4
ananta
9 years, 3 months ago (2011-08-31 20:44:23 UTC) #5
http://codereview.chromium.org/7812020/diff/8051/chrome/browser/plugin_observ...
File chrome/browser/plugin_observer.h (right):

http://codereview.chromium.org/7812020/diff/8051/chrome/browser/plugin_observ...
chrome/browser/plugin_observer.h:10: #include "ui/gfx/native_widget_types.h"
On 2011/08/31 20:23:57, John Abd-El-Malek wrote:
> nit: is this needed?

Done.

http://codereview.chromium.org/7812020/diff/8051/content/common/content_const...
File content/common/content_constants.h (right):

http://codereview.chromium.org/7812020/diff/8051/content/common/content_const...
content/common/content_constants.h:33: // The render view and render process id
associated with the installer plugin
On 2011/08/31 20:23:57, John Abd-El-Malek wrote:
> nit: perhaps just default_plugin to match the other terminology in content?

Done.

Powered by Google App Engine
This is Rietveld 408576698