LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIURILoader.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 "8762c4e7-be35-4958-9b81-a05685bb516d"
      38             : 
      39             : #define NS_IURILOADER_IID \
      40             :   {0x8762c4e7, 0xbe35, 0x4958, \
      41             :     { 0x9b, 0x81, 0xa0, 0x56, 0x85, 0xbb, 0x51, 0x6d }}
      42             : 
      43           2 : class NS_NO_VTABLE 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_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) = 0;
      55             : 
      56             :   /* void unRegisterContentListener (in nsIURIContentListener aContentListener); */
      57             :   NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) = 0;
      58             : 
      59             :   /* void openURI (in nsIChannel aChannel, in unsigned long aFlags, in nsIInterfaceRequestor aWindowContext); */
      60             :   NS_IMETHOD OpenURI(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext) = 0;
      61             : 
      62             :   /* nsIStreamListener openChannel (in nsIChannel aChannel, in unsigned long aFlags, in nsIInterfaceRequestor aWindowContext); */
      63             :   NS_IMETHOD OpenChannel(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval) = 0;
      64             : 
      65             :   /* void stop (in nsISupports aLoadCookie); */
      66             :   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_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) override; \
      75             :   NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) override; \
      76             :   NS_IMETHOD OpenURI(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext) override; \
      77             :   NS_IMETHOD OpenChannel(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval) override; \
      78             :   NS_IMETHOD Stop(nsISupports *aLoadCookie) override; 
      79             : 
      80             : /* Use this macro when declaring the members of this interface when the
      81             :    class doesn't implement the interface. This is useful for forwarding. */
      82             : #define NS_DECL_NON_VIRTUAL_NSIURILOADER \
      83             :   nsresult RegisterContentListener(nsIURIContentListener *aContentListener); \
      84             :   nsresult UnRegisterContentListener(nsIURIContentListener *aContentListener); \
      85             :   nsresult OpenURI(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext); \
      86             :   nsresult OpenChannel(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval); \
      87             :   nsresult Stop(nsISupports *aLoadCookie); 
      88             : 
      89             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      90             : #define NS_FORWARD_NSIURILOADER(_to) \
      91             :   NS_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) override { return _to RegisterContentListener(aContentListener); } \
      92             :   NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) override { return _to UnRegisterContentListener(aContentListener); } \
      93             :   NS_IMETHOD OpenURI(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext) override { return _to OpenURI(aChannel, aFlags, aWindowContext); } \
      94             :   NS_IMETHOD OpenChannel(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval) override { return _to OpenChannel(aChannel, aFlags, aWindowContext, _retval); } \
      95             :   NS_IMETHOD Stop(nsISupports *aLoadCookie) override { return _to Stop(aLoadCookie); } 
      96             : 
      97             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      98             : #define NS_FORWARD_SAFE_NSIURILOADER(_to) \
      99             :   NS_IMETHOD RegisterContentListener(nsIURIContentListener *aContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterContentListener(aContentListener); } \
     100             :   NS_IMETHOD UnRegisterContentListener(nsIURIContentListener *aContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnRegisterContentListener(aContentListener); } \
     101             :   NS_IMETHOD OpenURI(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenURI(aChannel, aFlags, aWindowContext); } \
     102             :   NS_IMETHOD OpenChannel(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenChannel(aChannel, aFlags, aWindowContext, _retval); } \
     103             :   NS_IMETHOD Stop(nsISupports *aLoadCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(aLoadCookie); } 
     104             : 
     105             : #if 0
     106             : /* Use the code below as a template for the implementation class for this interface. */
     107             : 
     108             : /* Header file */
     109             : class nsURILoader : public nsIURILoader
     110             : {
     111             : public:
     112             :   NS_DECL_ISUPPORTS
     113             :   NS_DECL_NSIURILOADER
     114             : 
     115             :   nsURILoader();
     116             : 
     117             : private:
     118             :   ~nsURILoader();
     119             : 
     120             : protected:
     121             :   /* additional members */
     122             : };
     123             : 
     124             : /* Implementation file */
     125             : NS_IMPL_ISUPPORTS(nsURILoader, nsIURILoader)
     126             : 
     127             : nsURILoader::nsURILoader()
     128             : {
     129             :   /* member initializers and constructor code */
     130             : }
     131             : 
     132             : nsURILoader::~nsURILoader()
     133             : {
     134             :   /* destructor code */
     135             : }
     136             : 
     137             : /* void registerContentListener (in nsIURIContentListener aContentListener); */
     138             : NS_IMETHODIMP nsURILoader::RegisterContentListener(nsIURIContentListener *aContentListener)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* void unRegisterContentListener (in nsIURIContentListener aContentListener); */
     144             : NS_IMETHODIMP nsURILoader::UnRegisterContentListener(nsIURIContentListener *aContentListener)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* void openURI (in nsIChannel aChannel, in unsigned long aFlags, in nsIInterfaceRequestor aWindowContext); */
     150             : NS_IMETHODIMP nsURILoader::OpenURI(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* nsIStreamListener openChannel (in nsIChannel aChannel, in unsigned long aFlags, in nsIInterfaceRequestor aWindowContext); */
     156             : NS_IMETHODIMP nsURILoader::OpenChannel(nsIChannel *aChannel, uint32_t aFlags, nsIInterfaceRequestor *aWindowContext, nsIStreamListener * *_retval)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* void stop (in nsISupports aLoadCookie); */
     162             : NS_IMETHODIMP nsURILoader::Stop(nsISupports *aLoadCookie)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* End of implementation class template. */
     168             : #endif
     169             : 
     170             : 
     171             : #endif /* __gen_nsIURILoader_h__ */

Generated by: LCOV version 1.13