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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISpeculativeConnect.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISpeculativeConnect_h__
       6             : #define __gen_nsISpeculativeConnect_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "mozilla/Assertions.h"
      14             : #include "mozilla/DebugOnly.h"
      15             : 
      16             : /* For IDL files that don't want to include root IDL files. */
      17             : #ifndef NS_NO_VTABLE
      18             : #define NS_NO_VTABLE
      19             : #endif
      20             : class nsIPrincipal; /* forward declaration */
      21             : 
      22             : class nsIURI; /* forward declaration */
      23             : 
      24             : class nsIInterfaceRequestor; /* forward declaration */
      25             : 
      26             : 
      27             : /* starting interface:    nsISpeculativeConnect */
      28             : #define NS_ISPECULATIVECONNECT_IID_STR "d74a17ac-5b8a-4824-a309-b1f04a3c4aed"
      29             : 
      30             : #define NS_ISPECULATIVECONNECT_IID \
      31             :   {0xd74a17ac, 0x5b8a, 0x4824, \
      32             :     { 0xa3, 0x09, 0xb1, 0xf0, 0x4a, 0x3c, 0x4a, 0xed }}
      33             : 
      34           6 : class NS_NO_VTABLE nsISpeculativeConnect : public nsISupports {
      35             :  public:
      36             : 
      37             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPECULATIVECONNECT_IID)
      38             : 
      39             :   /* void speculativeConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks); */
      40             :   NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) = 0;
      41             : 
      42             :   /* void speculativeConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks); */
      43             :   NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) = 0;
      44             : 
      45             :   /* void speculativeAnonymousConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks); */
      46             :   NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) = 0;
      47             : 
      48             :   /* void speculativeAnonymousConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks); */
      49             :   NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) = 0;
      50             : 
      51             : };
      52             : 
      53             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeculativeConnect, NS_ISPECULATIVECONNECT_IID)
      54             : 
      55             : /* Use this macro when declaring classes that implement this interface. */
      56             : #define NS_DECL_NSISPECULATIVECONNECT \
      57             :   NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override; \
      58             :   NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override; \
      59             :   NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override; \
      60             :   NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override; 
      61             : 
      62             : /* Use this macro when declaring the members of this interface when the
      63             :    class doesn't implement the interface. This is useful for forwarding. */
      64             : #define NS_DECL_NON_VIRTUAL_NSISPECULATIVECONNECT \
      65             :   nsresult SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks); \
      66             :   nsresult SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks); \
      67             :   nsresult SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks); \
      68             :   nsresult SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks); 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      71             : #define NS_FORWARD_NSISPECULATIVECONNECT(_to) \
      72             :   NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeConnect(aURI, aCallbacks); } \
      73             :   NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeConnect2(aURI, aPrincipal, aCallbacks); } \
      74             :   NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeAnonymousConnect(aURI, aCallbacks); } \
      75             :   NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeAnonymousConnect2(aURI, aPrincipal, aCallbacks); } 
      76             : 
      77             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      78             : #define NS_FORWARD_SAFE_NSISPECULATIVECONNECT(_to) \
      79             :   NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeConnect(aURI, aCallbacks); } \
      80             :   NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeConnect2(aURI, aPrincipal, aCallbacks); } \
      81             :   NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeAnonymousConnect(aURI, aCallbacks); } \
      82             :   NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeAnonymousConnect2(aURI, aPrincipal, aCallbacks); } 
      83             : 
      84             : #if 0
      85             : /* Use the code below as a template for the implementation class for this interface. */
      86             : 
      87             : /* Header file */
      88             : class nsSpeculativeConnect : public nsISpeculativeConnect
      89             : {
      90             : public:
      91             :   NS_DECL_ISUPPORTS
      92             :   NS_DECL_NSISPECULATIVECONNECT
      93             : 
      94             :   nsSpeculativeConnect();
      95             : 
      96             : private:
      97             :   ~nsSpeculativeConnect();
      98             : 
      99             : protected:
     100             :   /* additional members */
     101             : };
     102             : 
     103             : /* Implementation file */
     104             : NS_IMPL_ISUPPORTS(nsSpeculativeConnect, nsISpeculativeConnect)
     105             : 
     106             : nsSpeculativeConnect::nsSpeculativeConnect()
     107             : {
     108             :   /* member initializers and constructor code */
     109             : }
     110             : 
     111             : nsSpeculativeConnect::~nsSpeculativeConnect()
     112             : {
     113             :   /* destructor code */
     114             : }
     115             : 
     116             : /* void speculativeConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks); */
     117             : NS_IMETHODIMP nsSpeculativeConnect::SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks)
     118             : {
     119             :     return NS_ERROR_NOT_IMPLEMENTED;
     120             : }
     121             : 
     122             : /* void speculativeConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks); */
     123             : NS_IMETHODIMP nsSpeculativeConnect::SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks)
     124             : {
     125             :     return NS_ERROR_NOT_IMPLEMENTED;
     126             : }
     127             : 
     128             : /* void speculativeAnonymousConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks); */
     129             : NS_IMETHODIMP nsSpeculativeConnect::SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks)
     130             : {
     131             :     return NS_ERROR_NOT_IMPLEMENTED;
     132             : }
     133             : 
     134             : /* void speculativeAnonymousConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks); */
     135             : NS_IMETHODIMP nsSpeculativeConnect::SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks)
     136             : {
     137             :     return NS_ERROR_NOT_IMPLEMENTED;
     138             : }
     139             : 
     140             : /* End of implementation class template. */
     141             : #endif
     142             : 
     143             : 
     144             : /* starting interface:    nsISpeculativeConnectionOverrider */
     145             : #define NS_ISPECULATIVECONNECTIONOVERRIDER_IID_STR "1040ebe3-6ed1-45a6-8587-995e082518d7"
     146             : 
     147             : #define NS_ISPECULATIVECONNECTIONOVERRIDER_IID \
     148             :   {0x1040ebe3, 0x6ed1, 0x45a6, \
     149             :     { 0x85, 0x87, 0x99, 0x5e, 0x08, 0x25, 0x18, 0xd7 }}
     150             : 
     151           2 : class NS_NO_VTABLE nsISpeculativeConnectionOverrider : public nsISupports {
     152             :  public:
     153             : 
     154             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPECULATIVECONNECTIONOVERRIDER_IID)
     155             : 
     156             :   /* [infallible] readonly attribute unsigned long parallelSpeculativeConnectLimit; */
     157             :   NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) = 0;
     158           0 :   inline uint32_t GetParallelSpeculativeConnectLimit()
     159             :   {
     160             :     uint32_t result;
     161           0 :     mozilla::DebugOnly<nsresult> rv = GetParallelSpeculativeConnectLimit(&result);
     162           0 :     MOZ_ASSERT(NS_SUCCEEDED(rv));
     163           0 :     return result;
     164             :   }
     165             : 
     166             :   /* [infallible] readonly attribute boolean ignoreIdle; */
     167             :   NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) = 0;
     168           0 :   inline bool GetIgnoreIdle()
     169             :   {
     170             :     bool result;
     171           0 :     mozilla::DebugOnly<nsresult> rv = GetIgnoreIdle(&result);
     172           0 :     MOZ_ASSERT(NS_SUCCEEDED(rv));
     173           0 :     return result;
     174             :   }
     175             : 
     176             :   /* [infallible] readonly attribute boolean isFromPredictor; */
     177             :   NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) = 0;
     178           0 :   inline bool GetIsFromPredictor()
     179             :   {
     180             :     bool result;
     181           0 :     mozilla::DebugOnly<nsresult> rv = GetIsFromPredictor(&result);
     182           0 :     MOZ_ASSERT(NS_SUCCEEDED(rv));
     183           0 :     return result;
     184             :   }
     185             : 
     186             :   /* [infallible] readonly attribute boolean allow1918; */
     187             :   NS_IMETHOD GetAllow1918(bool *aAllow1918) = 0;
     188           0 :   inline bool GetAllow1918()
     189             :   {
     190             :     bool result;
     191           0 :     mozilla::DebugOnly<nsresult> rv = GetAllow1918(&result);
     192           0 :     MOZ_ASSERT(NS_SUCCEEDED(rv));
     193           0 :     return result;
     194             :   }
     195             : 
     196             : };
     197             : 
     198             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeculativeConnectionOverrider, NS_ISPECULATIVECONNECTIONOVERRIDER_IID)
     199             : 
     200             : /* Use this macro when declaring classes that implement this interface. */
     201             : #define NS_DECL_NSISPECULATIVECONNECTIONOVERRIDER \
     202             :   using nsISpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit; \
     203             :   NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) override; \
     204             :   using nsISpeculativeConnectionOverrider::GetIgnoreIdle; \
     205             :   NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) override; \
     206             :   using nsISpeculativeConnectionOverrider::GetIsFromPredictor; \
     207             :   NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) override; \
     208             :   using nsISpeculativeConnectionOverrider::GetAllow1918; \
     209             :   NS_IMETHOD GetAllow1918(bool *aAllow1918) override; 
     210             : 
     211             : /* Use this macro when declaring the members of this interface when the
     212             :    class doesn't implement the interface. This is useful for forwarding. */
     213             : #define NS_DECL_NON_VIRTUAL_NSISPECULATIVECONNECTIONOVERRIDER \
     214             :   using nsISpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit; \
     215             :   nsresult GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit); \
     216             :   using nsISpeculativeConnectionOverrider::GetIgnoreIdle; \
     217             :   nsresult GetIgnoreIdle(bool *aIgnoreIdle); \
     218             :   using nsISpeculativeConnectionOverrider::GetIsFromPredictor; \
     219             :   nsresult GetIsFromPredictor(bool *aIsFromPredictor); \
     220             :   using nsISpeculativeConnectionOverrider::GetAllow1918; \
     221             :   nsresult GetAllow1918(bool *aAllow1918); 
     222             : 
     223             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     224             : #define NS_FORWARD_NSISPECULATIVECONNECTIONOVERRIDER(_to) \
     225             :   using nsISpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit; \
     226             :   NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) override { return _to GetParallelSpeculativeConnectLimit(aParallelSpeculativeConnectLimit); } \
     227             :   using nsISpeculativeConnectionOverrider::GetIgnoreIdle; \
     228             :   NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) override { return _to GetIgnoreIdle(aIgnoreIdle); } \
     229             :   using nsISpeculativeConnectionOverrider::GetIsFromPredictor; \
     230             :   NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) override { return _to GetIsFromPredictor(aIsFromPredictor); } \
     231             :   using nsISpeculativeConnectionOverrider::GetAllow1918; \
     232             :   NS_IMETHOD GetAllow1918(bool *aAllow1918) override { return _to GetAllow1918(aAllow1918); } 
     233             : 
     234             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     235             : #define NS_FORWARD_SAFE_NSISPECULATIVECONNECTIONOVERRIDER(_to) \
     236             :   NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParallelSpeculativeConnectLimit(aParallelSpeculativeConnectLimit); } \
     237             :   NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIgnoreIdle(aIgnoreIdle); } \
     238             :   NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromPredictor(aIsFromPredictor); } \
     239             :   NS_IMETHOD GetAllow1918(bool *aAllow1918) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllow1918(aAllow1918); } 
     240             : 
     241             : #if 0
     242             : /* Use the code below as a template for the implementation class for this interface. */
     243             : 
     244             : /* Header file */
     245             : class nsSpeculativeConnectionOverrider : public nsISpeculativeConnectionOverrider
     246             : {
     247             : public:
     248             :   NS_DECL_ISUPPORTS
     249             :   NS_DECL_NSISPECULATIVECONNECTIONOVERRIDER
     250             : 
     251             :   nsSpeculativeConnectionOverrider();
     252             : 
     253             : private:
     254             :   ~nsSpeculativeConnectionOverrider();
     255             : 
     256             : protected:
     257             :   /* additional members */
     258             : };
     259             : 
     260             : /* Implementation file */
     261             : NS_IMPL_ISUPPORTS(nsSpeculativeConnectionOverrider, nsISpeculativeConnectionOverrider)
     262             : 
     263             : nsSpeculativeConnectionOverrider::nsSpeculativeConnectionOverrider()
     264             : {
     265             :   /* member initializers and constructor code */
     266             : }
     267             : 
     268             : nsSpeculativeConnectionOverrider::~nsSpeculativeConnectionOverrider()
     269             : {
     270             :   /* destructor code */
     271             : }
     272             : 
     273             : /* [infallible] readonly attribute unsigned long parallelSpeculativeConnectLimit; */
     274             : NS_IMETHODIMP nsSpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit)
     275             : {
     276             :     return NS_ERROR_NOT_IMPLEMENTED;
     277             : }
     278             : 
     279             : /* [infallible] readonly attribute boolean ignoreIdle; */
     280             : NS_IMETHODIMP nsSpeculativeConnectionOverrider::GetIgnoreIdle(bool *aIgnoreIdle)
     281             : {
     282             :     return NS_ERROR_NOT_IMPLEMENTED;
     283             : }
     284             : 
     285             : /* [infallible] readonly attribute boolean isFromPredictor; */
     286             : NS_IMETHODIMP nsSpeculativeConnectionOverrider::GetIsFromPredictor(bool *aIsFromPredictor)
     287             : {
     288             :     return NS_ERROR_NOT_IMPLEMENTED;
     289             : }
     290             : 
     291             : /* [infallible] readonly attribute boolean allow1918; */
     292             : NS_IMETHODIMP nsSpeculativeConnectionOverrider::GetAllow1918(bool *aAllow1918)
     293             : {
     294             :     return NS_ERROR_NOT_IMPLEMENTED;
     295             : }
     296             : 
     297             : /* End of implementation class template. */
     298             : #endif
     299             : 
     300             : 
     301             : #endif /* __gen_nsISpeculativeConnect_h__ */

Generated by: LCOV version 1.13