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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIJARChannel.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIJARChannel_h__
       6             : #define __gen_nsIJARChannel_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIChannel_h__
      10             : #include "nsIChannel.h"
      11             : #endif
      12             : 
      13             : #include "mozilla/Assertions.h"
      14             : #include "mozilla/DebugOnly.h"
      15             : 
      16             : /* For IDL files that don't want to include root IDL files. */
      17             : #ifndef NS_NO_VTABLE
      18             : #define NS_NO_VTABLE
      19             : #endif
      20             : class nsIFile; /* forward declaration */
      21             : 
      22             : class nsIZipEntry; /* forward declaration */
      23             : 
      24             : 
      25             : /* starting interface:    nsIJARChannel */
      26             : #define NS_IJARCHANNEL_IID_STR "e72b179b-d5df-4d87-b5de-fd73a65c60f6"
      27             : 
      28             : #define NS_IJARCHANNEL_IID \
      29             :   {0xe72b179b, 0xd5df, 0x4d87, \
      30             :     { 0xb5, 0xde, 0xfd, 0x73, 0xa6, 0x5c, 0x60, 0xf6 }}
      31             : 
      32           0 : class NS_NO_VTABLE nsIJARChannel : public nsIChannel {
      33             :  public:
      34             : 
      35             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJARCHANNEL_IID)
      36             : 
      37             :   /* [infallible] readonly attribute boolean isUnsafe; */
      38             :   NS_IMETHOD GetIsUnsafe(bool *aIsUnsafe) = 0;
      39           0 :   inline bool GetIsUnsafe()
      40             :   {
      41             :     bool result;
      42           0 :     mozilla::DebugOnly<nsresult> rv = GetIsUnsafe(&result);
      43           0 :     MOZ_ASSERT(NS_SUCCEEDED(rv));
      44           0 :     return result;
      45             :   }
      46             : 
      47             :   /* attribute nsIFile jarFile; */
      48             :   NS_IMETHOD GetJarFile(nsIFile * *aJarFile) = 0;
      49             :   NS_IMETHOD SetJarFile(nsIFile *aJarFile) = 0;
      50             : 
      51             :   /* readonly attribute nsIZipEntry zipEntry; */
      52             :   NS_IMETHOD GetZipEntry(nsIZipEntry * *aZipEntry) = 0;
      53             : 
      54             : };
      55             : 
      56             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIJARChannel, NS_IJARCHANNEL_IID)
      57             : 
      58             : /* Use this macro when declaring classes that implement this interface. */
      59             : #define NS_DECL_NSIJARCHANNEL \
      60             :   using nsIJARChannel::GetIsUnsafe; \
      61             :   NS_IMETHOD GetIsUnsafe(bool *aIsUnsafe) override; \
      62             :   NS_IMETHOD GetJarFile(nsIFile * *aJarFile) override; \
      63             :   NS_IMETHOD SetJarFile(nsIFile *aJarFile) override; \
      64             :   NS_IMETHOD GetZipEntry(nsIZipEntry * *aZipEntry) override; 
      65             : 
      66             : /* Use this macro when declaring the members of this interface when the
      67             :    class doesn't implement the interface. This is useful for forwarding. */
      68             : #define NS_DECL_NON_VIRTUAL_NSIJARCHANNEL \
      69             :   using nsIJARChannel::GetIsUnsafe; \
      70             :   nsresult GetIsUnsafe(bool *aIsUnsafe); \
      71             :   nsresult GetJarFile(nsIFile * *aJarFile); \
      72             :   nsresult SetJarFile(nsIFile *aJarFile); \
      73             :   nsresult GetZipEntry(nsIZipEntry * *aZipEntry); 
      74             : 
      75             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      76             : #define NS_FORWARD_NSIJARCHANNEL(_to) \
      77             :   using nsIJARChannel::GetIsUnsafe; \
      78             :   NS_IMETHOD GetIsUnsafe(bool *aIsUnsafe) override { return _to GetIsUnsafe(aIsUnsafe); } \
      79             :   NS_IMETHOD GetJarFile(nsIFile * *aJarFile) override { return _to GetJarFile(aJarFile); } \
      80             :   NS_IMETHOD SetJarFile(nsIFile *aJarFile) override { return _to SetJarFile(aJarFile); } \
      81             :   NS_IMETHOD GetZipEntry(nsIZipEntry * *aZipEntry) override { return _to GetZipEntry(aZipEntry); } 
      82             : 
      83             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      84             : #define NS_FORWARD_SAFE_NSIJARCHANNEL(_to) \
      85             :   NS_IMETHOD GetIsUnsafe(bool *aIsUnsafe) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsUnsafe(aIsUnsafe); } \
      86             :   NS_IMETHOD GetJarFile(nsIFile * *aJarFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJarFile(aJarFile); } \
      87             :   NS_IMETHOD SetJarFile(nsIFile *aJarFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJarFile(aJarFile); } \
      88             :   NS_IMETHOD GetZipEntry(nsIZipEntry * *aZipEntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZipEntry(aZipEntry); } 
      89             : 
      90             : #if 0
      91             : /* Use the code below as a template for the implementation class for this interface. */
      92             : 
      93             : /* Header file */
      94             : class nsJARChannel : public nsIJARChannel
      95             : {
      96             : public:
      97             :   NS_DECL_ISUPPORTS
      98             :   NS_DECL_NSIJARCHANNEL
      99             : 
     100             :   nsJARChannel();
     101             : 
     102             : private:
     103             :   ~nsJARChannel();
     104             : 
     105             : protected:
     106             :   /* additional members */
     107             : };
     108             : 
     109             : /* Implementation file */
     110             : NS_IMPL_ISUPPORTS(nsJARChannel, nsIJARChannel)
     111             : 
     112             : nsJARChannel::nsJARChannel()
     113             : {
     114             :   /* member initializers and constructor code */
     115             : }
     116             : 
     117             : nsJARChannel::~nsJARChannel()
     118             : {
     119             :   /* destructor code */
     120             : }
     121             : 
     122             : /* [infallible] readonly attribute boolean isUnsafe; */
     123             : NS_IMETHODIMP nsJARChannel::GetIsUnsafe(bool *aIsUnsafe)
     124             : {
     125             :     return NS_ERROR_NOT_IMPLEMENTED;
     126             : }
     127             : 
     128             : /* attribute nsIFile jarFile; */
     129             : NS_IMETHODIMP nsJARChannel::GetJarFile(nsIFile * *aJarFile)
     130             : {
     131             :     return NS_ERROR_NOT_IMPLEMENTED;
     132             : }
     133             : NS_IMETHODIMP nsJARChannel::SetJarFile(nsIFile *aJarFile)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* readonly attribute nsIZipEntry zipEntry; */
     139             : NS_IMETHODIMP nsJARChannel::GetZipEntry(nsIZipEntry * *aZipEntry)
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* End of implementation class template. */
     145             : #endif
     146             : 
     147             : 
     148             : #endif /* __gen_nsIJARChannel_h__ */

Generated by: LCOV version 1.13