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

Unified Diff: content/child/npobject_proxy.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/child/npobject_proxy.cc
===================================================================
--- content/child/npobject_proxy.cc (revision 212369)
+++ content/child/npobject_proxy.cc (working copy)
@@ -5,12 +5,11 @@
#include "content/child/npobject_proxy.h"
#include "content/child/np_channel_base.h"
+#include "content/child/npapi/plugin_host.h"
+#include "content/child/npapi/plugin_instance.h"
#include "content/child/npobject_util.h"
#include "content/child/plugin_messages.h"
#include "third_party/WebKit/public/web/WebBindings.h"
-#include "webkit/glue/webkit_glue.h"
-#include "webkit/plugins/npapi/plugin_host.h"
-#include "webkit/plugins/npapi/plugin_instance.h"
using WebKit::WebBindings;
@@ -390,7 +389,7 @@
*count = static_cast<unsigned int>(value_param.size());
*value = static_cast<NPIdentifier *>(
- webkit::npapi::PluginHost::Singleton()->host_functions()->memalloc(
+ PluginHost::Singleton()->host_functions()->memalloc(
sizeof(NPIdentifier) * *count));
for (unsigned int i = 0; i < *count; ++i)
(*value)[i] = CreateNPIdentifier(value_param[i]);
@@ -470,8 +469,8 @@
bool popups_allowed = false;
if (npp) {
- webkit::npapi::PluginInstance* plugin_instance =
- reinterpret_cast<webkit::npapi::PluginInstance*>(npp->ndata);
+ PluginInstance* plugin_instance =
+ reinterpret_cast<PluginInstance*>(npp->ndata);
if (plugin_instance)
popups_allowed = plugin_instance->popups_allowed();
}

Powered by Google App Engine
This is Rietveld 408576698