nsCairoScreen::nsCairoScreen() : mScreenNum(0), mRect(0, 0, 0, 0), mAvailRect(0, 0, 0, 0) { NS_INIT_ISUPPORTS(); }
// nsEnigMimeDecrypt implementation nsEnigMimeDecrypt::nsEnigMimeDecrypt() : mInitialized(PR_FALSE), mVerifyOnly(PR_FALSE), mRfc2015(PR_FALSE), mDone(PR_FALSE), mInputLen(0), mOutputLen(0), mIterations(0), mCtFound(-1), mBuffer(nsnull), mListener(nsnull), mPipeTrans(nsnull), mSecurityInfo(nsnull), mUri(nsnull) { nsresult rv; NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gEnigMimeDecryptLog == nsnull) { gEnigMimeDecryptLog = PR_NewLogModule("nsEnigMimeDecrypt"); } #endif #ifdef FORCE_PR_LOG nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsEnigMimeDecrypt:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif }
// nsEnigMsgCompose implementation nsEnigMsgCompose::nsEnigMsgCompose() : mInitialized(PR_FALSE), mUseSMIME(PR_FALSE), mEnigMsgComposeJS(NULL), mMsgComposeSecure(NULL) { nsresult rv; NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gEnigMsgComposeLog == NULL) { gEnigMsgComposeLog = PR_NewLogModule("nsEnigMsgCompose"); } #endif // Remember to use original CID, not CONTRACTID, to avoid infinite looping! mMsgComposeSecure = do_CreateInstance(kMsgComposeSecureCID, &rv); #ifdef FORCE_PR_LOG nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsEnigMsgCompose:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif }
nsJavaObjectInfo::nsJavaObjectInfo(nsISupports* instance) { NS_INIT_ISUPPORTS(); m_argc = 0; m_size = 5; m_step = 3; m_keys = (char**) malloc(m_size*sizeof(char*)); m_vals = (char**) malloc(m_size*sizeof(char*)); m_docbase = NULL; m_instance = instance; // backward compatibility with plugin API - fix when new API will appear if (NS_FAILED(m_instance->QueryInterface(kIWFInstanceWrapperIID, (void**)&m_jpiwrapper))) OJI_LOG("FAILED to get nsIWFInstanceWrapper"); nsIPluginInstance* plugin = nsnull; if (NS_FAILED(m_instance->QueryInterface(kIPluginInstanceIID, (void**)&plugin))) OJI_LOG("FAILED to get nsIPluginInstance"); /* member initializers and constructor code */ m_wrapper = (JavaObjectWrapper*) malloc(sizeof(JavaObjectWrapper)); m_wrapper->info = (void*)this; m_wrapper->plugin = (void*)plugin; m_wrapper->GetParameters = &::GetParameters; m_wrapper->ShowDocument = &::ShowDocument; m_wrapper->ShowStatus = &::ShowStatus; m_wrapper->GetJSThread = &::GetJSThread; m_wrapper->dead = 0; }
bcText::bcText(nsIDOMText* ptr) { NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ domPtr = ptr; dataPtr = new bcCharacterData(ptr); }
EmbedWindow::EmbedWindow(void) { NS_INIT_ISUPPORTS(); mOwner = nsnull; mVisibility = PR_FALSE; mIsModal = PR_FALSE; }
NS_DECL_ISUPPORTS ProtocolHandlerFactory(const wxString &scheme, wxProtocolHandler *handler) { NS_INIT_ISUPPORTS(); m_scheme = new wxString(scheme); m_handler = handler; }
// nsEnigMsgCompose implementation nsEnigMsgCompose::nsEnigMsgCompose() : mInitialized(PR_FALSE), mUseSMIME(PR_FALSE), mIsDraft(PR_FALSE), mRequestStopped(PR_FALSE), mLinebreak(PR_TRUE), mSpace(0), mMatchFrom(0), mInputLen(0), mOutputLen(0), mSendFlags(0), mUIFlags(0), mMultipartSigned(PR_FALSE), mStripWhitespace(PR_FALSE), mSenderEmailAddr(""), mRecipients(""), mBccAddr(""), mHashAlgorithm("sha1"), mBoundary(""), mStream(0), mEncoderData(nsnull), mMsgComposeSecure(nsnull), mMimeListener(nsnull), mWriter(nsnull), mPipeTrans(nsnull) { nsresult rv; NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gEnigMsgComposeLog == nsnull) { gEnigMsgComposeLog = PR_NewLogModule("nsEnigMsgCompose"); } #endif // Remember to use original CID, not CONTRACTID, to avoid infinite looping! mMsgComposeSecure = do_CreateInstance(kMsgComposeSecureCID, &rv); #ifdef FORCE_PR_LOG nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsEnigMsgCompose:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif }
// nsEnigMimeListener implementation nsEnigMimeListener::nsEnigMimeListener() : mInitialized(PR_FALSE), mRequestStarted(PR_FALSE), mSkipHeaders(PR_FALSE), mSkipBody(PR_FALSE), mContentType(""), mContentCharset(""), mContentBoundary(""), mContentProtocol(""), mContentMicalg(""), mContentEncoding(""), mContentDisposition(""), mContentLength(-1), mDecodeContent(PR_FALSE), mDecoderData(nsnull), mLinebreak(""), mHeaders(""), mDataStr(""), mHeaderSearchCounter(0), mHeadersFinalCR(PR_FALSE), mHeadersLinebreak(2), mMaxHeaderBytes(0), mDataOffset(0), mStreamBuf(nsnull), mStreamOffset(0), mStreamLength(0), mSubPartTreatment(PR_FALSE), mListener(nsnull), mContext(nsnull) { NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gEnigMimeListenerLog == nsnull) { gEnigMimeListenerLog = PR_NewLogModule("nsEnigMimeListener"); } #endif #ifdef FORCE_PR_LOG nsresult rv; nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsEnigMimeListener:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif }
nsProtectedAuthThread::nsProtectedAuthThread() : mMutex(nsnull) , mIAmRunning(PR_FALSE) , mStatusObserverNotified(PR_FALSE) , mLoginReady(PR_FALSE) , mThreadHandle(nsnull) , mSlot(0) , mLoginResult(SECFailure) { NS_INIT_ISUPPORTS(); mMutex = PR_NewLock(); }
nsAppletHTMLObject::nsAppletHTMLObject(nsJavaHTMLObjectFactory *factory) { NS_INIT_ISUPPORTS(); m_factory = factory; m_mgr = nsnull; NS_ADDREF(m_factory); m_peer = m_peer2 = nsnull; m_dead = PR_FALSE; nsCOMPtr<nsIThread> mainIThread; nsIThread::GetMainThread(getter_AddRefs(mainIThread)); mainIThread->GetPRThread(&m_mainThread); }
InputStreamShim::InputStreamShim(jobject yourJavaStreamRef, PRInt32 yourContentLength) : mJavaStream(yourJavaStreamRef), mContentLength(yourContentLength), mBuffer(nsnull), mBufferLength(0), mCountFromJava(0), mCountFromMozilla(0), mAvailable(0), mAvailableForMozilla(0), mNumRead(0), mDoClose(PR_FALSE), mDidClose(PR_FALSE), mLock(nsnull), mCloseStatus(NS_OK), mCallback(nsnull), mCallbackFlags(0) { NS_INIT_ISUPPORTS(); mLock = PR_NewLock(); JNIEnv *env = (JNIEnv *) JNU_GetEnv(gVm, JNI_VERSION); }
npAPInsIInputStreamShim::npAPInsIInputStreamShim(nsIPluginStreamListener *plugletListener, nsIPluginStreamInfo* streamInfo) : mPlugletListener(plugletListener), mStreamInfo(streamInfo), mBuffer(nsnull), mBufferLength(0), mCountFromPluginHost(0), mCountFromPluglet(0), mAvailableForPluglet(0), mNumWrittenFromPluginHost(0), mDoClose(PR_FALSE), mDidClose(PR_FALSE), mLock(PR_NewLock()), mHasLock(PR_FALSE), mCloseStatus(NS_OK), mCallback(nsnull), mCallbackFlags(0) { NS_INIT_ISUPPORTS(); }
// nsPipeFilterListener implementation nsPipeFilterListener::nsPipeFilterListener() : mInitialized(PR_FALSE), mRequestStarted(PR_FALSE), mRequestEnded(PR_FALSE), mTailRequestStarted(PR_FALSE), mStartDelimiter(""), mEndDelimiter(""), mStartLine(""), mEndLine(""), mKeepDelimiters(PR_FALSE), mMimeMultipart(PR_FALSE), mAutoMimeBoundary(PR_FALSE), mFirstMatch(PR_TRUE), mLastMatch(PR_FALSE), mSavePartMatch(PR_FALSE), mOldPartMatch(""), mPartMatch(""), mLinebreak(0), mStreamBuf(nsnull), mStreamOffset(0), mStreamLength(0), mListener(nsnull), mTailListener(nsnull), mContext(nsnull) { NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gPipeFilterListenerLog == nsnull) { gPipeFilterListenerLog = PR_NewLogModule("nsPipeFilterListener"); } #endif #ifdef FORCE_PR_LOG nsresult rv; nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsPipeFilterListener:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif }
nsWFSecureEnv::nsWFSecureEnv(nsPluggableJVM* jvm) { NS_INIT_ISUPPORTS(); m_jvm = jvm; NS_ADDREF(m_jvm); m_jvm->GetWFCtx(&m_rtctx, &m_ctx); m_env = m_ctx->env; NS_ASSERTION(m_env != nsnull, "Error: env field not initialized by this Waterfall implementation."); if (!g_javaLangSystem) g_javaLangSystem = (jclass)m_env->NewGlobalRef(m_env->FindClass("java/lang/System")); if (!g_identityHashCodeMID) g_identityHashCodeMID = m_env->GetStaticMethodID(g_javaLangSystem, "identityHashCode", "(Ljava/lang/Object;)I"); }
// nsEnigMimeVerify implementation nsEnigMimeVerify::nsEnigMimeVerify() : mInitialized(PR_FALSE), mPgpMime(PR_FALSE), mRequestStopped(PR_FALSE), mLastLinebreak(PR_TRUE), mStartCount(0), mContentBoundary(""), mLinebreak(""), mURISpec(""), mMsgWindow(nsnull), mOutBuffer(nsnull), mPipeTrans(nsnull), mArmorListener(nsnull), mSecondPartListener(nsnull), mFirstPartListener(nsnull), mOuterMimeListener(nsnull), mInnerMimeListener(nsnull) { nsresult rv; NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gEnigMimeVerifyLog == nsnull) { gEnigMimeVerifyLog = PR_NewLogModule("nsEnigMimeVerify"); } #endif #ifdef FORCE_PR_LOG nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsEnigMimeVerify:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif }
// nsEnigMimeService implementation nsEnigMimeService::nsEnigMimeService() : mDummyHandler(PR_FALSE), mInitialized(PR_FALSE) { nsresult rv; NS_INIT_ISUPPORTS(); #ifdef PR_LOGGING if (gEnigMimeServiceLog == nsnull) { gEnigMimeServiceLog = PR_NewLogModule("nsEnigMimeService"); } #endif #ifdef FORCE_PR_LOG nsCOMPtr<nsIThread> myThread; rv = ENIG_GET_THREAD(myThread); DEBUG_LOG(("nsEnigMimeService:: <<<<<<<<< CTOR(%p): myThread=%p\n", this, myThread.get())); #endif mDummyHandler = PR_TRUE; }
nsEnigMsgComposeFactory::nsEnigMsgComposeFactory() { NS_INIT_ISUPPORTS(); }
nsXPIDLInputStream::nsXPIDLInputStream( nsIInputStream *inputStream ) { NS_INIT_ISUPPORTS(); this->inputStream = inputStream; NS_ADDREF( inputStream ); }
nsXPIDLInputStream::nsXPIDLInputStream() { NS_INIT_ISUPPORTS(); }
nsJavaPluginInstanceProxy::nsJavaPluginInstanceProxy() { NS_INIT_ISUPPORTS(); }
rbXPCOMTest::rbXPCOMTest() : mFoo((char*)nsMemory::Clone("foo", 4)) { NS_INIT_ISUPPORTS(); NS_ADDREF_THIS(); }
nsPluggableJVM::nsPluggableJVM() { NS_INIT_ISUPPORTS(); m_extID = 0; m_dll = nsnull; }
nsXPIDLPluginManager::nsXPIDLPluginManager() { NS_INIT_ISUPPORTS(); }
nsUnknownContentTypeHandler::nsUnknownContentTypeHandler( ) { NS_INIT_ISUPPORTS(); ///* ATENTIE */ printf( "In nsUnknownContentTypeHandler constructor\n" ); }
nsXPIDLPlugin::nsXPIDLPlugin( nsIXPIDLPlugin *plugin ) { NS_INIT_ISUPPORTS(); this->plugin = plugin; NS_ADDREF( plugin ); }
nsXPIDLPluginInstance::nsXPIDLPluginInstance() { NS_INIT_ISUPPORTS(); }
nsXPIDLPluginManager::nsXPIDLPluginManager( nsIPluginManager *pluginManager ) { NS_INIT_ISUPPORTS(); this->pluginManager = pluginManager; NS_ADDREF( pluginManager ); }
nsXPIDLPlugin::nsXPIDLPlugin() { NS_INIT_ISUPPORTS(); }
nsXPIDLPluginInstance::nsXPIDLPluginInstance( nsIXPIDLPluginInstance *pluginInstance ) { NS_INIT_ISUPPORTS(); this->pluginInstance = pluginInstance; NS_ADDREF( pluginInstance ); }