Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsTransportEventSinkProxy Class Reference
Inheritance diagram for nsTransportEventSinkProxy:
Inheritance graph
Collaboration diagram for nsTransportEventSinkProxy:
Collaboration graph

List of all members.

Public Member Functions

nsTransportEventSinkProxy (nsITransportEventSink *sink, nsIEventTarget *target, PRBool coalesceAll)
virtual ~nsTransportEventSinkProxy ()
void onTransportStatus (in nsITransport aTransport, in nsresult aStatus, in unsigned long long aProgress, in unsigned long long aProgressMax)
 Transport status notification.

Public Attributes

nsCOMPtr< nsIEventTargetmTarget
PRBool mCoalesceAll

Detailed Description

Definition at line 49 of file nsTransportUtils.cpp.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSITRANSPORTEVENTSINK nsTransportEventSinkProxy::nsTransportEventSinkProxy ( nsITransportEventSink sink,
nsIEventTarget target,
PRBool  coalesceAll 
) [inline]

Definition at line 55 of file nsTransportUtils.cpp.

        : mSink(sink)
        , mTarget(target)
        , mLock(PR_NewLock())
        , mLastEvent(nsnull)
        , mCoalesceAll(coalesceAll)

Here is the call graph for this function:

Definition at line 67 of file nsTransportUtils.cpp.

        if (mLock)
        // our reference to mSink could be the last, so be sure to release
        // it on the target thread.  otherwise, we could get into trouble.
        NS_ProxyRelease(mTarget, mSink);

Here is the call graph for this function:

Member Function Documentation

void nsITransportEventSink::onTransportStatus ( in nsITransport  aTransport,
in nsresult  aStatus,
in unsigned long long  aProgress,
in unsigned long long  aProgressMax 
) [inherited]

Transport status notification.

aTransportthe transport sending this status notification.
aStatusthe transport status (resolvable to a string using nsIErrorService). See nsISocketTransport for socket specific status codes and more comments.
aProgressthe amount of data either read or written depending on the value of the status code. this value is relative to aProgressMax.
aProgressMaxthe maximum amount of data that will be read or written. if unknown, 0xFFFFFFFF will be passed.

Member Data Documentation

Definition at line 81 of file nsTransportUtils.cpp.

Definition at line 80 of file nsTransportUtils.cpp.

Definition at line 79 of file nsTransportUtils.cpp.

Definition at line 77 of file nsTransportUtils.cpp.

Definition at line 78 of file nsTransportUtils.cpp.

The documentation for this class was generated from the following file: