LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - mozIThirdPartyUtil.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/mozIThirdPartyUtil.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIThirdPartyUtil_h__
       6             : #define __gen_mozIThirdPartyUtil_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 mozIDOMWindowProxy; /* forward declaration */
      20             : 
      21             : class nsIChannel; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    mozIThirdPartyUtil */
      25             : #define MOZITHIRDPARTYUTIL_IID_STR "fd82700e-ffb4-4932-b7d6-08f0b5697dda"
      26             : 
      27             : #define MOZITHIRDPARTYUTIL_IID \
      28             :   {0xfd82700e, 0xffb4, 0x4932, \
      29             :     { 0xb7, 0xd6, 0x08, 0xf0, 0xb5, 0x69, 0x7d, 0xda }}
      30             : 
      31           2 : class NS_NO_VTABLE mozIThirdPartyUtil : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZITHIRDPARTYUTIL_IID)
      35             : 
      36             :   /* boolean isThirdPartyURI (in nsIURI aFirstURI, in nsIURI aSecondURI); */
      37             :   NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval) = 0;
      38             : 
      39             :   /* boolean isThirdPartyWindow (in mozIDOMWindowProxy aWindow, [optional] in nsIURI aURI); */
      40             :   NS_IMETHOD IsThirdPartyWindow(mozIDOMWindowProxy *aWindow, nsIURI *aURI, bool *_retval) = 0;
      41             : 
      42             :   /* boolean isThirdPartyChannel (in nsIChannel aChannel, [optional] in nsIURI aURI); */
      43             :   NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval) = 0;
      44             : 
      45             :   /* AUTF8String getBaseDomain (in nsIURI aHostURI); */
      46             :   NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval) = 0;
      47             : 
      48             :   /* nsIURI getURIFromWindow (in mozIDOMWindowProxy aWindow); */
      49             :   NS_IMETHOD GetURIFromWindow(mozIDOMWindowProxy *aWindow, nsIURI * *_retval) = 0;
      50             : 
      51             :   /* mozIDOMWindowProxy getTopWindowForChannel (in nsIChannel aChannel); */
      52             :   NS_IMETHOD GetTopWindowForChannel(nsIChannel *aChannel, mozIDOMWindowProxy * *_retval) = 0;
      53             : 
      54             : };
      55             : 
      56             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIThirdPartyUtil, MOZITHIRDPARTYUTIL_IID)
      57             : 
      58             : /* Use this macro when declaring classes that implement this interface. */
      59             : #define NS_DECL_MOZITHIRDPARTYUTIL \
      60             :   NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval) override; \
      61             :   NS_IMETHOD IsThirdPartyWindow(mozIDOMWindowProxy *aWindow, nsIURI *aURI, bool *_retval) override; \
      62             :   NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval) override; \
      63             :   NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval) override; \
      64             :   NS_IMETHOD GetURIFromWindow(mozIDOMWindowProxy *aWindow, nsIURI * *_retval) override; \
      65             :   NS_IMETHOD GetTopWindowForChannel(nsIChannel *aChannel, mozIDOMWindowProxy * *_retval) override; 
      66             : 
      67             : /* Use this macro when declaring the members of this interface when the
      68             :    class doesn't implement the interface. This is useful for forwarding. */
      69             : #define NS_DECL_NON_VIRTUAL_MOZITHIRDPARTYUTIL \
      70             :   nsresult IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval); \
      71             :   nsresult IsThirdPartyWindow(mozIDOMWindowProxy *aWindow, nsIURI *aURI, bool *_retval); \
      72             :   nsresult IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval); \
      73             :   nsresult GetBaseDomain(nsIURI *aHostURI, nsACString & _retval); \
      74             :   nsresult GetURIFromWindow(mozIDOMWindowProxy *aWindow, nsIURI * *_retval); \
      75             :   nsresult GetTopWindowForChannel(nsIChannel *aChannel, mozIDOMWindowProxy * *_retval); 
      76             : 
      77             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      78             : #define NS_FORWARD_MOZITHIRDPARTYUTIL(_to) \
      79             :   NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval) override { return _to IsThirdPartyURI(aFirstURI, aSecondURI, _retval); } \
      80             :   NS_IMETHOD IsThirdPartyWindow(mozIDOMWindowProxy *aWindow, nsIURI *aURI, bool *_retval) override { return _to IsThirdPartyWindow(aWindow, aURI, _retval); } \
      81             :   NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval) override { return _to IsThirdPartyChannel(aChannel, aURI, _retval); } \
      82             :   NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval) override { return _to GetBaseDomain(aHostURI, _retval); } \
      83             :   NS_IMETHOD GetURIFromWindow(mozIDOMWindowProxy *aWindow, nsIURI * *_retval) override { return _to GetURIFromWindow(aWindow, _retval); } \
      84             :   NS_IMETHOD GetTopWindowForChannel(nsIChannel *aChannel, mozIDOMWindowProxy * *_retval) override { return _to GetTopWindowForChannel(aChannel, _retval); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_MOZITHIRDPARTYUTIL(_to) \
      88             :   NS_IMETHOD IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsThirdPartyURI(aFirstURI, aSecondURI, _retval); } \
      89             :   NS_IMETHOD IsThirdPartyWindow(mozIDOMWindowProxy *aWindow, nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsThirdPartyWindow(aWindow, aURI, _retval); } \
      90             :   NS_IMETHOD IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsThirdPartyChannel(aChannel, aURI, _retval); } \
      91             :   NS_IMETHOD GetBaseDomain(nsIURI *aHostURI, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseDomain(aHostURI, _retval); } \
      92             :   NS_IMETHOD GetURIFromWindow(mozIDOMWindowProxy *aWindow, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIFromWindow(aWindow, _retval); } \
      93             :   NS_IMETHOD GetTopWindowForChannel(nsIChannel *aChannel, mozIDOMWindowProxy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopWindowForChannel(aChannel, _retval); } 
      94             : 
      95             : #if 0
      96             : /* Use the code below as a template for the implementation class for this interface. */
      97             : 
      98             : /* Header file */
      99             : class _MYCLASS_ : public mozIThirdPartyUtil
     100             : {
     101             : public:
     102             :   NS_DECL_ISUPPORTS
     103             :   NS_DECL_MOZITHIRDPARTYUTIL
     104             : 
     105             :   _MYCLASS_();
     106             : 
     107             : private:
     108             :   ~_MYCLASS_();
     109             : 
     110             : protected:
     111             :   /* additional members */
     112             : };
     113             : 
     114             : /* Implementation file */
     115             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIThirdPartyUtil)
     116             : 
     117             : _MYCLASS_::_MYCLASS_()
     118             : {
     119             :   /* member initializers and constructor code */
     120             : }
     121             : 
     122             : _MYCLASS_::~_MYCLASS_()
     123             : {
     124             :   /* destructor code */
     125             : }
     126             : 
     127             : /* boolean isThirdPartyURI (in nsIURI aFirstURI, in nsIURI aSecondURI); */
     128             : NS_IMETHODIMP _MYCLASS_::IsThirdPartyURI(nsIURI *aFirstURI, nsIURI *aSecondURI, bool *_retval)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* boolean isThirdPartyWindow (in mozIDOMWindowProxy aWindow, [optional] in nsIURI aURI); */
     134             : NS_IMETHODIMP _MYCLASS_::IsThirdPartyWindow(mozIDOMWindowProxy *aWindow, nsIURI *aURI, bool *_retval)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* boolean isThirdPartyChannel (in nsIChannel aChannel, [optional] in nsIURI aURI); */
     140             : NS_IMETHODIMP _MYCLASS_::IsThirdPartyChannel(nsIChannel *aChannel, nsIURI *aURI, bool *_retval)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* AUTF8String getBaseDomain (in nsIURI aHostURI); */
     146             : NS_IMETHODIMP _MYCLASS_::GetBaseDomain(nsIURI *aHostURI, nsACString & _retval)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* nsIURI getURIFromWindow (in mozIDOMWindowProxy aWindow); */
     152             : NS_IMETHODIMP _MYCLASS_::GetURIFromWindow(mozIDOMWindowProxy *aWindow, nsIURI * *_retval)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* mozIDOMWindowProxy getTopWindowForChannel (in nsIChannel aChannel); */
     158             : NS_IMETHODIMP _MYCLASS_::GetTopWindowForChannel(nsIChannel *aChannel, mozIDOMWindowProxy * *_retval)
     159             : {
     160             :     return NS_ERROR_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163             : /* End of implementation class template. */
     164             : #endif
     165             : 
     166             : /**
     167             :  * The mozIThirdPartyUtil implementation is an XPCOM service registered
     168             :  * under the ContractID:
     169             :  */
     170             : #define THIRDPARTYUTIL_CONTRACTID "@mozilla.org/thirdpartyutil;1"
     171             : 
     172             : #endif /* __gen_mozIThirdPartyUtil_h__ */

Generated by: LCOV version 1.13