LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIURILoader.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/nsIURILoader.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIURILoader_h__
       6                 : #define __gen_nsIURILoader_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 nsIURIContentListener; /* forward declaration */
      18                 : 
      19                 : class nsIURI; /* forward declaration */
      20                 : 
      21                 : class nsILoadGroup; /* forward declaration */
      22                 : 
      23                 : class nsIProgressEventSink; /* forward declaration */
      24                 : 
      25                 : class nsIChannel; /* forward declaration */
      26                 : 
      27                 : class nsIRequest; /* forward declaration */
      28                 : 
      29                 : class nsIStreamListener; /* forward declaration */
      30                 : 
      31                 : class nsIInputStream; /* forward declaration */
      32                 : 
      33                 : class nsIInterfaceRequestor; /* forward declaration */
      34                 : 
      35                 : 
      36                 : /* starting interface:    nsIURILoader */
      37                 : #define NS_IURILOADER_IID_STR "2f7e8051-f1c9-4bcc-8584-9cfd5849e343"
      38                 : 
      39                 : #define NS_IURILOADER_IID \
      40                 :   {0x2f7e8051, 0xf1c9, 0x4bcc, \
      41                 :     { 0x85, 0x84, 0x9c, 0xfd, 0x58, 0x49, 0xe3, 0x43 }}
      42                 : 
      43             328 : class NS_NO_VTABLE NS_SCRIPTABLE nsIURILoader : public nsISupports {
      44                 :  public: 
      45                 : 
      46                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURILOADER_IID)
      47                 : 
      48                 :   enum {
      49                 :     IS_CONTENT_PREFERRED = 1U,
      50                 :     DONT_RETARGET = 2U
      51                 :   };
      52                 : 
      53                 :   /* void registerContentListener (in nsIURIContentListener aContentListener); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) = 0;
      55                 : 
      56                 :   /* void unRegisterContentListener (in nsIURIContentListener aContentListener); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) = 0;
      58                 : 
      59                 :   /* void openURI (in nsIChannel aChannel, in boolean aIsContentPreferred, in nsIInterfaceRequestor aWindowContext); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD OpenURI(nsIChannel *aChannel, bool aIsContentPreferred, nsIInterfaceRequestor *aWindowContext) = 0;
      61                 : 
      62                 :   /* nsIStreamListener openChannel (in nsIChannel aChannel, in unsigned long aFlags, in nsIInterfaceRequestor aWindowContext); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD OpenChannel(nsIChannel *aChannel, PRUint32 aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval NS_OUTPARAM) = 0;
      64                 : 
      65                 :   /* void stop (in nsISupports aLoadCookie); */
      66                 :   NS_SCRIPTABLE NS_IMETHOD Stop(nsISupports *aLoadCookie) = 0;
      67                 : 
      68                 : };
      69                 : 
      70                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURILoader, NS_IURILOADER_IID)
      71                 : 
      72                 : /* Use this macro when declaring classes that implement this interface. */
      73                 : #define NS_DECL_NSIURILOADER \
      74                 :   NS_SCRIPTABLE NS_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD OpenURI(nsIChannel *aChannel, bool aIsContentPreferred, nsIInterfaceRequestor *aWindowContext); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD OpenChannel(nsIChannel *aChannel, PRUint32 aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval NS_OUTPARAM); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD Stop(nsISupports *aLoadCookie); 
      79                 : 
      80                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      81                 : #define NS_FORWARD_NSIURILOADER(_to) \
      82                 :   NS_SCRIPTABLE NS_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) { return _to RegisterContentListener(aContentListener); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) { return _to UnRegisterContentListener(aContentListener); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD OpenURI(nsIChannel *aChannel, bool aIsContentPreferred, nsIInterfaceRequestor *aWindowContext) { return _to OpenURI(aChannel, aIsContentPreferred, aWindowContext); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD OpenChannel(nsIChannel *aChannel, PRUint32 aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval NS_OUTPARAM) { return _to OpenChannel(aChannel, aFlags, aWindowContext, _retval); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD Stop(nsISupports *aLoadCookie) { return _to Stop(aLoadCookie); } 
      87                 : 
      88                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      89                 : #define NS_FORWARD_SAFE_NSIURILOADER(_to) \
      90                 :   NS_SCRIPTABLE NS_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterContentListener(aContentListener); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnRegisterContentListener(aContentListener); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD OpenURI(nsIChannel *aChannel, bool aIsContentPreferred, nsIInterfaceRequestor *aWindowContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenURI(aChannel, aIsContentPreferred, aWindowContext); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD OpenChannel(nsIChannel *aChannel, PRUint32 aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenChannel(aChannel, aFlags, aWindowContext, _retval); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD Stop(nsISupports *aLoadCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(aLoadCookie); } 
      95                 : 
      96                 : #if 0
      97                 : /* Use the code below as a template for the implementation class for this interface. */
      98                 : 
      99                 : /* Header file */
     100                 : class nsURILoader : public nsIURILoader
     101                 : {
     102                 : public:
     103                 :   NS_DECL_ISUPPORTS
     104                 :   NS_DECL_NSIURILOADER
     105                 : 
     106                 :   nsURILoader();
     107                 : 
     108                 : private:
     109                 :   ~nsURILoader();
     110                 : 
     111                 : protected:
     112                 :   /* additional members */
     113                 : };
     114                 : 
     115                 : /* Implementation file */
     116                 : NS_IMPL_ISUPPORTS1(nsURILoader, nsIURILoader)
     117                 : 
     118                 : nsURILoader::nsURILoader()
     119                 : {
     120                 :   /* member initializers and constructor code */
     121                 : }
     122                 : 
     123                 : nsURILoader::~nsURILoader()
     124                 : {
     125                 :   /* destructor code */
     126                 : }
     127                 : 
     128                 : /* void registerContentListener (in nsIURIContentListener aContentListener); */
     129                 : NS_IMETHODIMP nsURILoader::RegisterContentListener(nsIURIContentListener *aContentListener)
     130                 : {
     131                 :     return NS_ERROR_NOT_IMPLEMENTED;
     132                 : }
     133                 : 
     134                 : /* void unRegisterContentListener (in nsIURIContentListener aContentListener); */
     135                 : NS_IMETHODIMP nsURILoader::UnRegisterContentListener(nsIURIContentListener *aContentListener)
     136                 : {
     137                 :     return NS_ERROR_NOT_IMPLEMENTED;
     138                 : }
     139                 : 
     140                 : /* void openURI (in nsIChannel aChannel, in boolean aIsContentPreferred, in nsIInterfaceRequestor aWindowContext); */
     141                 : NS_IMETHODIMP nsURILoader::OpenURI(nsIChannel *aChannel, bool aIsContentPreferred, nsIInterfaceRequestor *aWindowContext)
     142                 : {
     143                 :     return NS_ERROR_NOT_IMPLEMENTED;
     144                 : }
     145                 : 
     146                 : /* nsIStreamListener openChannel (in nsIChannel aChannel, in unsigned long aFlags, in nsIInterfaceRequestor aWindowContext); */
     147                 : NS_IMETHODIMP nsURILoader::OpenChannel(nsIChannel *aChannel, PRUint32 aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval NS_OUTPARAM)
     148                 : {
     149                 :     return NS_ERROR_NOT_IMPLEMENTED;
     150                 : }
     151                 : 
     152                 : /* void stop (in nsISupports aLoadCookie); */
     153                 : NS_IMETHODIMP nsURILoader::Stop(nsISupports *aLoadCookie)
     154                 : {
     155                 :     return NS_ERROR_NOT_IMPLEMENTED;
     156                 : }
     157                 : 
     158                 : /* End of implementation class template. */
     159                 : #endif
     160                 : 
     161                 : 
     162                 : #endif /* __gen_nsIURILoader_h__ */

Generated by: LCOV version 1.7