Index: chrome/default_plugin/plugin_impl_gtk.cc |
=================================================================== |
--- chrome/default_plugin/plugin_impl_gtk.cc (revision 98657) |
+++ chrome/default_plugin/plugin_impl_gtk.cc (working copy) |
@@ -4,12 +4,16 @@ |
#include "chrome/default_plugin/plugin_impl_gtk.h" |
-#include <gdk/gdkx.h> |
+#include <X11/Xdefs.h> |
+#include <gtk/gtk.h> |
#include "base/file_util.h" |
#include "base/path_service.h" |
#include "base/string_util.h" |
+#include "chrome/common/chrome_plugin_messages.h" |
#include "chrome/default_plugin/plugin_main.h" |
+#include "content/common/child_thread.h" |
+#include "content/common/content_constants.h" |
#include "googleurl/src/gurl.h" |
#include "grit/webkit_strings.h" |
#include "unicode/locid.h" |
@@ -45,7 +49,8 @@ |
instance_ = instance; |
mime_type_ = mime_type; |
- return true; |
+ return PluginInstallerBase::Initialize(module_handle, instance, mime_type, |
+ argc, argn, argv); |
} |
bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) { |
@@ -133,9 +138,10 @@ |
} |
void PluginInstallerImpl::NotifyPluginStatus(int status) { |
- default_plugin::g_browser->getvalue( |
- instance_, |
- static_cast<NPNVariable>( |
- webkit::npapi::default_plugin::kMissingPluginStatusStart + status), |
- NULL); |
+ ChildThread::current()->Send( |
+ new ChromePluginProcessHostMsg_MissingPluginStatus( |
+ status, |
+ renderer_process_id(), |
+ render_view_id(), |
+ 0)); |
} |