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

Unified Diff: content/renderer/render_view.cc

Issue 7812020: Moved the following IPC messages used by the chrome NPAPI plugin installer out of content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view.h ('k') | content/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
===================================================================
--- content/renderer/render_view.cc (revision 98657)
+++ content/renderer/render_view.cc (working copy)
@@ -653,7 +653,6 @@
IPC_MESSAGE_HANDLER(ViewMsg_UpdateTargetURL_ACK, OnUpdateTargetURLAck)
IPC_MESSAGE_HANDLER(ViewMsg_UpdateWebPreferences, OnUpdateWebPreferences)
IPC_MESSAGE_HANDLER(ViewMsg_SetAltErrorPageURL, OnSetAltErrorPageURL)
- IPC_MESSAGE_HANDLER(ViewMsg_InstallMissingPlugin, OnInstallMissingPlugin)
IPC_MESSAGE_HANDLER(ViewMsg_EnumerateDirectoryResponse,
OnEnumerateDirectoryResponse)
IPC_MESSAGE_HANDLER(ViewMsg_RunFileChooserResponse, OnFileChooserResponse)
@@ -1328,32 +1327,6 @@
return Send(message);
}
-void RenderView::OnMissingPluginStatus(
- WebPluginDelegateProxy* delegate,
- int status) {
-#if defined(OS_WIN)
- if (!first_default_plugin_) {
- // Show the InfoBar for the first available plugin.
- if (status == webkit::npapi::default_plugin::MISSING_PLUGIN_AVAILABLE) {
- first_default_plugin_ = delegate->AsWeakPtr();
- Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status));
- }
- } else {
- // Closes the InfoBar if user clicks on the plugin (instead of the InfoBar)
- // to start the download/install.
- if (status ==
- webkit::npapi::default_plugin::MISSING_PLUGIN_USER_STARTED_DOWNLOAD) {
- Send(new ViewHostMsg_MissingPluginStatus(routing_id_, status));
- }
- }
-#else
- // TODO(port): Implement the infobar that accompanies the default plugin.
- // Linux: http://crbug.com/10952
- // Mac: http://crbug.com/17392
- NOTIMPLEMENTED();
-#endif
-}
-
// WebKit::WebViewClient ------------------------------------------------------
WebView* RenderView::createView(
@@ -1513,9 +1486,6 @@
}
is_loading_ = true;
- // Clear the pointer so that we can assign it only when there is an unknown
- // plugin on a page.
- first_default_plugin_.reset();
Send(new ViewHostMsg_DidStartLoading(routing_id_));
@@ -3627,12 +3597,6 @@
webview()->performCustomContextMenuAction(action);
}
-void RenderView::OnInstallMissingPlugin() {
- // This could happen when the first default plugin is deleted.
- if (first_default_plugin_)
- first_default_plugin_->InstallMissingPlugin();
-}
-
void RenderView::OnEnumerateDirectoryResponse(
int id,
const std::vector<FilePath>& paths) {
« no previous file with comments | « content/renderer/render_view.h ('k') | content/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698