38 #include "nspluginroot.idl"
39 #include "nsIFactory.idl"
40 #include "nsIPluginInstanceOwner.idl"
41 #include "nsIStreamListener.idl"
42 #include "nsIStringStream.idl"
43 #include "nsIPluginTag.idl"
46 #include "nsplugindefs.h"
47 #include "nsIPluginHost.h"
48 #ifdef MOZILLA_INTERNAL_API
50 #include "nsNetUtil.h"
57 interface nsIDOMPlugin;
60 [ptr] native PRLibraryPtr(PRLibrary);
61 [ref] native nsIStreamListenerRef(nsIStreamListener *);
63 [scriptable, uuid(2af1c32d-38dd-4f72-b0ab-24697d836e61)]
66 [noscript]
void init();
68 [noscript]
void destroy();
70 [noscript]
void loadPlugins();
72 [noscript]
nsIPlugin getPluginFactory(in
string aMimeType);
74 [noscript]
void instantiateEmbeddedPlugin(in
string aMimeType, in nsIURI aURL, in
nsIPluginInstanceOwner aOwner);
76 [noscript]
void instantiateFullPagePlugin(in
string aMimeType, in nsIURI aURI, in nsIStreamListenerRef aStreamListener, in
nsIPluginInstanceOwner aOwner);
85 [noscript]
void setUpPluginInstance(in
string aMimeType, in nsIURI aURL, in
nsIPluginInstanceOwner aOwner);
90 [noscript]
void isPluginEnabledForType(in
string aMimeType);
94 [noscript]
void isPluginEnabledForExtension(in
string aExtension, in constCharStarRef aMimeType);
96 [noscript] readonly attribute
unsigned long pluginCount;
98 [noscript]
void getPlugins(in
unsigned long aPluginCount, out nsIDOMPlugin aPluginArray);
100 void getPluginTags(out
unsigned long aPluginCount,
101 [retval, array, size_is(aPluginCount)] out
nsIPluginTag aResults);
105 [noscript]
void handleBadPlugin(in PRLibraryPtr aLibrary, in
nsIPluginInstance instance);
nsIStreamListener instantiatePluginForChannel(in nsIChannel aChannel, in nsIPluginInstanceOwner aOwner)
Instantiate an embedded plugin for an existing channel.