summaryrefslogtreecommitdiffstats
path: root/chrome/default_plugin/plugin_main.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-07 01:18:58 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-07 01:18:58 +0000
commitcc6e701be963178587b1e6edab1c74ec025ad9c0 (patch)
treeeb2b7fbfa27c75edfa563adf10f93ba855575c38 /chrome/default_plugin/plugin_main.h
parentd8e0a0c7cd72ceeb3ae0675018856cf66c70e1f2 (diff)
downloadchromium_src-cc6e701be963178587b1e6edab1c74ec025ad9c0.zip
chromium_src-cc6e701be963178587b1e6edab1c74ec025ad9c0.tar.gz
chromium_src-cc6e701be963178587b1e6edab1c74ec025ad9c0.tar.bz2
Move default_plugin out of webkit.
BUG=48419 Review URL: http://codereview.chromium.org/2803035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51681 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/default_plugin/plugin_main.h')
-rw-r--r--chrome/default_plugin/plugin_main.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/chrome/default_plugin/plugin_main.h b/chrome/default_plugin/plugin_main.h
new file mode 100644
index 0000000..50f3009
--- /dev/null
+++ b/chrome/default_plugin/plugin_main.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2010 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.
+
+#include <algorithm>
+#include <string>
+
+#include "third_party/npapi/bindings/npapi.h"
+#include "third_party/npapi/bindings/nphostapi.h"
+
+namespace default_plugin {
+
+extern NPNetscapeFuncs* g_browser;
+
+// Standard NPAPI functions.
+NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc,
+ char* argn[], char* argv[], NPSavedData* saved);
+NPError NPP_Destroy(NPP instance, NPSavedData** save);
+NPError NPP_SetWindow(NPP instance, NPWindow* window);
+NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
+ NPBool seekable, uint16_t* stype);
+NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
+int32_t NPP_WriteReady(NPP instance, NPStream* stream);
+int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len,
+ void* buffer);
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+NPError NPP_GetValue(NPP instance, NPPVariable variable, void* value);
+#endif
+void NPP_URLNotify(NPP instance, const char* url, NPReason reason,
+ void* notifyData);
+int16_t NPP_HandleEvent(NPP instance, void* event);
+
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs, NPPluginFuncs* p_funcs);
+#else
+NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs);
+NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs);
+#endif
+NPError API_CALL NP_Shutdown(void);
+
+} // default_plugin