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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/uriloader/base/nsIURIContentListener.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIURIContentListener_h__
       6                 : #define __gen_nsIURIContentListener_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 nsIRequest; /* forward declaration */
      18                 : 
      19                 : class nsIStreamListener; /* forward declaration */
      20                 : 
      21                 : class nsIURI; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIURIContentListener */
      25                 : #define NS_IURICONTENTLISTENER_IID_STR "94928ab3-8b63-11d3-989d-001083010e9b"
      26                 : 
      27                 : #define NS_IURICONTENTLISTENER_IID \
      28                 :   {0x94928ab3, 0x8b63, 0x11d3, \
      29                 :     { 0x98, 0x9d, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b }}
      30                 : 
      31             328 : class NS_NO_VTABLE NS_SCRIPTABLE nsIURIContentListener : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURICONTENTLISTENER_IID)
      35                 : 
      36                 :   /* boolean onStartURIOpen (in nsIURI aURI); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* boolean doContent (in string aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD DoContent(const char * aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* boolean isPreferred (in string aContentType, out string aDesiredContentType); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 :   /* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
      47                 : 
      48                 :   /* attribute nsISupports loadCookie; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) = 0;
      50                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) = 0;
      51                 : 
      52                 :   /* attribute nsIURIContentListener parentContentListener; */
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) = 0;
      54                 :   NS_SCRIPTABLE NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) = 0;
      55                 : 
      56                 : };
      57                 : 
      58                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIContentListener, NS_IURICONTENTLISTENER_IID)
      59                 : 
      60                 : /* Use this macro when declaring classes that implement this interface. */
      61                 : #define NS_DECL_NSIURICONTENTLISTENER \
      62                 :   NS_SCRIPTABLE NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval NS_OUTPARAM); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD DoContent(const char * aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener); 
      70                 : 
      71                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      72                 : #define NS_FORWARD_NSIURICONTENTLISTENER(_to) \
      73                 :   NS_SCRIPTABLE NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return _to OnStartURIOpen(aURI, _retval); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD DoContent(const char * aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to IsPreferred(aContentType, aDesiredContentType, _retval); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) { return _to GetLoadCookie(aLoadCookie); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) { return _to SetLoadCookie(aLoadCookie); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) { return _to GetParentContentListener(aParentContentListener); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) { return _to SetParentContentListener(aParentContentListener); } 
      81                 : 
      82                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      83                 : #define NS_FORWARD_SAFE_NSIURICONTENTLISTENER(_to) \
      84                 :   NS_SCRIPTABLE NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartURIOpen(aURI, _retval); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD DoContent(const char * aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPreferred(aContentType, aDesiredContentType, _retval); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadCookie(aLoadCookie); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentContentListener(aParentContentListener); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentContentListener(aParentContentListener); } 
      92                 : 
      93                 : #if 0
      94                 : /* Use the code below as a template for the implementation class for this interface. */
      95                 : 
      96                 : /* Header file */
      97                 : class nsURIContentListener : public nsIURIContentListener
      98                 : {
      99                 : public:
     100                 :   NS_DECL_ISUPPORTS
     101                 :   NS_DECL_NSIURICONTENTLISTENER
     102                 : 
     103                 :   nsURIContentListener();
     104                 : 
     105                 : private:
     106                 :   ~nsURIContentListener();
     107                 : 
     108                 : protected:
     109                 :   /* additional members */
     110                 : };
     111                 : 
     112                 : /* Implementation file */
     113                 : NS_IMPL_ISUPPORTS1(nsURIContentListener, nsIURIContentListener)
     114                 : 
     115                 : nsURIContentListener::nsURIContentListener()
     116                 : {
     117                 :   /* member initializers and constructor code */
     118                 : }
     119                 : 
     120                 : nsURIContentListener::~nsURIContentListener()
     121                 : {
     122                 :   /* destructor code */
     123                 : }
     124                 : 
     125                 : /* boolean onStartURIOpen (in nsIURI aURI); */
     126                 : NS_IMETHODIMP nsURIContentListener::OnStartURIOpen(nsIURI *aURI, bool *_retval NS_OUTPARAM)
     127                 : {
     128                 :     return NS_ERROR_NOT_IMPLEMENTED;
     129                 : }
     130                 : 
     131                 : /* boolean doContent (in string aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */
     132                 : NS_IMETHODIMP nsURIContentListener::DoContent(const char * aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler NS_OUTPARAM, bool *_retval NS_OUTPARAM)
     133                 : {
     134                 :     return NS_ERROR_NOT_IMPLEMENTED;
     135                 : }
     136                 : 
     137                 : /* boolean isPreferred (in string aContentType, out string aDesiredContentType); */
     138                 : NS_IMETHODIMP nsURIContentListener::IsPreferred(const char * aContentType, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM)
     139                 : {
     140                 :     return NS_ERROR_NOT_IMPLEMENTED;
     141                 : }
     142                 : 
     143                 : /* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */
     144                 : NS_IMETHODIMP nsURIContentListener::CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType NS_OUTPARAM, bool *_retval NS_OUTPARAM)
     145                 : {
     146                 :     return NS_ERROR_NOT_IMPLEMENTED;
     147                 : }
     148                 : 
     149                 : /* attribute nsISupports loadCookie; */
     150                 : NS_IMETHODIMP nsURIContentListener::GetLoadCookie(nsISupports * *aLoadCookie)
     151                 : {
     152                 :     return NS_ERROR_NOT_IMPLEMENTED;
     153                 : }
     154                 : NS_IMETHODIMP nsURIContentListener::SetLoadCookie(nsISupports *aLoadCookie)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* attribute nsIURIContentListener parentContentListener; */
     160                 : NS_IMETHODIMP nsURIContentListener::GetParentContentListener(nsIURIContentListener * *aParentContentListener)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : NS_IMETHODIMP nsURIContentListener::SetParentContentListener(nsIURIContentListener *aParentContentListener)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* End of implementation class template. */
     170                 : #endif
     171                 : 
     172                 : 
     173                 : #endif /* __gen_nsIURIContentListener_h__ */

Generated by: LCOV version 1.7