2012-03-17 10:50:10 +00:00
|
|
|
type
|
|
|
|
|
|
|
|
nsIChannel = interface(nsIRequest)
|
|
|
|
['{06f6ada3-7729-4e72-8d3f-bf8ba630ff9b}']
|
|
|
|
function GetoriginalURI(): nsIURI; safecall;
|
|
|
|
procedure SetoriginalURI(aoriginalURI: nsIURI); safecall;
|
|
|
|
property originalURI : nsIURI read GetoriginalURI write SetoriginalURI;
|
|
|
|
function GetURI(): nsIURI; safecall;
|
|
|
|
property URI : nsIURI read GetURI;
|
|
|
|
function Getowner(): nsISupports; safecall;
|
|
|
|
procedure Setowner(aowner: nsISupports); safecall;
|
|
|
|
property owner : nsISupports read Getowner write Setowner;
|
|
|
|
function GetnotificationCallbacks(): nsIInterfaceRequestor; safecall;
|
|
|
|
procedure SetnotificationCallbacks(anotificationCallbacks: nsIInterfaceRequestor); safecall;
|
|
|
|
property notificationCallbacks : nsIInterfaceRequestor read GetnotificationCallbacks write SetnotificationCallbacks;
|
|
|
|
function GetsecurityInfo(): nsISupports; safecall;
|
|
|
|
property securityInfo : nsISupports read GetsecurityInfo;
|
2012-03-19 14:43:54 +00:00
|
|
|
procedure GetcontentType( result_: ACString); safecall;
|
2012-03-17 10:50:10 +00:00
|
|
|
procedure SetcontentType(acontentType: ACString); safecall;
|
2012-03-19 14:43:54 +00:00
|
|
|
procedure GetcontentCharset( result_: ACString); safecall;
|
2012-03-17 10:50:10 +00:00
|
|
|
procedure SetcontentCharset(acontentCharset: ACString); safecall;
|
|
|
|
function GetcontentLength(): idllong; safecall;
|
|
|
|
procedure SetcontentLength(acontentLength: idllong); safecall;
|
|
|
|
property contentLength : idllong read GetcontentLength write SetcontentLength;
|
|
|
|
function open() : nsIInputStream; safecall;
|
|
|
|
procedure asyncOpen(aListener: nsIStreamListener; aContext: nsISupports); safecall;
|
|
|
|
function GetcontentDisposition(): idlulong; safecall;
|
|
|
|
property contentDisposition : idlulong read GetcontentDisposition;
|
|
|
|
function GetcontentDispositionFilename(): AString; safecall;
|
|
|
|
property contentDispositionFilename : AString read GetcontentDispositionFilename;
|
2012-03-19 14:43:54 +00:00
|
|
|
procedure GetcontentDispositionHeader( result_: ACString); safecall;
|
2012-03-17 10:50:10 +00:00
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
const
|
|
|
|
nsIChannel_LOAD_DOCUMENT_URI=1 << 16;
|
|
|
|
nsIChannel_LOAD_RETARGETED_DOCUMENT_URI=1 << 17;
|
|
|
|
nsIChannel_LOAD_REPLACE=1 << 18;
|
|
|
|
nsIChannel_LOAD_INITIAL_DOCUMENT_URI=1 << 19;
|
|
|
|
nsIChannel_LOAD_TARGETED=1 << 20;
|
|
|
|
nsIChannel_LOAD_CALL_CONTENT_SNIFFERS=1 << 21;
|
|
|
|
nsIChannel_LOAD_CLASSIFY_URI=1 << 22;
|
|
|
|
nsIChannel_DISPOSITION_INLINE=0;
|
|
|
|
nsIChannel_DISPOSITION_ATTACHMENT=1;
|
|
|
|
|