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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/cleardata/nsIClearDataService.idl
 */

#ifndef __gen_nsIClearDataService_h__
#define __gen_nsIClearDataService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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
class nsIPrincipal; /* forward declaration */

class nsIClearDataCallback; /* forward declaration */


/* starting interface:    nsIClearDataService */
#define NS_ICLEARDATASERVICE_IID_STR "6ef3ef16-a502-4576-9fb4-919f1c40bf61"

#define NS_ICLEARDATASERVICE_IID \
  {0x6ef3ef16, 0xa502, 0x4576, \
    { 0x9f, 0xb4, 0x91, 0x9f, 0x1c, 0x40, 0xbf, 0x61 }}

class NS_NO_VTABLE nsIClearDataService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLEARDATASERVICE_IID)

  /* void deleteDataFromHost (in AUTF8String aHost, in bool aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteDataFromHost(const nsACString& aHost, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) = 0;

  /* void deleteDataFromPrincipal (in nsIPrincipal aPrincipal, in bool aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteDataFromPrincipal(nsIPrincipal *aPrincipal, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) = 0;

  /* void deleteDataInTimeRange (in PRTime aFrom, in PRTime aTo, in bool aIsUserRequest, in uint32_t aFlags, in nsIClearDataCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteDataInTimeRange(PRTime aFrom, PRTime aTo, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) = 0;

  /* void deleteData (in uint32_t aFlags, in nsIClearDataCallback aCallback); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteData(uint32_t aFlags, nsIClearDataCallback *aCallback) = 0;

  enum {
    CLEAR_COOKIES = 1U,
    CLEAR_NETWORK_CACHE = 2U,
    CLEAR_IMAGE_CACHE = 4U,
    CLEAR_PLUGIN_DATA = 8U,
    CLEAR_DOWNLOADS = 16U,
    CLEAR_PASSWORDS = 32U,
    CLEAR_MEDIA_DEVICES = 64U,
    CLEAR_APPCACHE = 128U,
    CLEAR_DOM_QUOTA = 256U,
    CLEAR_PREDICTOR_NETWORK_DATA = 512U,
    CLEAR_DOM_PUSH_NOTIFICATIONS = 1024U,
    CLEAR_HISTORY = 2048U,
    CLEAR_SESSION_HISTORY = 4096U,
    CLEAR_AUTH_TOKENS = 8192U,
    CLEAR_AUTH_CACHE = 16384U,
    CLEAR_PERMISSIONS = 32768U,
    CLEAR_CONTENT_PREFERENCES = 65536U,
    CLEAR_SECURITY_SETTINGS = 131072U,
    CLEAR_EME = 262144U,
    CLEAR_ALL = 16777215U,
    CLEAR_ALL_CACHES = 6U,
    CLEAR_DOM_STORAGES = 1408U,
    CLEAR_FORGET_ABOUT_SITE = 495551U
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIClearDataService, NS_ICLEARDATASERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICLEARDATASERVICE \
  NS_IMETHOD DeleteDataFromHost(const nsACString& aHost, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override; \
  NS_IMETHOD DeleteDataFromPrincipal(nsIPrincipal *aPrincipal, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override; \
  NS_IMETHOD DeleteDataInTimeRange(PRTime aFrom, PRTime aTo, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override; \
  NS_IMETHOD DeleteData(uint32_t aFlags, nsIClearDataCallback *aCallback) 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_NSICLEARDATASERVICE \
  nsresult DeleteDataFromHost(const nsACString& aHost, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback); \
  nsresult DeleteDataFromPrincipal(nsIPrincipal *aPrincipal, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback); \
  nsresult DeleteDataInTimeRange(PRTime aFrom, PRTime aTo, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback); \
  nsresult DeleteData(uint32_t aFlags, nsIClearDataCallback *aCallback); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICLEARDATASERVICE(_to) \
  NS_IMETHOD DeleteDataFromHost(const nsACString& aHost, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override { return _to DeleteDataFromHost(aHost, aIsUserRequest, aFlags, aCallback); } \
  NS_IMETHOD DeleteDataFromPrincipal(nsIPrincipal *aPrincipal, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override { return _to DeleteDataFromPrincipal(aPrincipal, aIsUserRequest, aFlags, aCallback); } \
  NS_IMETHOD DeleteDataInTimeRange(PRTime aFrom, PRTime aTo, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override { return _to DeleteDataInTimeRange(aFrom, aTo, aIsUserRequest, aFlags, aCallback); } \
  NS_IMETHOD DeleteData(uint32_t aFlags, nsIClearDataCallback *aCallback) override { return _to DeleteData(aFlags, aCallback); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICLEARDATASERVICE(_to) \
  NS_IMETHOD DeleteDataFromHost(const nsACString& aHost, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDataFromHost(aHost, aIsUserRequest, aFlags, aCallback); } \
  NS_IMETHOD DeleteDataFromPrincipal(nsIPrincipal *aPrincipal, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDataFromPrincipal(aPrincipal, aIsUserRequest, aFlags, aCallback); } \
  NS_IMETHOD DeleteDataInTimeRange(PRTime aFrom, PRTime aTo, bool aIsUserRequest, uint32_t aFlags, nsIClearDataCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDataInTimeRange(aFrom, aTo, aIsUserRequest, aFlags, aCallback); } \
  NS_IMETHOD DeleteData(uint32_t aFlags, nsIClearDataCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteData(aFlags, aCallback); } \


/* starting interface:    nsIClearDataCallback */
#define NS_ICLEARDATACALLBACK_IID_STR "e225517b-24c5-498a-b9fb-9993e341a398"

#define NS_ICLEARDATACALLBACK_IID \
  {0xe225517b, 0x24c5, 0x498a, \
    { 0xb9, 0xfb, 0x99, 0x93, 0xe3, 0x41, 0xa3, 0x98 }}

class NS_NO_VTABLE nsIClearDataCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLEARDATACALLBACK_IID)

  /* void onDataDeleted (in uint32_t aFailedFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnDataDeleted(uint32_t aFailedFlags) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIClearDataCallback, NS_ICLEARDATACALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICLEARDATACALLBACK \
  NS_IMETHOD OnDataDeleted(uint32_t aFailedFlags) 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_NSICLEARDATACALLBACK \
  nsresult OnDataDeleted(uint32_t aFailedFlags); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICLEARDATACALLBACK(_to) \
  NS_IMETHOD OnDataDeleted(uint32_t aFailedFlags) override { return _to OnDataDeleted(aFailedFlags); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICLEARDATACALLBACK(_to) \
  NS_IMETHOD OnDataDeleted(uint32_t aFailedFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDataDeleted(aFailedFlags); } 


#endif /* __gen_nsIClearDataService_h__ */