Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsIContentPolicy Interface Reference

import "nsIContentPolicy.idl";

Inheritance diagram for nsIContentPolicy:

nsISupports

List of all members.


Detailed Description

Interface for content policy mechanism. Implementations of this interface can be used to control loading of various types of out-of-line content, or processing of certain types of in-line content.

WARNING: do not block the caller from shouldLoad or shouldProcess (e.g., by launching a dialog to prompt the user for something).

Definition at line 55 of file nsIContentPolicy.idl.


Public Member Functions

short shouldLoad (in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeTypeGuess, in nsISupports aExtra)
short shouldProcess (in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeType, in nsISupports aExtra)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

const short ACCEPT = 1
const short REJECT_OTHER = -4
const short REJECT_REQUEST = -1
const short REJECT_SERVER = -3
const short REJECT_TYPE = -2
const unsigned long TYPE_DOCUMENT = 6
const unsigned long TYPE_IMAGE = 3
const unsigned long TYPE_OBJECT = 5
const unsigned long TYPE_OBJECT_SUBREQUEST = 12
const unsigned long TYPE_OTHER = 1
const unsigned long TYPE_PING = 10
const unsigned long TYPE_REFRESH = 8
const unsigned long TYPE_SCRIPT = 2
const unsigned long TYPE_STYLESHEET = 4
const unsigned long TYPE_SUBDOCUMENT = 7
const unsigned long TYPE_XBL = 9
const unsigned long TYPE_XMLHTTPREQUEST = 11

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

Generated by  Doxygen 1.6.0   Back to index