DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/modules/libjar/nsIJARChannel.idl
 */

#ifndef __gen_nsIJARChannel_h__
#define __gen_nsIJARChannel_h__


#ifndef __gen_nsIChannel_h__
#include "nsIChannel.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFile; /* forward declaration */

class nsIZipEntry; /* forward declaration */


/* starting interface:    nsIJARChannel */
#define NS_IJARCHANNEL_IID_STR "e72b179b-d5df-4d87-b5de-fd73a65c60f6"

#define NS_IJARCHANNEL_IID \
  {0xe72b179b, 0xd5df, 0x4d87, \
    { 0xb5, 0xde, 0xfd, 0x73, 0xa6, 0x5c, 0x60, 0xf6 }}

class NS_NO_VTABLE nsIJARChannel : public nsIChannel {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJARCHANNEL_IID)

  /* attribute nsIFile jarFile; */
  NS_IMETHOD GetJarFile(nsIFile **aJarFile) = 0;
  NS_IMETHOD SetJarFile(nsIFile *aJarFile) = 0;

  /* readonly attribute nsIZipEntry zipEntry; */
  NS_IMETHOD GetZipEntry(nsIZipEntry **aZipEntry) = 0;

  /* boolean ensureCached (); */
  NS_IMETHOD EnsureCached(bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIJARChannel, NS_IJARCHANNEL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIJARCHANNEL \
  NS_IMETHOD GetJarFile(nsIFile **aJarFile) override; \
  NS_IMETHOD SetJarFile(nsIFile *aJarFile) override; \
  NS_IMETHOD GetZipEntry(nsIZipEntry **aZipEntry) override; \
  NS_IMETHOD EnsureCached(bool *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIJARCHANNEL \
  nsresult GetJarFile(nsIFile **aJarFile); \
  nsresult SetJarFile(nsIFile *aJarFile); \
  nsresult GetZipEntry(nsIZipEntry **aZipEntry); \
  nsresult EnsureCached(bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIJARCHANNEL(_to) \
  NS_IMETHOD GetJarFile(nsIFile **aJarFile) override { return _to GetJarFile(aJarFile); } \
  NS_IMETHOD SetJarFile(nsIFile *aJarFile) override { return _to SetJarFile(aJarFile); } \
  NS_IMETHOD GetZipEntry(nsIZipEntry **aZipEntry) override { return _to GetZipEntry(aZipEntry); } \
  NS_IMETHOD EnsureCached(bool *_retval) override { return _to EnsureCached(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIJARCHANNEL(_to) \
  NS_IMETHOD GetJarFile(nsIFile **aJarFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJarFile(aJarFile); } \
  NS_IMETHOD SetJarFile(nsIFile *aJarFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJarFile(aJarFile); } \
  NS_IMETHOD GetZipEntry(nsIZipEntry **aZipEntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZipEntry(aZipEntry); } \
  NS_IMETHOD EnsureCached(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureCached(_retval); } 


#endif /* __gen_nsIJARChannel_h__ */