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

Unified Diff: content/plugin/plugin_thread.cc

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 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: content/plugin/plugin_thread.cc
===================================================================
--- content/plugin/plugin_thread.cc (revision 212369)
+++ content/plugin/plugin_thread.cc (working copy)
@@ -21,16 +21,15 @@
#include "base/process_util.h"
#include "base/threading/thread_local.h"
#include "content/child/child_process.h"
+#include "content/child/npapi/plugin_lib.h"
+#include "content/child/npapi/webplugin_delegate_impl.h"
#include "content/child/npobject_util.h"
#include "content/common/plugin_process_messages.h"
#include "content/public/common/content_switches.h"
#include "content/public/plugin/content_plugin_client.h"
#include "ipc/ipc_channel_handle.h"
#include "webkit/glue/webkit_glue.h"
-#include "webkit/plugins/npapi/plugin_lib.h"
-#include "webkit/plugins/npapi/plugin_list.h"
#include "webkit/plugins/npapi/plugin_utils.h"
-#include "webkit/plugins/npapi/webplugin_delegate_impl.h"
#if defined(TOOLKIT_GTK)
#include "ui/gfx/gtk_util.h"
@@ -116,8 +115,7 @@
// Preload the library to avoid loading, unloading then reloading
preloaded_plugin_module_ = base::LoadNativeLibrary(plugin_path, NULL);
- scoped_refptr<webkit::npapi::PluginLib> plugin(
- webkit::npapi::PluginLib::CreatePluginLib(plugin_path));
+ scoped_refptr<PluginLib> plugin(PluginLib::CreatePluginLib(plugin_path));
if (plugin.get()) {
plugin->NP_Initialize();
// For OOP plugins the plugin dll will be unloaded during process shutdown
@@ -143,7 +141,7 @@
preloaded_plugin_module_ = NULL;
}
NPChannelBase::CleanupChannels();
- webkit::npapi::PluginLib::UnloadAllPlugins();
+ PluginLib::UnloadAllPlugins();
if (webkit::npapi::ShouldForcefullyTerminatePluginProcess())
base::KillProcess(base::GetCurrentProcessHandle(), 0, /* wait= */ false);

Powered by Google App Engine
This is Rietveld 408576698