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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISocketTransportService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISocketTransportService_h__
       6             : #define __gen_nsISocketTransportService_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 nsIFile; /* forward declaration */
      18             : 
      19             : class nsISocketTransport; /* forward declaration */
      20             : 
      21             : class nsIProxyInfo; /* forward declaration */
      22             : 
      23             : class nsIRunnable; /* forward declaration */
      24             : 
      25             : class nsASocketHandler;
      26             : struct PRFileDesc;
      27             : 
      28             : /* starting interface:    nsISocketTransportService */
      29             : #define NS_ISOCKETTRANSPORTSERVICE_IID_STR "ad56b25f-e6bb-4db3-9f7b-5b7db33fd2b1"
      30             : 
      31             : #define NS_ISOCKETTRANSPORTSERVICE_IID \
      32             :   {0xad56b25f, 0xe6bb, 0x4db3, \
      33             :     { 0x9f, 0x7b, 0x5b, 0x7d, 0xb3, 0x3f, 0xd2, 0xb1 }}
      34             : 
      35           3 : class NS_NO_VTABLE nsISocketTransportService : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISOCKETTRANSPORTSERVICE_IID)
      39             : 
      40             :   /* nsISocketTransport createTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in nsIProxyInfo aProxyInfo); */
      41             :   NS_IMETHOD CreateTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) = 0;
      42             : 
      43             :   /* nsISocketTransport createUnixDomainTransport (in nsIFile aPath); */
      44             :   NS_IMETHOD CreateUnixDomainTransport(nsIFile *aPath, nsISocketTransport * *_retval) = 0;
      45             : 
      46             :   /* [noscript] void attachSocket (in PRFileDescPtr aFd, in nsASocketHandlerPtr aHandler); */
      47             :   NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) = 0;
      48             : 
      49             :   /* [noscript] void notifyWhenCanAttachSocket (in nsIRunnable aEvent); */
      50             :   NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) = 0;
      51             : 
      52             : };
      53             : 
      54             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISocketTransportService, NS_ISOCKETTRANSPORTSERVICE_IID)
      55             : 
      56             : /* Use this macro when declaring classes that implement this interface. */
      57             : #define NS_DECL_NSISOCKETTRANSPORTSERVICE \
      58             :   NS_IMETHOD CreateTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) override; \
      59             :   NS_IMETHOD CreateUnixDomainTransport(nsIFile *aPath, nsISocketTransport * *_retval) override; \
      60             :   NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) override; \
      61             :   NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) 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_NSISOCKETTRANSPORTSERVICE \
      66             :   nsresult CreateTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval); \
      67             :   nsresult CreateUnixDomainTransport(nsIFile *aPath, nsISocketTransport * *_retval); \
      68             :   nsresult AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler); \
      69             :   nsresult NotifyWhenCanAttachSocket(nsIRunnable *aEvent); 
      70             : 
      71             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      72             : #define NS_FORWARD_NSISOCKETTRANSPORTSERVICE(_to) \
      73             :   NS_IMETHOD CreateTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) override { return _to CreateTransport(aSocketTypes, aTypeCount, aHost, aPort, aProxyInfo, _retval); } \
      74             :   NS_IMETHOD CreateUnixDomainTransport(nsIFile *aPath, nsISocketTransport * *_retval) override { return _to CreateUnixDomainTransport(aPath, _retval); } \
      75             :   NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) override { return _to AttachSocket(aFd, aHandler); } \
      76             :   NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) override { return _to NotifyWhenCanAttachSocket(aEvent); } 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79             : #define NS_FORWARD_SAFE_NSISOCKETTRANSPORTSERVICE(_to) \
      80             :   NS_IMETHOD CreateTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTransport(aSocketTypes, aTypeCount, aHost, aPort, aProxyInfo, _retval); } \
      81             :   NS_IMETHOD CreateUnixDomainTransport(nsIFile *aPath, nsISocketTransport * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateUnixDomainTransport(aPath, _retval); } \
      82             :   NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AttachSocket(aFd, aHandler); } \
      83             :   NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyWhenCanAttachSocket(aEvent); } 
      84             : 
      85             : #if 0
      86             : /* Use the code below as a template for the implementation class for this interface. */
      87             : 
      88             : /* Header file */
      89             : class nsSocketTransportService : public nsISocketTransportService
      90             : {
      91             : public:
      92             :   NS_DECL_ISUPPORTS
      93             :   NS_DECL_NSISOCKETTRANSPORTSERVICE
      94             : 
      95             :   nsSocketTransportService();
      96             : 
      97             : private:
      98             :   ~nsSocketTransportService();
      99             : 
     100             : protected:
     101             :   /* additional members */
     102             : };
     103             : 
     104             : /* Implementation file */
     105             : NS_IMPL_ISUPPORTS(nsSocketTransportService, nsISocketTransportService)
     106             : 
     107             : nsSocketTransportService::nsSocketTransportService()
     108             : {
     109             :   /* member initializers and constructor code */
     110             : }
     111             : 
     112             : nsSocketTransportService::~nsSocketTransportService()
     113             : {
     114             :   /* destructor code */
     115             : }
     116             : 
     117             : /* nsISocketTransport createTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in nsIProxyInfo aProxyInfo); */
     118             : NS_IMETHODIMP nsSocketTransportService::CreateTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval)
     119             : {
     120             :     return NS_ERROR_NOT_IMPLEMENTED;
     121             : }
     122             : 
     123             : /* nsISocketTransport createUnixDomainTransport (in nsIFile aPath); */
     124             : NS_IMETHODIMP nsSocketTransportService::CreateUnixDomainTransport(nsIFile *aPath, nsISocketTransport * *_retval)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* [noscript] void attachSocket (in PRFileDescPtr aFd, in nsASocketHandlerPtr aHandler); */
     130             : NS_IMETHODIMP nsSocketTransportService::AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* [noscript] void notifyWhenCanAttachSocket (in nsIRunnable aEvent); */
     136             : NS_IMETHODIMP nsSocketTransportService::NotifyWhenCanAttachSocket(nsIRunnable *aEvent)
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* End of implementation class template. */
     142             : #endif
     143             : 
     144             : 
     145             : /* starting interface:    nsIRoutedSocketTransportService */
     146             : #define NS_IROUTEDSOCKETTRANSPORTSERVICE_IID_STR "c5204623-5b58-4a16-8b2e-67c34dd02e3f"
     147             : 
     148             : #define NS_IROUTEDSOCKETTRANSPORTSERVICE_IID \
     149             :   {0xc5204623, 0x5b58, 0x4a16, \
     150             :     { 0x8b, 0x2e, 0x67, 0xc3, 0x4d, 0xd0, 0x2e, 0x3f }}
     151             : 
     152           3 : class NS_NO_VTABLE nsIRoutedSocketTransportService : public nsISocketTransportService {
     153             :  public:
     154             : 
     155             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IROUTEDSOCKETTRANSPORTSERVICE_IID)
     156             : 
     157             :   /* nsISocketTransport createRoutedTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in AUTF8String aHostRoute, in long aPortRoute, in nsIProxyInfo aProxyInfo); */
     158             :   NS_IMETHOD CreateRoutedTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, const nsACString & aHostRoute, int32_t aPortRoute, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) = 0;
     159             : 
     160             : };
     161             : 
     162             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIRoutedSocketTransportService, NS_IROUTEDSOCKETTRANSPORTSERVICE_IID)
     163             : 
     164             : /* Use this macro when declaring classes that implement this interface. */
     165             : #define NS_DECL_NSIROUTEDSOCKETTRANSPORTSERVICE \
     166             :   NS_IMETHOD CreateRoutedTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, const nsACString & aHostRoute, int32_t aPortRoute, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) override; 
     167             : 
     168             : /* Use this macro when declaring the members of this interface when the
     169             :    class doesn't implement the interface. This is useful for forwarding. */
     170             : #define NS_DECL_NON_VIRTUAL_NSIROUTEDSOCKETTRANSPORTSERVICE \
     171             :   nsresult CreateRoutedTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, const nsACString & aHostRoute, int32_t aPortRoute, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval); 
     172             : 
     173             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     174             : #define NS_FORWARD_NSIROUTEDSOCKETTRANSPORTSERVICE(_to) \
     175             :   NS_IMETHOD CreateRoutedTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, const nsACString & aHostRoute, int32_t aPortRoute, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) override { return _to CreateRoutedTransport(aSocketTypes, aTypeCount, aHost, aPort, aHostRoute, aPortRoute, aProxyInfo, _retval); } 
     176             : 
     177             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     178             : #define NS_FORWARD_SAFE_NSIROUTEDSOCKETTRANSPORTSERVICE(_to) \
     179             :   NS_IMETHOD CreateRoutedTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, const nsACString & aHostRoute, int32_t aPortRoute, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRoutedTransport(aSocketTypes, aTypeCount, aHost, aPort, aHostRoute, aPortRoute, aProxyInfo, _retval); } 
     180             : 
     181             : #if 0
     182             : /* Use the code below as a template for the implementation class for this interface. */
     183             : 
     184             : /* Header file */
     185             : class nsRoutedSocketTransportService : public nsIRoutedSocketTransportService
     186             : {
     187             : public:
     188             :   NS_DECL_ISUPPORTS
     189             :   NS_DECL_NSIROUTEDSOCKETTRANSPORTSERVICE
     190             : 
     191             :   nsRoutedSocketTransportService();
     192             : 
     193             : private:
     194             :   ~nsRoutedSocketTransportService();
     195             : 
     196             : protected:
     197             :   /* additional members */
     198             : };
     199             : 
     200             : /* Implementation file */
     201             : NS_IMPL_ISUPPORTS(nsRoutedSocketTransportService, nsIRoutedSocketTransportService)
     202             : 
     203             : nsRoutedSocketTransportService::nsRoutedSocketTransportService()
     204             : {
     205             :   /* member initializers and constructor code */
     206             : }
     207             : 
     208             : nsRoutedSocketTransportService::~nsRoutedSocketTransportService()
     209             : {
     210             :   /* destructor code */
     211             : }
     212             : 
     213             : /* nsISocketTransport createRoutedTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in AUTF8String aHostRoute, in long aPortRoute, in nsIProxyInfo aProxyInfo); */
     214             : NS_IMETHODIMP nsRoutedSocketTransportService::CreateRoutedTransport(const char * *aSocketTypes, uint32_t aTypeCount, const nsACString & aHost, int32_t aPort, const nsACString & aHostRoute, int32_t aPortRoute, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval)
     215             : {
     216             :     return NS_ERROR_NOT_IMPLEMENTED;
     217             : }
     218             : 
     219             : /* End of implementation class template. */
     220             : #endif
     221             : 
     222             : 
     223             : #endif /* __gen_nsISocketTransportService_h__ */

Generated by: LCOV version 1.13