Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsInterfaceRequestorAgg.cpp File Reference
#include "nsInterfaceRequestorAgg.h"
#include "nsCOMPtr.h"

Go to the source code of this file.

Classes

class  nsInterfaceRequestorAgg

Functions

nsresult NS_NewInterfaceRequestorAggregation (nsIInterfaceRequestor *aFirst, nsIInterfaceRequestor *aSecond, nsIInterfaceRequestor **aResult)
 This function returns an instance of nsIInterfaceRequestor that aggregates two nsIInterfaceRequestor instances.

Function Documentation

This function returns an instance of nsIInterfaceRequestor that aggregates two nsIInterfaceRequestor instances.

It's GetInterface method queries aFirst for the requested interface and will query aSecond only if aFirst failed to supply the requested interface. Both aFirst and aSecond may be null.

Definition at line 69 of file nsInterfaceRequestorAgg.cpp.

{
  *aResult = new nsInterfaceRequestorAgg(aFirst, aSecond);
  if (!aResult)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: