LCOV - app.info - objdir/dist/include/nsIContentPolicy.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIContentPolicy.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-04-21 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/content/base/public/nsIContentPolicy.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIContentPolicy_h__
           6                 : #define __gen_nsIContentPolicy_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : /* For IDL files that don't want to include root IDL files. */
          14                 : #ifndef NS_NO_VTABLE
          15                 : #define NS_NO_VTABLE
          16                 : #endif
          17                 : class nsIURI; /* forward declaration */
          18                 :
          19                 : class nsIDOMNode; /* forward declaration */
          20                 :
          21                 :
          22                 : /* starting interface:    nsIContentPolicy */
          23                 : #define NS_ICONTENTPOLICY_IID_STR "344f9cb0-9a17-44c5-ab96-ee707884266c"
          24                 :
          25                 : #define NS_ICONTENTPOLICY_IID \
          26                 :   {0x344f9cb0, 0x9a17, 0x44c5, \
          27                 :     { 0xab, 0x96, 0xee, 0x70, 0x78, 0x84, 0x26, 0x6c }}
          28                 :
          29             159 : class NS_NO_VTABLE NS_SCRIPTABLE nsIContentPolicy : public nsISupports {
          30                 :  public:
          31                 :
          32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPOLICY_IID)
          33                 :
          34                 :   enum {
          35                 :     TYPE_OTHER = 1U,
          36                 :     TYPE_SCRIPT = 2U,
          37                 :     TYPE_IMAGE = 3U,
          38                 :     TYPE_STYLESHEET = 4U,
          39                 :     TYPE_OBJECT = 5U,
          40                 :     TYPE_DOCUMENT = 6U,
          41                 :     TYPE_SUBDOCUMENT = 7U,
          42                 :     TYPE_REFRESH = 8U,
          43                 :     TYPE_XBL = 9U,
          44                 :     TYPE_PING = 10U,
          45                 :     TYPE_XMLHTTPREQUEST = 11U,
          46                 :     TYPE_DATAREQUEST = 11U,
          47                 :     TYPE_OBJECT_SUBREQUEST = 12U,
          48                 :     TYPE_DTD = 13U,
          49                 :     TYPE_FONT = 14U,
          50                 :     TYPE_MEDIA = 15U,
          51                 :     TYPE_WEBSOCKET = 16U,
          52                 :     REJECT_REQUEST = -1,
          53                 :     REJECT_TYPE = -2,
          54                 :     REJECT_SERVER = -3,
          55                 :     REJECT_OTHER = -4,
          56                 :     ACCEPT = 1
          57                 :   };
          58                 :
          59                 :   /* short shouldLoad (in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeTypeGuess, in nsISupports aExtra); */
          60                 :   NS_SCRIPTABLE NS_IMETHOD ShouldLoad(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM) = 0;
          61                 :
          62                 :   /* short shouldProcess (in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeType, in nsISupports aExtra); */
          63                 :   NS_SCRIPTABLE NS_IMETHOD ShouldProcess(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeType, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM) = 0;
          64                 :
          65                 : };
          66                 :
          67                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPolicy, NS_ICONTENTPOLICY_IID)
          68                 :
          69                 : /* Use this macro when declaring classes that implement this interface. */
          70                 : #define NS_DECL_NSICONTENTPOLICY \
          71                 :   NS_SCRIPTABLE NS_IMETHOD ShouldLoad(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD ShouldProcess(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeType, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM);
          73                 :
          74                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          75                 : #define NS_FORWARD_NSICONTENTPOLICY(_to) \
          76                 :   NS_SCRIPTABLE NS_IMETHOD ShouldLoad(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM) { return _to ShouldLoad(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra, _retval); } \
          77                 :   NS_SCRIPTABLE NS_IMETHOD ShouldProcess(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeType, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM) { return _to ShouldProcess(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeType, aExtra, _retval); }
          78                 :
          79                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          80                 : #define NS_FORWARD_SAFE_NSICONTENTPOLICY(_to) \
          81                 :   NS_SCRIPTABLE NS_IMETHOD ShouldLoad(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShouldLoad(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra, _retval); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD ShouldProcess(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeType, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShouldProcess(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeType, aExtra, _retval); }
          83                 :
          84                 : #if 0
          85                 : /* Use the code below as a template for the implementation class for this interface. */
          86                 :
          87                 : /* Header file */
          88                 : class nsContentPolicy : public nsIContentPolicy
          89                 : {
          90                 : public:
          91                 :   NS_DECL_ISUPPORTS
          92                 :   NS_DECL_NSICONTENTPOLICY
          93                 :
          94                 :   nsContentPolicy();
          95                 :
          96                 : private:
          97                 :   ~nsContentPolicy();
          98                 :
          99                 : protected:
         100                 :   /* additional members */
         101                 : };
         102                 :
         103                 : /* Implementation file */
         104                 : NS_IMPL_ISUPPORTS1(nsContentPolicy, nsIContentPolicy)
         105                 :
         106                 : nsContentPolicy::nsContentPolicy()
         107                 : {
         108                 :   /* member initializers and constructor code */
         109                 : }
         110                 :
         111                 : nsContentPolicy::~nsContentPolicy()
         112                 : {
         113                 :   /* destructor code */
         114                 : }
         115                 :
         116                 : /* short shouldLoad (in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeTypeGuess, in nsISupports aExtra); */
         117                 : NS_IMETHODIMP nsContentPolicy::ShouldLoad(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM)
         118                 : {
         119                 :     return NS_ERROR_NOT_IMPLEMENTED;
         120                 : }
         121                 :
         122                 : /* short shouldProcess (in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in ACString aMimeType, in nsISupports aExtra); */
         123                 : NS_IMETHODIMP nsContentPolicy::ShouldProcess(PRUint32 aContentType, nsIURI *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext, const nsACString & aMimeType, nsISupports *aExtra, PRInt16 *_retval NS_OUTPARAM)
         124                 : {
         125                 :     return NS_ERROR_NOT_IMPLEMENTED;
         126                 : }
         127                 :
         128                 : /* End of implementation class template. */
         129                 : #endif
         130                 :
         131                 :
         132                 : #endif /* __gen_nsIContentPolicy_h__ */

Generated by: LCOV version 1.7