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

Unified Diff: chrome/browser/chrome_plugin_message_filter.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
Index: chrome/browser/chrome_plugin_message_filter.cc
===================================================================
--- chrome/browser/chrome_plugin_message_filter.cc (revision 98657)
+++ chrome/browser/chrome_plugin_message_filter.cc (working copy)
@@ -5,11 +5,12 @@
#include "chrome/browser/chrome_plugin_message_filter.h"
#include "chrome/browser/browser_process.h"
-#include "content/browser/browser_thread.h"
#include "chrome/browser/plugin_download_helper.h"
+#include "chrome/browser/plugin_observer.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_plugin_messages.h"
+#include "content/browser/browser_thread.h"
#include "content/browser/plugin_process_host.h"
-#include "content/common/plugin_messages.h"
#include "net/url_request/url_request_context_getter.h"
static const char kDefaultPluginFinderURL[] =
@@ -26,10 +27,12 @@
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ChromePluginMessageFilter, message)
#if defined(OS_WIN)
- IPC_MESSAGE_HANDLER(PluginProcessHostMsg_DownloadUrl, OnDownloadUrl)
+ IPC_MESSAGE_HANDLER(ChromePluginProcessHostMsg_DownloadUrl, OnDownloadUrl)
#endif
- IPC_MESSAGE_HANDLER(PluginProcessHostMsg_GetPluginFinderUrl,
+ IPC_MESSAGE_HANDLER(ChromePluginProcessHostMsg_GetPluginFinderUrl,
OnGetPluginFinderUrl)
+ IPC_MESSAGE_HANDLER(ChromePluginProcessHostMsg_MissingPluginStatus,
+ OnMissingPluginStatus)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -71,3 +74,13 @@
plugin_finder_url->clear();
}
}
+
+void ChromePluginMessageFilter::OnMissingPluginStatus(int status,
+ int render_process_id,
+ int render_view_id,
+ int window) {
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ NewRunnableFunction(&PluginObserver::OnMissingPluginStatus, status,
+ render_process_id, render_view_id, window));
+}

Powered by Google App Engine
This is Rietveld 408576698