Back to index

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

List of all members.

Public Member Functions

virtual nsresult GetData (nsIURI *aURI, nsIChannel *aChannel, nsACString &aContentType, void **aData, PRUint32 *aSize)

Detailed Description

Definition at line 46 of file EmbedApp.cpp.

Member Function Documentation

virtual nsresult FooCallback::GetData ( nsIURI aURI,
nsIChannel aChannel,
nsACString &  aContentType,
void **  aData,
PRUint32 aSize 
) [inline, virtual]

Implements GeckoChannelCallback.

Definition at line 49 of file EmbedApp.cpp.

        nsCAutoString spec;
        nsCAutoString txt("<html><body>Hello, your URL was \'");

        size_t size = txt.Length();
        *aData = (void *) nsMemory::Alloc(size + 1);
        if (!*aData)
            return NS_ERROR_OUT_OF_MEMORY;
        memset(*aData, 0, size + 1);
        memcpy(*aData, txt.get(), size);
        *aSize = size;
        return NS_OK;

Here is the call graph for this function:

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