Back to index

lightning-sunbird  0.9+nobinonly
Functions
ns4xPluginInstance.cpp File Reference
#include "prlog.h"
#include "prmem.h"
#include "nscore.h"
#include "prenv.h"
#include "ns4xPluginInstance.h"
#include "ns4xPlugin.h"
#include "ns4xPluginStreamListener.h"
#include "nsPluginHostImpl.h"
#include "nsPluginSafety.h"
#include "nsPluginLogging.h"
#include "nsPIPluginInstancePeer.h"
#include "nsIDOMWindow.h"
#include "nsPIDOMWindow.h"
#include "nsIDocument.h"
#include "nsIScriptGlobalObject.h"
#include "nsJSNPRuntime.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kCPluginManagerCID, NS_PLUGINMANAGER_CID)
static NS_DEFINE_IID (kIPluginStreamListenerIID, NS_IPLUGINSTREAMLISTENER_IID)
 NS_IMPL_ISUPPORTS4 (ns4xPluginStreamListener, nsIPluginStreamListener, nsITimerCallback, nsIHTTPHeaderListener, nsIHTTPHeaderListener_MOZILLA_1_8_BRANCH) ns4xPluginStreamListener
 NS_IMPL_ISUPPORTS3 (ns4xPluginInstance, nsIPluginInstance, nsIScriptablePlugin, nsIPluginInstanceInternal) ns4xPluginInstance

Function Documentation

static NS_DEFINE_IID ( kCPluginManagerCID  ,
NS_PLUGINMANAGER_CID   
) [static]
static NS_DEFINE_IID ( kIPluginStreamListenerIID  ,
NS_IPLUGINSTREAMLISTENER_IID   
) [static]
NS_IMPL_ISUPPORTS3 ( ns4xPluginInstance  ,
nsIPluginInstance  ,
nsIScriptablePlugin  ,
nsIPluginInstanceInternal   
)

Definition at line 806 of file ns4xPluginInstance.cpp.

  : fCallbacks(callbacks)
{
  NS_ASSERTION(fCallbacks != NULL, "null callbacks");

  // Initialize the NPP structure.

  fNPP.pdata = NULL;
  fNPP.ndata = this;

  fLibrary = aLibrary;
  mWindowless = PR_FALSE;
  mTransparent = PR_FALSE;
  mStarted = PR_FALSE;
  mStreams = nsnull;
  mCached = PR_FALSE;

  PLUGIN_LOG(PLUGIN_LOG_BASIC, ("ns4xPluginInstance ctor: this=%p\n",this));
}

Definition at line 93 of file ns4xPluginInstance.cpp.

  : mNotifyData(notifyData),
    mStreamBuffer(nsnull),
    mNotifyURL(aURL ? PL_strdup(aURL) : nsnull),
    mInst((ns4xPluginInstance *)inst),
    mStreamBufferSize(0),
    mStreamBufferByteCount(0),
    mStreamType(nsPluginStreamType_Normal),
    mStreamStarted(PR_FALSE),
    mStreamCleanedUp(PR_FALSE),
    mCallNotify(PR_FALSE),
    mIsSuspended(PR_FALSE),
    mResponseHeaderBuf(nsnull)
{
  // Initialize the 4.x interface structure
  memset(&mNPStream, 0, sizeof(mNPStream));

  NS_IF_ADDREF(mInst);
}

Here is the call graph for this function: