Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
CertReader Class Reference

#include <CertReader.h>

Inheritance diagram for CertReader:
Inheritance graph
[legend]
Collaboration diagram for CertReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CertReader (nsIURI *uri, nsISupports *aContext, nsPICertNotification *aObs)
virtual ~CertReader ()
void onDataAvailable (in nsIRequest aRequest, in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long aOffset, in unsigned long aCount)
 Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread.
void onStartRequest (in nsIRequest aRequest, in nsISupports aContext)
 Called to signify the beginning of an asynchronous request.
void onStopRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatusCode)
 Called to signify the end of an asynchronous request.

Private Attributes

nsCString mLeftoverBuffer
nsCOMPtr< nsIPrincipalmPrincipal
nsCOMPtr< nsISignatureVerifiermVerifier
nsCOMPtr< nsISupports > mContext
nsCOMPtr< nsIURImURI
nsCOMPtr< nsPICertNotificationmObserver

Detailed Description

Definition at line 46 of file CertReader.h.


Constructor & Destructor Documentation

CertReader::CertReader ( nsIURI uri,
nsISupports *  aContext,
nsPICertNotification aObs 
)

Definition at line 124 of file CertReader.cpp.

                                                                                     :
  mContext(aContext),
  mURI(aURI),
  mObserver(aObs)
{
}
CertReader::~CertReader ( ) [virtual]

Definition at line 131 of file CertReader.cpp.

{
}

Member Function Documentation

void nsIStreamListener::onDataAvailable ( in nsIRequest  aRequest,
in nsISupports  aContext,
in nsIInputStream  aInputStream,
in unsigned long  aOffset,
in unsigned long  aCount 
) [inherited]

Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread.

The onDataAvailable impl must read exactly |aCount| bytes of data before returning.

Parameters:
aRequestrequest corresponding to the source of the data
aContextuser defined context
aInputStreaminput stream containing the data chunk
aOffsetNumber of bytes that were sent in previous onDataAvailable calls for this request. In other words, the sum of all previous count parameters. If that number is greater than or equal to 2^32, this parameter will be PR_UINT32_MAX (2^32 - 1).
aCountnumber of bytes available in the stream

NOTE: The aInputStream parameter must implement readSegments.

An exception thrown from onDataAvailable has the side-effect of causing the request to be canceled.

void nsIRequestObserver::onStartRequest ( in nsIRequest  aRequest,
in nsISupports  aContext 
) [inherited]

Called to signify the beginning of an asynchronous request.

Parameters:
aRequestrequest being observed
aContextuser defined context

An exception thrown from onStartRequest has the side-effect of causing the request to be canceled.

Here is the caller graph for this function:

void nsIRequestObserver::onStopRequest ( in nsIRequest  aRequest,
in nsISupports  aContext,
in nsresult  aStatusCode 
) [inherited]

Called to signify the end of an asynchronous request.

This call is always preceded by a call to onStartRequest.

Parameters:
aRequestrequest being observed
aContextuser defined context
aStatusCodereason for stopping (NS_OK if completed successfully)

An exception thrown from onStopRequest is generally ignored.

Here is the caller graph for this function:


Member Data Documentation

nsCOMPtr<nsISupports> CertReader::mContext [private]

Definition at line 61 of file CertReader.h.

Definition at line 57 of file CertReader.h.

Definition at line 63 of file CertReader.h.

Definition at line 58 of file CertReader.h.

Definition at line 62 of file CertReader.h.

Definition at line 59 of file CertReader.h.


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