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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentProcess.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIContentProcess_h__
       6             : #define __gen_nsIContentProcess_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIDOMElement; /* forward declaration */
      18             : 
      19             : class nsIMessageSender; /* forward declaration */
      20             : 
      21             : class nsIURI; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIContentProcessInfo */
      25             : #define NS_ICONTENTPROCESSINFO_IID_STR "456f58be-29dd-4973-885b-95aece1c9a8a"
      26             : 
      27             : #define NS_ICONTENTPROCESSINFO_IID \
      28             :   {0x456f58be, 0x29dd, 0x4973, \
      29             :     { 0x88, 0x5b, 0x95, 0xae, 0xce, 0x1c, 0x9a, 0x8a }}
      30             : 
      31           2 : class NS_NO_VTABLE nsIContentProcessInfo : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSINFO_IID)
      35             : 
      36             :   /* readonly attribute boolean isAlive; */
      37             :   NS_IMETHOD GetIsAlive(bool *aIsAlive) = 0;
      38             : 
      39             :   /* readonly attribute int32_t processId; */
      40             :   NS_IMETHOD GetProcessId(int32_t *aProcessId) = 0;
      41             : 
      42             :   /* readonly attribute nsIContentProcessInfo opener; */
      43             :   NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) = 0;
      44             : 
      45             :   /* readonly attribute int32_t tabCount; */
      46             :   NS_IMETHOD GetTabCount(int32_t *aTabCount) = 0;
      47             : 
      48             :   /* readonly attribute nsIMessageSender messageManager; */
      49             :   NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) = 0;
      50             : 
      51             : };
      52             : 
      53             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessInfo, NS_ICONTENTPROCESSINFO_IID)
      54             : 
      55             : /* Use this macro when declaring classes that implement this interface. */
      56             : #define NS_DECL_NSICONTENTPROCESSINFO \
      57             :   NS_IMETHOD GetIsAlive(bool *aIsAlive) override; \
      58             :   NS_IMETHOD GetProcessId(int32_t *aProcessId) override; \
      59             :   NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) override; \
      60             :   NS_IMETHOD GetTabCount(int32_t *aTabCount) override; \
      61             :   NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) override; 
      62             : 
      63             : /* Use this macro when declaring the members of this interface when the
      64             :    class doesn't implement the interface. This is useful for forwarding. */
      65             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPROCESSINFO \
      66             :   nsresult GetIsAlive(bool *aIsAlive); \
      67             :   nsresult GetProcessId(int32_t *aProcessId); \
      68             :   nsresult GetOpener(nsIContentProcessInfo * *aOpener); \
      69             :   nsresult GetTabCount(int32_t *aTabCount); \
      70             :   nsresult GetMessageManager(nsIMessageSender * *aMessageManager); 
      71             : 
      72             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      73             : #define NS_FORWARD_NSICONTENTPROCESSINFO(_to) \
      74             :   NS_IMETHOD GetIsAlive(bool *aIsAlive) override { return _to GetIsAlive(aIsAlive); } \
      75             :   NS_IMETHOD GetProcessId(int32_t *aProcessId) override { return _to GetProcessId(aProcessId); } \
      76             :   NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) override { return _to GetOpener(aOpener); } \
      77             :   NS_IMETHOD GetTabCount(int32_t *aTabCount) override { return _to GetTabCount(aTabCount); } \
      78             :   NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) override { return _to GetMessageManager(aMessageManager); } 
      79             : 
      80             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      81             : #define NS_FORWARD_SAFE_NSICONTENTPROCESSINFO(_to) \
      82             :   NS_IMETHOD GetIsAlive(bool *aIsAlive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAlive(aIsAlive); } \
      83             :   NS_IMETHOD GetProcessId(int32_t *aProcessId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessId(aProcessId); } \
      84             :   NS_IMETHOD GetOpener(nsIContentProcessInfo * *aOpener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpener(aOpener); } \
      85             :   NS_IMETHOD GetTabCount(int32_t *aTabCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabCount(aTabCount); } \
      86             :   NS_IMETHOD GetMessageManager(nsIMessageSender * *aMessageManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageManager(aMessageManager); } 
      87             : 
      88             : #if 0
      89             : /* Use the code below as a template for the implementation class for this interface. */
      90             : 
      91             : /* Header file */
      92             : class nsContentProcessInfo : public nsIContentProcessInfo
      93             : {
      94             : public:
      95             :   NS_DECL_ISUPPORTS
      96             :   NS_DECL_NSICONTENTPROCESSINFO
      97             : 
      98             :   nsContentProcessInfo();
      99             : 
     100             : private:
     101             :   ~nsContentProcessInfo();
     102             : 
     103             : protected:
     104             :   /* additional members */
     105             : };
     106             : 
     107             : /* Implementation file */
     108             : NS_IMPL_ISUPPORTS(nsContentProcessInfo, nsIContentProcessInfo)
     109             : 
     110             : nsContentProcessInfo::nsContentProcessInfo()
     111             : {
     112             :   /* member initializers and constructor code */
     113             : }
     114             : 
     115             : nsContentProcessInfo::~nsContentProcessInfo()
     116             : {
     117             :   /* destructor code */
     118             : }
     119             : 
     120             : /* readonly attribute boolean isAlive; */
     121             : NS_IMETHODIMP nsContentProcessInfo::GetIsAlive(bool *aIsAlive)
     122             : {
     123             :     return NS_ERROR_NOT_IMPLEMENTED;
     124             : }
     125             : 
     126             : /* readonly attribute int32_t processId; */
     127             : NS_IMETHODIMP nsContentProcessInfo::GetProcessId(int32_t *aProcessId)
     128             : {
     129             :     return NS_ERROR_NOT_IMPLEMENTED;
     130             : }
     131             : 
     132             : /* readonly attribute nsIContentProcessInfo opener; */
     133             : NS_IMETHODIMP nsContentProcessInfo::GetOpener(nsIContentProcessInfo * *aOpener)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* readonly attribute int32_t tabCount; */
     139             : NS_IMETHODIMP nsContentProcessInfo::GetTabCount(int32_t *aTabCount)
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* readonly attribute nsIMessageSender messageManager; */
     145             : NS_IMETHODIMP nsContentProcessInfo::GetMessageManager(nsIMessageSender * *aMessageManager)
     146             : {
     147             :     return NS_ERROR_NOT_IMPLEMENTED;
     148             : }
     149             : 
     150             : /* End of implementation class template. */
     151             : #endif
     152             : 
     153             : 
     154             : /* starting interface:    nsIContentProcessProvider */
     155             : #define NS_ICONTENTPROCESSPROVIDER_IID_STR "83ffb063-5f65-4c45-ae07-3f553e0809bb"
     156             : 
     157             : #define NS_ICONTENTPROCESSPROVIDER_IID \
     158             :   {0x83ffb063, 0x5f65, 0x4c45, \
     159             :     { 0xae, 0x07, 0x3f, 0x55, 0x3e, 0x08, 0x09, 0xbb }}
     160             : 
     161             : class NS_NO_VTABLE nsIContentProcessProvider : public nsISupports {
     162             :  public:
     163             : 
     164             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSPROVIDER_IID)
     165             : 
     166             :   enum {
     167             :     NEW_PROCESS = -1
     168             :   };
     169             : 
     170             :   /* int32_t provideProcess (in AString aType, in nsIContentProcessInfo aOpener, [array, size_is (aCount)] in nsIContentProcessInfo aAliveProcesses, in uint32_t aCount, in uint32_t aMaxCount); */
     171             :   NS_IMETHOD ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval) = 0;
     172             : 
     173             : };
     174             : 
     175             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessProvider, NS_ICONTENTPROCESSPROVIDER_IID)
     176             : 
     177             : /* Use this macro when declaring classes that implement this interface. */
     178             : #define NS_DECL_NSICONTENTPROCESSPROVIDER \
     179             :   NS_IMETHOD ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval) override; 
     180             : 
     181             : /* Use this macro when declaring the members of this interface when the
     182             :    class doesn't implement the interface. This is useful for forwarding. */
     183             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPROCESSPROVIDER \
     184             :   nsresult ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval); 
     185             : 
     186             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     187             : #define NS_FORWARD_NSICONTENTPROCESSPROVIDER(_to) \
     188             :   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); } 
     189             : 
     190             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     191             : #define NS_FORWARD_SAFE_NSICONTENTPROCESSPROVIDER(_to) \
     192             :   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); } 
     193             : 
     194             : #if 0
     195             : /* Use the code below as a template for the implementation class for this interface. */
     196             : 
     197             : /* Header file */
     198             : class nsContentProcessProvider : public nsIContentProcessProvider
     199             : {
     200             : public:
     201             :   NS_DECL_ISUPPORTS
     202             :   NS_DECL_NSICONTENTPROCESSPROVIDER
     203             : 
     204             :   nsContentProcessProvider();
     205             : 
     206             : private:
     207             :   ~nsContentProcessProvider();
     208             : 
     209             : protected:
     210             :   /* additional members */
     211             : };
     212             : 
     213             : /* Implementation file */
     214             : NS_IMPL_ISUPPORTS(nsContentProcessProvider, nsIContentProcessProvider)
     215             : 
     216             : nsContentProcessProvider::nsContentProcessProvider()
     217             : {
     218             :   /* member initializers and constructor code */
     219             : }
     220             : 
     221             : nsContentProcessProvider::~nsContentProcessProvider()
     222             : {
     223             :   /* destructor code */
     224             : }
     225             : 
     226             : /* int32_t provideProcess (in AString aType, in nsIContentProcessInfo aOpener, [array, size_is (aCount)] in nsIContentProcessInfo aAliveProcesses, in uint32_t aCount, in uint32_t aMaxCount); */
     227             : NS_IMETHODIMP nsContentProcessProvider::ProvideProcess(const nsAString & aType, nsIContentProcessInfo *aOpener, nsIContentProcessInfo **aAliveProcesses, uint32_t aCount, uint32_t aMaxCount, int32_t *_retval)
     228             : {
     229             :     return NS_ERROR_NOT_IMPLEMENTED;
     230             : }
     231             : 
     232             : /* End of implementation class template. */
     233             : #endif
     234             : 
     235             : 
     236             : #endif /* __gen_nsIContentProcess_h__ */

Generated by: LCOV version 1.13