FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::Npapi::NpapiPluginPtr FB::FactoryBase::createNpapiPlugin ( const FB::Npapi::NpapiBrowserHostPtr &  host,
const std::string &  mimetype 
)
virtual

Creates a npapi plugin. The default implementation creates a NpapiPluginWin, NpapiPluginX11, or NpapiPluginMac depending on the platform. Only in very very rare cases will you need to override this method.

Parameters
hostThe BrowserHost object for the browser containing this plugin
mimetype
Returns
An NpapiPluginPtr containing an NpapiPlugin derived plugin handler

Definition at line 69 of file FactoryBase.cpp.

70 {
71  return FB::Npapi::createNpapiPlugin(host, mimetype);
72 }