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

Unified Diff: chrome/default_plugin/plugin_impl_gtk.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 | « chrome/default_plugin/plugin_impl_gtk.h ('k') | chrome/default_plugin/plugin_impl_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « chrome/default_plugin/plugin_impl_gtk.h ('k') | chrome/default_plugin/plugin_impl_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698