summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/npapi_extension_thunk.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-07 21:11:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-07 21:11:52 +0000
commitf5cf88a21918e04a52c9aa7fc8e13ff24b7bf196 (patch)
tree3ec448569179f66949795be7dafc0cd2ec62f8d4 /webkit/glue/plugins/npapi_extension_thunk.h
parent886a17e3ef3bce4bed8318d9734e6a7ce09feee5 (diff)
downloadchromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.zip
chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.gz
chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.bz2
Refactor the pepper API implementation to make it more scalable as we add more
device types. Implement a stub of the 3D device API. Fix style in some of the plugin related code. TEST=run the pepper_test_plugin BUG=none Review URL: http://codereview.chromium.org/468012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/npapi_extension_thunk.h')
-rw-r--r--webkit/glue/plugins/npapi_extension_thunk.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/glue/plugins/npapi_extension_thunk.h b/webkit/glue/plugins/npapi_extension_thunk.h
new file mode 100644
index 0000000..fada6bc
--- /dev/null
+++ b/webkit/glue/plugins/npapi_extension_thunk.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_PLUGINS_NPAPI_EXTENSION_THUNK_H_
+#define WEBKIT_GLUE_PLUGINS_NPAPI_EXTENSION_THUNK_H_
+
+#include "third_party/npapi/bindings/npapi_extensions.h"
+
+// This file implements forwarding for the NPAPI "Pepper" extensions through to
+// the WebPluginDelegate associated with the plugin.
+
+namespace NPAPI {
+
+// Implements NPN_GetValue for the case of NPNVPepperExtensions. The function
+// pointers in the returned structure implement all the extensions.
+NPError GetPepperExtensionsFunctions(void* value);
+
+} // namespace NPAPI
+
+#endif // WEBKIT_GLUE_PLUGINS_NPAPI_EXTENSION_THUNK_H_
+
+