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)); |
+} |