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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIURIWithPrincipal.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIURIWithPrincipal_h__
       6             : #define __gen_nsIURIWithPrincipal_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 nsIPrincipal; /* forward declaration */
      18             : 
      19             : class nsIURI; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIURIWithPrincipal */
      23             : #define NS_IURIWITHPRINCIPAL_IID_STR "626a5c0c-bfd8-4531-8b47-a8451b0daa33"
      24             : 
      25             : #define NS_IURIWITHPRINCIPAL_IID \
      26             :   {0x626a5c0c, 0xbfd8, 0x4531, \
      27             :     { 0x8b, 0x47, 0xa8, 0x45, 0x1b, 0x0d, 0xaa, 0x33 }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIURIWithPrincipal : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURIWITHPRINCIPAL_IID)
      33             : 
      34             :   /* readonly attribute nsIPrincipal principal; */
      35             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;
      36             : 
      37             :   /* readonly attribute nsIURI principalUri; */
      38             :   NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIWithPrincipal, NS_IURIWITHPRINCIPAL_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIURIWITHPRINCIPAL \
      46             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
      47             :   NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSIURIWITHPRINCIPAL \
      52             :   nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
      53             :   nsresult GetPrincipalUri(nsIURI * *aPrincipalUri); 
      54             : 
      55             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56             : #define NS_FORWARD_NSIURIWITHPRINCIPAL(_to) \
      57             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
      58             :   NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) override { return _to GetPrincipalUri(aPrincipalUri); } 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61             : #define NS_FORWARD_SAFE_NSIURIWITHPRINCIPAL(_to) \
      62             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
      63             :   NS_IMETHOD GetPrincipalUri(nsIURI * *aPrincipalUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipalUri(aPrincipalUri); } 
      64             : 
      65             : #if 0
      66             : /* Use the code below as a template for the implementation class for this interface. */
      67             : 
      68             : /* Header file */
      69             : class nsURIWithPrincipal : public nsIURIWithPrincipal
      70             : {
      71             : public:
      72             :   NS_DECL_ISUPPORTS
      73             :   NS_DECL_NSIURIWITHPRINCIPAL
      74             : 
      75             :   nsURIWithPrincipal();
      76             : 
      77             : private:
      78             :   ~nsURIWithPrincipal();
      79             : 
      80             : protected:
      81             :   /* additional members */
      82             : };
      83             : 
      84             : /* Implementation file */
      85             : NS_IMPL_ISUPPORTS(nsURIWithPrincipal, nsIURIWithPrincipal)
      86             : 
      87             : nsURIWithPrincipal::nsURIWithPrincipal()
      88             : {
      89             :   /* member initializers and constructor code */
      90             : }
      91             : 
      92             : nsURIWithPrincipal::~nsURIWithPrincipal()
      93             : {
      94             :   /* destructor code */
      95             : }
      96             : 
      97             : /* readonly attribute nsIPrincipal principal; */
      98             : NS_IMETHODIMP nsURIWithPrincipal::GetPrincipal(nsIPrincipal * *aPrincipal)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* readonly attribute nsIURI principalUri; */
     104             : NS_IMETHODIMP nsURIWithPrincipal::GetPrincipalUri(nsIURI * *aPrincipalUri)
     105             : {
     106             :     return NS_ERROR_NOT_IMPLEMENTED;
     107             : }
     108             : 
     109             : /* End of implementation class template. */
     110             : #endif
     111             : 
     112             : 
     113             : #endif /* __gen_nsIURIWithPrincipal_h__ */

Generated by: LCOV version 1.13