NPThread Plugin
This sample is an attempt to write a wrapper plugin which would run the
real plugin in a separate thread. The current code is just a first prototype
version aimed to determine the very possibility of such thing. It is not
designed to handle more than one instance of one plugin. Another limitations
are: it only relays browser-to-plugin calls in thread event based matter
(calls from the plugin to the browser are just made directly by function
pointer; it does not implement notifications back from the plugin thread
to the calling thread, so it simply waits before each NPP_* call until
the plugin thread is done with the previous NPP_* call.
The wrapper tested with Basic plugin sample from the plugin
SDK, so some common plugin crashes can be modelled. Work is still
required to make it functional with more complicated plugins
like Flash.
Steps to see it in action:
-- place the wrapper plugin (npthread.dll) in the plugins folder
-- remove npnul32.dll from the plugins folder
-- rename the plugin you want to run in a separate thread adding
two zeroes at the beginnig (ren npbasic.dll 00npbasic.dll)
-- run test case for the plugin in question
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
NPAPI 插件获取浏览器地址栏URL (344个子文件)
del.bat 399B
npunix.c 14KB
npshell.c 11KB
BasicPlugin.c 9KB
BasicPlugin.c 8KB
printplugin.c 5KB
COPYING 1KB
COPYING 1KB
nsPluginHost.cpp 134KB
nptest.cpp 98KB
nsNPAPIPlugin.cpp 72KB
nsJSNPRuntime.cpp 58KB
nsPluginStreamListenerPeer.cpp 45KB
nsNPAPIPluginInstance.cpp 36KB
nsNPAPIPluginStreamListener.cpp 28KB
nsPluginNativeWindowWin.cpp 25KB
nptest_gtk2.cpp 23KB
nsPluginsDirDarwin.cpp 22KB
plugin.cpp 21KB
nsPluginDirServiceProvider.cpp 20KB
nsPluginTags.cpp 18KB
nsPluginNativeWindowOS2.cpp 17KB
nsPluginNativeWindowGtk2.cpp 15KB
nptest_windows.cpp 15KB
nsPluginsDirUnix.cpp 14KB
nsPluginsDirWin.cpp 11KB
np_entry.cpp 9KB
nsPluginsDirBeOS.cpp 9KB
npn_gate.cpp 8KB
PluginPRLibrary.cpp 8KB
nsPluginsDirOS2.cpp 8KB
Plugin.cpp 8KB
plugin.cpp 7KB
np_entry.cpp 7KB
npp_gate.cpp 7KB
npp_gate.cpp 7KB
npp_gate.cpp 7KB
npn_gate.cpp 7KB
npn_gate.cpp 6KB
nptest_qt.cpp 6KB
np_entry.cpp 6KB
npp_gate.cpp 6KB
npn_gate.cpp 5KB
action.cpp 5KB
thread.cpp 5KB
plugin.cpp 5KB
np_entry.cpp 5KB
plugin.cpp 4KB
plugload.cpp 4KB
nsPluginNativeWindowQt.cpp 4KB
nptest_utils.cpp 4KB
nptest_droid.cpp 3KB
nsPluginNativeWindow.cpp 3KB
nptest_os2.cpp 3KB
nsPluginModule.cpp 2KB
dbg.cpp 2KB
UpgradeReport.css 3KB
plugin-background.css 952B
nptest.def 134B
npdemo.def 115B
npwinless.def 101B
npthread.def 100B
basic.def 99B
nprt.def 96B
npdemo.dll 60KB
npdemo.dll 58KB
npapi插件主动调用js函数的方法.doc 114KB
npthread.dsp 5KB
npwinless.dsp 4KB
npbasic.dsp 4KB
npwinless.dsw 541B
npbasic.dsw 537B
npthread.dsw 510B
npdemo.vcxproj.filters 2KB
UpgradeReport_Plus.gif 71B
UpgradeReport_Minus.gif 69B
npapi.h 28KB
npruntime.h 16KB
npfunctions.h 16KB
nsPluginHost.h 12KB
nsNPAPIPlugin.h 11KB
nsNPAPIPluginInstance.h 7KB
nsNPAPIPluginStreamListener.h 7KB
PluginPRLibrary.h 6KB
nsPluginStreamListenerPeer.h 6KB
nsPluginsDirUtils.h 5KB
nsPluginSafety.h 5KB
nptest_platform.h 5KB
nsPluginTags.h 5KB
nsPluginLogging.h 5KB
nsPluginNativeWindow.h 4KB
nptest.h 4KB
nsPluginManifestLineReader.h 4KB
pluginbase.h 4KB
nsJSNPRuntime.h 4KB
nptypes.h 4KB
nsPluginsDir.h 4KB
BasicPlugin.h 3KB
nsPluginDirServiceProvider.h 3KB
printplugin.h 3KB
共 344 条
- 1
- 2
- 3
- 4
资源评论
- 广州记忆2018-03-13感觉一般,
- Edison灬2017-09-12感觉卵用没有
- n688com2016-10-25正需要研究这方面知识,谢谢分享!
- firefox01232017-02-06给的例子里面 不支持浏览器加载,包括谷歌,360,火狐,难道例子过时了?
音乐男
- 粉丝: 3
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功