mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
added support for deferred plugin enumeration.
This commit is contained in:
parent
10f6c80c52
commit
272b22bccb
@ -686,6 +686,7 @@ printf("manager getvalue %d called\n", variable);
|
||||
|
||||
nsresult nsPluginHostImpl :: ReloadPlugins(PRBool reloadPages)
|
||||
{
|
||||
mPluginsLoaded = PR_FALSE;
|
||||
return LoadPlugins();
|
||||
}
|
||||
|
||||
@ -1211,6 +1212,8 @@ printf("plugin %s added to list %s\n", plugintag->mName, (plugintag->mFlags & NS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
mPluginsLoaded = PR_TRUE;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -1220,6 +1223,9 @@ nsresult nsPluginHostImpl :: InstantiatePlugin(const char *aMimeType, nsIURL *aU
|
||||
nsPluginTag *plugins = nsnull;
|
||||
PRInt32 variants, cnt;
|
||||
|
||||
if (PR_FALSE == mPluginsLoaded)
|
||||
LoadPlugins();
|
||||
|
||||
if (nsnull != aMimeType)
|
||||
{
|
||||
plugins = mPlugins;
|
||||
|
@ -169,6 +169,7 @@ private:
|
||||
char *mPluginPath;
|
||||
nsPluginTag *mPlugins;
|
||||
nsIMalloc *mMalloc;
|
||||
PRBool mPluginsLoaded;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -686,6 +686,7 @@ printf("manager getvalue %d called\n", variable);
|
||||
|
||||
nsresult nsPluginHostImpl :: ReloadPlugins(PRBool reloadPages)
|
||||
{
|
||||
mPluginsLoaded = PR_FALSE;
|
||||
return LoadPlugins();
|
||||
}
|
||||
|
||||
@ -1211,6 +1212,8 @@ printf("plugin %s added to list %s\n", plugintag->mName, (plugintag->mFlags & NS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
mPluginsLoaded = PR_TRUE;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -1220,6 +1223,9 @@ nsresult nsPluginHostImpl :: InstantiatePlugin(const char *aMimeType, nsIURL *aU
|
||||
nsPluginTag *plugins = nsnull;
|
||||
PRInt32 variants, cnt;
|
||||
|
||||
if (PR_FALSE == mPluginsLoaded)
|
||||
LoadPlugins();
|
||||
|
||||
if (nsnull != aMimeType)
|
||||
{
|
||||
plugins = mPlugins;
|
||||
|
@ -169,6 +169,7 @@ private:
|
||||
char *mPluginPath;
|
||||
nsPluginTag *mPlugins;
|
||||
nsIMalloc *mMalloc;
|
||||
PRBool mPluginsLoaded;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user