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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/comm-central/dom/interfaces/base/nsIContentProcess.idl
 */

#ifndef __gen_nsIContentProcess_h__
#define __gen_nsIContentProcess_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 nsIURI; /* forward declaration */


/* starting interface:    nsIContentProcessInfo */
#define NS_ICONTENTPROCESSINFO_IID_STR "456f58be-29dd-4973-885b-95aece1c9a8a"

#define NS_ICONTENTPROCESSINFO_IID \
  {0x456f58be, 0x29dd, 0x4973, \
    { 0x88, 0x5b, 0x95, 0xae, 0xce, 0x1c, 0x9a, 0x8a }}

class NS_NO_VTABLE nsIContentProcessInfo : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSINFO_IID)

  /* readonly attribute boolean isAlive; */
  NS_IMETHOD GetIsAlive(bool *aIsAlive) = 0;

  /* readonly attribute int32_t processId; */
  NS_IMETHOD GetProcessId(int32_t *aProcessId) = 0;

  /* readonly attribute nsIContentProcessInfo opener; */
  NS_IMETHOD GetOpener(nsIContentProcessInfo **aOpener) = 0;

  /* readonly attribute int32_t tabCount; */
  NS_IMETHOD GetTabCount(int32_t *aTabCount) = 0;

  /* readonly attribute nsISupports messageManager; */
  NS_IMETHOD GetMessageManager(nsISupports **aMessageManager) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessInfo, NS_ICONTENTPROCESSINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPROCESSINFO \
  NS_IMETHOD GetIsAlive(bool *aIsAlive) override; \
  NS_IMETHOD GetProcessId(int32_t *aProcessId) override; \
  NS_IMETHOD GetOpener(nsIContentProcessInfo **aOpener) override; \
  NS_IMETHOD GetTabCount(int32_t *aTabCount) override; \
  NS_IMETHOD GetMessageManager(nsISupports **aMessageManager) 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_NSICONTENTPROCESSINFO \
  nsresult GetIsAlive(bool *aIsAlive); \
  nsresult GetProcessId(int32_t *aProcessId); \
  nsresult GetOpener(nsIContentProcessInfo **aOpener); \
  nsresult GetTabCount(int32_t *aTabCount); \
  nsresult GetMessageManager(nsISupports **aMessageManager); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPROCESSINFO(_to) \
  NS_IMETHOD GetIsAlive(bool *aIsAlive) override { return _to GetIsAlive(aIsAlive); } \
  NS_IMETHOD GetProcessId(int32_t *aProcessId) override { return _to GetProcessId(aProcessId); } \
  NS_IMETHOD GetOpener(nsIContentProcessInfo **aOpener) override { return _to GetOpener(aOpener); } \
  NS_IMETHOD GetTabCount(int32_t *aTabCount) override { return _to GetTabCount(aTabCount); } \
  NS_IMETHOD GetMessageManager(nsISupports **aMessageManager) override { return _to GetMessageManager(aMessageManager); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTPROCESSINFO(_to) \
  NS_IMETHOD GetIsAlive(bool *aIsAlive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAlive(aIsAlive); } \
  NS_IMETHOD GetProcessId(int32_t *aProcessId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessId(aProcessId); } \
  NS_IMETHOD GetOpener(nsIContentProcessInfo **aOpener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpener(aOpener); } \
  NS_IMETHOD GetTabCount(int32_t *aTabCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabCount(aTabCount); } \
  NS_IMETHOD GetMessageManager(nsISupports **aMessageManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageManager(aMessageManager); } 


/* starting interface:    nsIContentProcessProvider */
#define NS_ICONTENTPROCESSPROVIDER_IID_STR "83ffb063-5f65-4c45-ae07-3f553e0809bb"

#define NS_ICONTENTPROCESSPROVIDER_IID \
  {0x83ffb063, 0x5f65, 0x4c45, \
    { 0xae, 0x07, 0x3f, 0x55, 0x3e, 0x08, 0x09, 0xbb }}

class NS_NO_VTABLE nsIContentProcessProvider : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSPROVIDER_IID)

  enum {
    NEW_PROCESS = -1
  };

  /* int32_t provideProcess (in AString aType, in nsIContentProcessInfo aOpener, [array, size_is (aCount)] in nsIContentProcessInfo aAliveProcesses, in uint32_t aCount, in uint32_t aMaxCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ProvideProcess(const nsAString& aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessProvider, NS_ICONTENTPROCESSPROVIDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTPROCESSPROVIDER \
  NS_IMETHOD ProvideProcess(const nsAString& aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_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_NSICONTENTPROCESSPROVIDER \
  nsresult ProvideProcess(const nsAString& aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTPROCESSPROVIDER(_to) \
  NS_IMETHOD ProvideProcess(const nsAString& aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval) override { return _to ProvideProcess(aType, aOpener, aAliveProcesses, aCount, aMaxCount, _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_NSICONTENTPROCESSPROVIDER(_to) \
  NS_IMETHOD ProvideProcess(const nsAString& aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProvideProcess(aType, aOpener, aAliveProcesses, aCount, aMaxCount, _retval); } 


#endif /* __gen_nsIContentProcess_h__ */