LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIURIContentListener.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/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 "10a28f38-32e8-4c63-8aa1-12eaaebc369a"
      26             : 
      27             : #define NS_IURICONTENTLISTENER_IID \
      28             :   {0x10a28f38, 0x32e8, 0x4c63, \
      29             :     { 0x8a, 0xa1, 0x12, 0xea, 0xae, 0xbc, 0x36, 0x9a }}
      30             : 
      31           5 : class NS_NO_VTABLE nsIURIContentListener : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURICONTENTLISTENER_IID)
      35             : 
      36             :   /* boolean onStartURIOpen (in nsIURI aURI); */
      37             :   NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) = 0;
      38             : 
      39             :   /* boolean doContent (in ACString aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */
      40             :   NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) = 0;
      41             : 
      42             :   /* boolean isPreferred (in string aContentType, out string aDesiredContentType); */
      43             :   NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) = 0;
      44             : 
      45             :   /* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */
      46             :   NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) = 0;
      47             : 
      48             :   /* attribute nsISupports loadCookie; */
      49             :   NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) = 0;
      50             :   NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) = 0;
      51             : 
      52             :   /* attribute nsIURIContentListener parentContentListener; */
      53             :   NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) = 0;
      54             :   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_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) override; \
      63             :   NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) override; \
      64             :   NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) override; \
      65             :   NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) override; \
      66             :   NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) override; \
      67             :   NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) override; \
      68             :   NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) override; \
      69             :   NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) override; 
      70             : 
      71             : /* Use this macro when declaring the members of this interface when the
      72             :    class doesn't implement the interface. This is useful for forwarding. */
      73             : #define NS_DECL_NON_VIRTUAL_NSIURICONTENTLISTENER \
      74             :   nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval); \
      75             :   nsresult DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval); \
      76             :   nsresult IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval); \
      77             :   nsresult CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval); \
      78             :   nsresult GetLoadCookie(nsISupports * *aLoadCookie); \
      79             :   nsresult SetLoadCookie(nsISupports *aLoadCookie); \
      80             :   nsresult GetParentContentListener(nsIURIContentListener * *aParentContentListener); \
      81             :   nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener); 
      82             : 
      83             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      84             : #define NS_FORWARD_NSIURICONTENTLISTENER(_to) \
      85             :   NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) override { return _to OnStartURIOpen(aURI, _retval); } \
      86             :   NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) override { return _to DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \
      87             :   NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) override { return _to IsPreferred(aContentType, aDesiredContentType, _retval); } \
      88             :   NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) override { return _to CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \
      89             :   NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) override { return _to GetLoadCookie(aLoadCookie); } \
      90             :   NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) override { return _to SetLoadCookie(aLoadCookie); } \
      91             :   NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) override { return _to GetParentContentListener(aParentContentListener); } \
      92             :   NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) override { return _to SetParentContentListener(aParentContentListener); } 
      93             : 
      94             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      95             : #define NS_FORWARD_SAFE_NSIURICONTENTLISTENER(_to) \
      96             :   NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartURIOpen(aURI, _retval); } \
      97             :   NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \
      98             :   NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPreferred(aContentType, aDesiredContentType, _retval); } \
      99             :   NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \
     100             :   NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadCookie(aLoadCookie); } \
     101             :   NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \
     102             :   NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentContentListener(aParentContentListener); } \
     103             :   NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentContentListener(aParentContentListener); } 
     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 nsURIContentListener : public nsIURIContentListener
     110             : {
     111             : public:
     112             :   NS_DECL_ISUPPORTS
     113             :   NS_DECL_NSIURICONTENTLISTENER
     114             : 
     115             :   nsURIContentListener();
     116             : 
     117             : private:
     118             :   ~nsURIContentListener();
     119             : 
     120             : protected:
     121             :   /* additional members */
     122             : };
     123             : 
     124             : /* Implementation file */
     125             : NS_IMPL_ISUPPORTS(nsURIContentListener, nsIURIContentListener)
     126             : 
     127             : nsURIContentListener::nsURIContentListener()
     128             : {
     129             :   /* member initializers and constructor code */
     130             : }
     131             : 
     132             : nsURIContentListener::~nsURIContentListener()
     133             : {
     134             :   /* destructor code */
     135             : }
     136             : 
     137             : /* boolean onStartURIOpen (in nsIURI aURI); */
     138             : NS_IMETHODIMP nsURIContentListener::OnStartURIOpen(nsIURI *aURI, bool *_retval)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* boolean doContent (in ACString aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */
     144             : NS_IMETHODIMP nsURIContentListener::DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* boolean isPreferred (in string aContentType, out string aDesiredContentType); */
     150             : NS_IMETHODIMP nsURIContentListener::IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */
     156             : NS_IMETHODIMP nsURIContentListener::CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* attribute nsISupports loadCookie; */
     162             : NS_IMETHODIMP nsURIContentListener::GetLoadCookie(nsISupports * *aLoadCookie)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : NS_IMETHODIMP nsURIContentListener::SetLoadCookie(nsISupports *aLoadCookie)
     167             : {
     168             :     return NS_ERROR_NOT_IMPLEMENTED;
     169             : }
     170             : 
     171             : /* attribute nsIURIContentListener parentContentListener; */
     172             : NS_IMETHODIMP nsURIContentListener::GetParentContentListener(nsIURIContentListener * *aParentContentListener)
     173             : {
     174             :     return NS_ERROR_NOT_IMPLEMENTED;
     175             : }
     176             : NS_IMETHODIMP nsURIContentListener::SetParentContentListener(nsIURIContentListener *aParentContentListener)
     177             : {
     178             :     return NS_ERROR_NOT_IMPLEMENTED;
     179             : }
     180             : 
     181             : /* End of implementation class template. */
     182             : #endif
     183             : 
     184             : 
     185             : #endif /* __gen_nsIURIContentListener_h__ */

Generated by: LCOV version 1.13