Mozilla/mozilla/embedding/tests/wxEmbed/GeckoProtocolHandler.h
locka%iol.ie 32262dc4eb NOT PART OF BUILD. Simple test app for Gecko written using wxWindows
git-svn-id: svn://10.0.0.236/trunk@144101 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 20:15:14 +00:00

27 lines
667 B
C++

#ifndef GECKOPROTOCOLHANDLER_H
#define GECKOPROTOCOLHANDLER_H
#include "nsIProtocolHandler.h"
#include "nsIChannel.h"
#include "nsIURI.h"
class GeckoChannelCallback
{
public:
// Return an nsMemory allocated memory block containing the data requested
// Ownership transfers to the caller so it will be freed automatically
virtual nsresult GetData(
nsIURI *aURI,
nsIChannel *aChannel,
nsACString &aContentType,
void **aData,
PRUint32 *aSize) = 0;
};
class GeckoProtocolHandler
{
public:
static nsresult RegisterHandler(const char *aScheme, const char *aDescription, GeckoChannelCallback *aCallback);
};
#endif