166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -91,7 +91,7 @@ nsSanePluginInstance::nsSanePluginInstance( void )
|
||||
printf("nsSanePluginInstance::nsSanePluginInstance()\n");
|
||||
#endif
|
||||
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
PR_AtomicIncrement(&gPluginObjectCount);
|
||||
|
||||
// set default jpeg compression attributes
|
||||
@@ -1994,7 +1994,7 @@ nsSanePluginStreamListener::nsSanePluginStreamListener(nsSanePluginInstance* ins
|
||||
#endif
|
||||
|
||||
PR_AtomicIncrement(&gPluginObjectCount);
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
mPlugInst = inst;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ nsSanePluginFactoryImpl::nsSanePluginFactoryImpl( const nsCID &aClass,
|
||||
printf("nsSanePluginFactoryImpl::nsSanePluginFactoryImpl()\n");
|
||||
#endif
|
||||
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1072,7 +1072,7 @@ NPP_HandleEvent(NPP instance, void* event)
|
||||
CPluginManager::CPluginManager(void)
|
||||
{
|
||||
// Set reference count to 0.
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
mLiveconnect = NULL;
|
||||
}
|
||||
@@ -1375,7 +1375,7 @@ CPluginInstancePeer::CPluginInstancePeer(nsIPluginInstance* pluginInstance,
|
||||
attribute_list(NULL), values_list(NULL)
|
||||
{
|
||||
// Set the reference count to 0.
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
NS_IF_ADDREF(mInstance);
|
||||
|
||||
@@ -1621,7 +1621,7 @@ CPluginManagerStream::CPluginManagerStream(NPP npp, NPStream* pstr)
|
||||
: npp(npp), pstream(pstr)
|
||||
{
|
||||
// Set the reference count to 0.
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
}
|
||||
|
||||
CPluginManagerStream::~CPluginManagerStream(void)
|
||||
@@ -1726,7 +1726,7 @@ CPluginInputStream::CPluginInputStream(nsIPluginStreamListener* listener)
|
||||
mBuffer(NULL), mBufferLength(0), mAmountRead(0),
|
||||
mStreamInfo(NULL)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
if (mListener != NULL) {
|
||||
mListener->AddRef();
|
||||
|
||||
@@ -496,7 +496,7 @@ SimplePluginInstance::UnregisterSelf(nsIComponentManager* aCompMgr,
|
||||
SimplePluginInstance::SimplePluginInstance(void)
|
||||
: fText(NULL), fPeer(NULL), fWindow(NULL), fMode(nsPluginMode_Embedded)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
static const char text[] = "Hello World!";
|
||||
fText = (char*) nsMemory::Clone(text, sizeof(text));
|
||||
@@ -811,7 +811,7 @@ SimplePluginStreamListener::SimplePluginStreamListener(SimplePluginInstance* ins
|
||||
const char* msgName)
|
||||
: fMessageName(msgName)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
char msg[256];
|
||||
sprintf(msg, "### Creating SimplePluginStreamListener for %s\n", fMessageName);
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@ NS_IMPL_ISUPPORTS2(EventsPluginInstance, nsIPluginInstance, nsIEventsSampleInsta
|
||||
EventsPluginInstance::EventsPluginInstance() :
|
||||
fPeer(NULL), fWindow(NULL), fMode(nsPluginMode_Embedded)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
wChild = 0;
|
||||
}
|
||||
|
||||
@@ -560,7 +560,7 @@ NS_METHOD EventsPluginInstance::GetValue(nsPluginInstanceVariable /*variable*/,
|
||||
EventsPluginStreamListener::EventsPluginStreamListener(EventsPluginInstance* inst_,
|
||||
const char* msgName)
|
||||
: fMessageName(msgName), inst(inst_) {
|
||||
NS_INIT_REFCNT();
|
||||
NS_INIT_ISUPPORTS();
|
||||
#ifdef EVENTSPLUGIN_DEBUG
|
||||
printf("EventsPluginStreamListener: EventsPluginStreamListener for %s\n", fMessageName);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user