summaryrefslogtreecommitdiffstats
path: root/o3d/gpu_plugin/gpu_plugin.h
diff options
context:
space:
mode:
authorapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 23:13:46 +0000
committerapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 23:13:46 +0000
commit1b951f98b5d86ed9ba82555566627017211ad9d4 (patch)
tree3a051afc6116fa678dadf76f72b5ce587d84f61d /o3d/gpu_plugin/gpu_plugin.h
parent130805e7d8ae9e6fe73b2f6180a04b989d7961e5 (diff)
downloadchromium_src-1b951f98b5d86ed9ba82555566627017211ad9d4.zip
chromium_src-1b951f98b5d86ed9ba82555566627017211ad9d4.tar.gz
chromium_src-1b951f98b5d86ed9ba82555566627017211ad9d4.tar.bz2
Added GPU plugin object, an NPObject to which a plugin instance's NPP calls are forwarded.
TEST=none BUG=none Review URL: http://codereview.chromium.org/173386 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/gpu_plugin/gpu_plugin.h')
-rw-r--r--o3d/gpu_plugin/gpu_plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/o3d/gpu_plugin/gpu_plugin.h b/o3d/gpu_plugin/gpu_plugin.h
index f3d95d2..269e053 100644
--- a/o3d/gpu_plugin/gpu_plugin.h
+++ b/o3d/gpu_plugin/gpu_plugin.h
@@ -6,6 +6,7 @@
#define O3D_GPU_PLUGIN_GPU_PLUGIN_H_
#include "third_party/npapi/bindings/npapi.h"
+#include "third_party/npapi/bindings/npruntime.h"
typedef struct _NPPluginFuncs NPPluginFuncs;
typedef struct _NPNetscapeFuncs NPNetscapeFuncs;
@@ -13,6 +14,11 @@ typedef struct _NPNetscapeFuncs NPNetscapeFuncs;
namespace o3d {
namespace gpu_plugin {
+class PluginObjectFactory;
+
+// Replaces the plugin object factory and returns the previous one.
+PluginObjectFactory* SetPluginObjectFactory(PluginObjectFactory* factory);
+
// Declarations of NPAPI plugin entry points.
NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs);