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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISocketProvider.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISocketProvider_h__
       6             : #define __gen_nsISocketProvider_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 nsIProxyInfo; /* forward declaration */
      18             : 
      19             : #include "mozilla/BasePrincipal.h"
      20             : 
      21             : /* starting interface:    nsISocketProvider */
      22             : #define NS_ISOCKETPROVIDER_IID_STR "508d5469-9e1e-4a08-b5b0-7cfebba1e51a"
      23             : 
      24             : #define NS_ISOCKETPROVIDER_IID \
      25             :   {0x508d5469, 0x9e1e, 0x4a08, \
      26             :     { 0xb5, 0xb0, 0x7c, 0xfe, 0xbb, 0xa1, 0xe5, 0x1a }}
      27             : 
      28           0 : class NS_NO_VTABLE nsISocketProvider : public nsISupports {
      29             :  public:
      30             : 
      31             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISOCKETPROVIDER_IID)
      32             : 
      33             :   /* [noscript] void newSocket (in long aFamily, in string aHost, in long aPort, in nsIProxyInfo aProxy, in const_OriginAttributesRef aOriginAttributes, in unsigned long aFlags, out PRFileDescStar aFileDesc, out nsISupports aSecurityInfo); */
      34             :   NS_IMETHOD NewSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc **aFileDesc, nsISupports * *aSecurityInfo) = 0;
      35             : 
      36             :   /* [noscript] void addToSocket (in long aFamily, in string aHost, in long aPort, in nsIProxyInfo aProxy, in const_OriginAttributesRef aOriginAttributes, in unsigned long aFlags, in PRFileDescStar aFileDesc, out nsISupports aSecurityInfo); */
      37             :   NS_IMETHOD AddToSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc *aFileDesc, nsISupports * *aSecurityInfo) = 0;
      38             : 
      39             :   enum {
      40             :     PROXY_RESOLVES_HOST = 1,
      41             :     ANONYMOUS_CONNECT = 2,
      42             :     NO_PERMANENT_STORAGE = 4U,
      43             :     MITM_OK = 8U,
      44             :     BE_CONSERVATIVE = 16U
      45             :   };
      46             : 
      47             : };
      48             : 
      49             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISocketProvider, NS_ISOCKETPROVIDER_IID)
      50             : 
      51             : /* Use this macro when declaring classes that implement this interface. */
      52             : #define NS_DECL_NSISOCKETPROVIDER \
      53             :   NS_IMETHOD NewSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc **aFileDesc, nsISupports * *aSecurityInfo) override; \
      54             :   NS_IMETHOD AddToSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc *aFileDesc, nsISupports * *aSecurityInfo) override; \
      55             : 
      56             : /* Use this macro when declaring the members of this interface when the
      57             :    class doesn't implement the interface. This is useful for forwarding. */
      58             : #define NS_DECL_NON_VIRTUAL_NSISOCKETPROVIDER \
      59             :   nsresult NewSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc **aFileDesc, nsISupports * *aSecurityInfo); \
      60             :   nsresult AddToSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc *aFileDesc, nsISupports * *aSecurityInfo); \
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSISOCKETPROVIDER(_to) \
      64             :   NS_IMETHOD NewSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc **aFileDesc, nsISupports * *aSecurityInfo) override { return _to NewSocket(aFamily, aHost, aPort, aProxy, aOriginAttributes, aFlags, aFileDesc, aSecurityInfo); } \
      65             :   NS_IMETHOD AddToSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc *aFileDesc, nsISupports * *aSecurityInfo) override { return _to AddToSocket(aFamily, aHost, aPort, aProxy, aOriginAttributes, aFlags, aFileDesc, aSecurityInfo); } \
      66             : 
      67             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      68             : #define NS_FORWARD_SAFE_NSISOCKETPROVIDER(_to) \
      69             :   NS_IMETHOD NewSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc **aFileDesc, nsISupports * *aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewSocket(aFamily, aHost, aPort, aProxy, aOriginAttributes, aFlags, aFileDesc, aSecurityInfo); } \
      70             :   NS_IMETHOD AddToSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc *aFileDesc, nsISupports * *aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddToSocket(aFamily, aHost, aPort, aProxy, aOriginAttributes, aFlags, aFileDesc, aSecurityInfo); } \
      71             : 
      72             : #if 0
      73             : /* Use the code below as a template for the implementation class for this interface. */
      74             : 
      75             : /* Header file */
      76             : class nsSocketProvider : public nsISocketProvider
      77             : {
      78             : public:
      79             :   NS_DECL_ISUPPORTS
      80             :   NS_DECL_NSISOCKETPROVIDER
      81             : 
      82             :   nsSocketProvider();
      83             : 
      84             : private:
      85             :   ~nsSocketProvider();
      86             : 
      87             : protected:
      88             :   /* additional members */
      89             : };
      90             : 
      91             : /* Implementation file */
      92             : NS_IMPL_ISUPPORTS(nsSocketProvider, nsISocketProvider)
      93             : 
      94             : nsSocketProvider::nsSocketProvider()
      95             : {
      96             :   /* member initializers and constructor code */
      97             : }
      98             : 
      99             : nsSocketProvider::~nsSocketProvider()
     100             : {
     101             :   /* destructor code */
     102             : }
     103             : 
     104             : /* [noscript] void newSocket (in long aFamily, in string aHost, in long aPort, in nsIProxyInfo aProxy, in const_OriginAttributesRef aOriginAttributes, in unsigned long aFlags, out PRFileDescStar aFileDesc, out nsISupports aSecurityInfo); */
     105             : NS_IMETHODIMP nsSocketProvider::NewSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc **aFileDesc, nsISupports * *aSecurityInfo)
     106             : {
     107             :     return NS_ERROR_NOT_IMPLEMENTED;
     108             : }
     109             : 
     110             : /* [noscript] void addToSocket (in long aFamily, in string aHost, in long aPort, in nsIProxyInfo aProxy, in const_OriginAttributesRef aOriginAttributes, in unsigned long aFlags, in PRFileDescStar aFileDesc, out nsISupports aSecurityInfo); */
     111             : NS_IMETHODIMP nsSocketProvider::AddToSocket(int32_t aFamily, const char * aHost, int32_t aPort, nsIProxyInfo *aProxy, const mozilla::OriginAttributes & aOriginAttributes, uint32_t aFlags, struct PRFileDesc *aFileDesc, nsISupports * *aSecurityInfo)
     112             : {
     113             :     return NS_ERROR_NOT_IMPLEMENTED;
     114             : }
     115             : 
     116             : /* End of implementation class template. */
     117             : #endif
     118             : 
     119             : /**
     120             :  * nsISocketProvider implementations should be registered with XPCOM under a
     121             :  * contract ID of the form: "@mozilla.org/network/socket;2?type=foo"
     122             :  */
     123             : #define NS_NETWORK_SOCKET_CONTRACTID_PREFIX \
     124             :     "@mozilla.org/network/socket;2?type="
     125             : 
     126             : #endif /* __gen_nsISocketProvider_h__ */

Generated by: LCOV version 1.13