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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/caps/nsIAddonPolicyService.idl
 */

#ifndef __gen_nsIAddonPolicyService_h__
#define __gen_nsIAddonPolicyService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIURI_h__
#include "nsIURI.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIAddonPolicyService */
#define NS_IADDONPOLICYSERVICE_IID_STR "8a034ef9-9d14-4c5d-8319-06c1ab574baa"

#define NS_IADDONPOLICYSERVICE_IID \
  {0x8a034ef9, 0x9d14, 0x4c5d, \
    { 0x83, 0x19, 0x06, 0xc1, 0xab, 0x57, 0x4b, 0xaa }}

class NS_NO_VTABLE nsIAddonPolicyService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IADDONPOLICYSERVICE_IID)

  /* readonly attribute AString baseCSP; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBaseCSP(nsAString& aBaseCSP) = 0;

  /* readonly attribute AString defaultCSP; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultCSP(nsAString& aDefaultCSP) = 0;

  /* AString getAddonCSP (in AString aAddonId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAddonCSP(const nsAString& aAddonId, nsAString& _retval) = 0;

  /* ACString getGeneratedBackgroundPageUrl (in ACString aAddonId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString& aAddonId, nsACString& _retval) = 0;

  /* boolean addonHasPermission (in AString aAddonId, in AString aPerm); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddonHasPermission(const nsAString& aAddonId, const nsAString& aPerm, bool *_retval) = 0;

  /* boolean addonMayLoadURI (in AString aAddonId, in nsIURI aURI, [optional] in boolean aExplicit); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddonMayLoadURI(const nsAString& aAddonId, nsIURI *aURI, bool aExplicit, bool *_retval) = 0;

  /* AString getExtensionName (in AString aAddonId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetExtensionName(const nsAString& aAddonId, nsAString& _retval) = 0;

  /* boolean extensionURILoadableByAnyone (in nsIURI aURI); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) = 0;

  /* AString extensionURIToAddonId (in nsIURI aURI); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAddonPolicyService, NS_IADDONPOLICYSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDONPOLICYSERVICE \
  NS_IMETHOD GetBaseCSP(nsAString& aBaseCSP) override; \
  NS_IMETHOD GetDefaultCSP(nsAString& aDefaultCSP) override; \
  NS_IMETHOD GetAddonCSP(const nsAString& aAddonId, nsAString& _retval) override; \
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString& aAddonId, nsACString& _retval) override; \
  NS_IMETHOD AddonHasPermission(const nsAString& aAddonId, const nsAString& aPerm, bool *_retval) override; \
  NS_IMETHOD AddonMayLoadURI(const nsAString& aAddonId, nsIURI *aURI, bool aExplicit, bool *_retval) override; \
  NS_IMETHOD GetExtensionName(const nsAString& aAddonId, nsAString& _retval) override; \
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) override; \
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString& _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_NSIADDONPOLICYSERVICE \
  nsresult GetBaseCSP(nsAString& aBaseCSP); \
  nsresult GetDefaultCSP(nsAString& aDefaultCSP); \
  nsresult GetAddonCSP(const nsAString& aAddonId, nsAString& _retval); \
  nsresult GetGeneratedBackgroundPageUrl(const nsACString& aAddonId, nsACString& _retval); \
  nsresult AddonHasPermission(const nsAString& aAddonId, const nsAString& aPerm, bool *_retval); \
  nsresult AddonMayLoadURI(const nsAString& aAddonId, nsIURI *aURI, bool aExplicit, bool *_retval); \
  nsresult GetExtensionName(const nsAString& aAddonId, nsAString& _retval); \
  nsresult ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval); \
  nsresult ExtensionURIToAddonId(nsIURI *aURI, nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDONPOLICYSERVICE(_to) \
  NS_IMETHOD GetBaseCSP(nsAString& aBaseCSP) override { return _to GetBaseCSP(aBaseCSP); } \
  NS_IMETHOD GetDefaultCSP(nsAString& aDefaultCSP) override { return _to GetDefaultCSP(aDefaultCSP); } \
  NS_IMETHOD GetAddonCSP(const nsAString& aAddonId, nsAString& _retval) override { return _to GetAddonCSP(aAddonId, _retval); } \
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString& aAddonId, nsACString& _retval) override { return _to GetGeneratedBackgroundPageUrl(aAddonId, _retval); } \
  NS_IMETHOD AddonHasPermission(const nsAString& aAddonId, const nsAString& aPerm, bool *_retval) override { return _to AddonHasPermission(aAddonId, aPerm, _retval); } \
  NS_IMETHOD AddonMayLoadURI(const nsAString& aAddonId, nsIURI *aURI, bool aExplicit, bool *_retval) override { return _to AddonMayLoadURI(aAddonId, aURI, aExplicit, _retval); } \
  NS_IMETHOD GetExtensionName(const nsAString& aAddonId, nsAString& _retval) override { return _to GetExtensionName(aAddonId, _retval); } \
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) override { return _to ExtensionURILoadableByAnyone(aURI, _retval); } \
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString& _retval) override { return _to ExtensionURIToAddonId(aURI, _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_NSIADDONPOLICYSERVICE(_to) \
  NS_IMETHOD GetBaseCSP(nsAString& aBaseCSP) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseCSP(aBaseCSP); } \
  NS_IMETHOD GetDefaultCSP(nsAString& aDefaultCSP) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultCSP(aDefaultCSP); } \
  NS_IMETHOD GetAddonCSP(const nsAString& aAddonId, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonCSP(aAddonId, _retval); } \
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString& aAddonId, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGeneratedBackgroundPageUrl(aAddonId, _retval); } \
  NS_IMETHOD AddonHasPermission(const nsAString& aAddonId, const nsAString& aPerm, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddonHasPermission(aAddonId, aPerm, _retval); } \
  NS_IMETHOD AddonMayLoadURI(const nsAString& aAddonId, nsIURI *aURI, bool aExplicit, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddonMayLoadURI(aAddonId, aURI, aExplicit, _retval); } \
  NS_IMETHOD GetExtensionName(const nsAString& aAddonId, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExtensionName(aAddonId, _retval); } \
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtensionURILoadableByAnyone(aURI, _retval); } \
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtensionURIToAddonId(aURI, _retval); } 


/* starting interface:    nsIAddonContentPolicy */
#define NS_IADDONCONTENTPOLICY_IID_STR "7a4fe60b-9131-45f5-83f3-dc63b5d71a5d"

#define NS_IADDONCONTENTPOLICY_IID \
  {0x7a4fe60b, 0x9131, 0x45f5, \
    { 0x83, 0xf3, 0xdc, 0x63, 0xb5, 0xd7, 0x1a, 0x5d }}

class NS_NO_VTABLE nsIAddonContentPolicy : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IADDONCONTENTPOLICY_IID)

  /* AString validateAddonCSP (in AString aPolicyString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ValidateAddonCSP(const nsAString& aPolicyString, nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAddonContentPolicy, NS_IADDONCONTENTPOLICY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDONCONTENTPOLICY \
  NS_IMETHOD ValidateAddonCSP(const nsAString& aPolicyString, nsAString& _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_NSIADDONCONTENTPOLICY \
  nsresult ValidateAddonCSP(const nsAString& aPolicyString, nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDONCONTENTPOLICY(_to) \
  NS_IMETHOD ValidateAddonCSP(const nsAString& aPolicyString, nsAString& _retval) override { return _to ValidateAddonCSP(aPolicyString, _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_NSIADDONCONTENTPOLICY(_to) \
  NS_IMETHOD ValidateAddonCSP(const nsAString& aPolicyString, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateAddonCSP(aPolicyString, _retval); } 


#endif /* __gen_nsIAddonPolicyService_h__ */