LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsICaptivePortalService.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/nsICaptivePortalService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsICaptivePortalService_h__
       6             : #define __gen_nsICaptivePortalService_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             : 
      18             : /* starting interface:    nsICaptivePortalServiceCallback */
      19             : #define NS_ICAPTIVEPORTALSERVICECALLBACK_IID_STR "b5fd5629-d04c-4138-9529-9311f291ecd4"
      20             : 
      21             : #define NS_ICAPTIVEPORTALSERVICECALLBACK_IID \
      22             :   {0xb5fd5629, 0xd04c, 0x4138, \
      23             :     { 0x95, 0x29, 0x93, 0x11, 0xf2, 0x91, 0xec, 0xd4 }}
      24             : 
      25             : class NS_NO_VTABLE nsICaptivePortalServiceCallback : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALSERVICECALLBACK_IID)
      29             : 
      30             :   /* void complete (in bool success, in nsresult error); */
      31             :   NS_IMETHOD Complete(bool success, nsresult error) = 0;
      32             : 
      33             : };
      34             : 
      35             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalServiceCallback, NS_ICAPTIVEPORTALSERVICECALLBACK_IID)
      36             : 
      37             : /* Use this macro when declaring classes that implement this interface. */
      38             : #define NS_DECL_NSICAPTIVEPORTALSERVICECALLBACK \
      39             :   NS_IMETHOD Complete(bool success, nsresult error) override; 
      40             : 
      41             : /* Use this macro when declaring the members of this interface when the
      42             :    class doesn't implement the interface. This is useful for forwarding. */
      43             : #define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALSERVICECALLBACK \
      44             :   nsresult Complete(bool success, nsresult error); 
      45             : 
      46             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      47             : #define NS_FORWARD_NSICAPTIVEPORTALSERVICECALLBACK(_to) \
      48             :   NS_IMETHOD Complete(bool success, nsresult error) override { return _to Complete(success, error); } 
      49             : 
      50             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      51             : #define NS_FORWARD_SAFE_NSICAPTIVEPORTALSERVICECALLBACK(_to) \
      52             :   NS_IMETHOD Complete(bool success, nsresult error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(success, error); } 
      53             : 
      54             : #if 0
      55             : /* Use the code below as a template for the implementation class for this interface. */
      56             : 
      57             : /* Header file */
      58             : class nsCaptivePortalServiceCallback : public nsICaptivePortalServiceCallback
      59             : {
      60             : public:
      61             :   NS_DECL_ISUPPORTS
      62             :   NS_DECL_NSICAPTIVEPORTALSERVICECALLBACK
      63             : 
      64             :   nsCaptivePortalServiceCallback();
      65             : 
      66             : private:
      67             :   ~nsCaptivePortalServiceCallback();
      68             : 
      69             : protected:
      70             :   /* additional members */
      71             : };
      72             : 
      73             : /* Implementation file */
      74             : NS_IMPL_ISUPPORTS(nsCaptivePortalServiceCallback, nsICaptivePortalServiceCallback)
      75             : 
      76             : nsCaptivePortalServiceCallback::nsCaptivePortalServiceCallback()
      77             : {
      78             :   /* member initializers and constructor code */
      79             : }
      80             : 
      81             : nsCaptivePortalServiceCallback::~nsCaptivePortalServiceCallback()
      82             : {
      83             :   /* destructor code */
      84             : }
      85             : 
      86             : /* void complete (in bool success, in nsresult error); */
      87             : NS_IMETHODIMP nsCaptivePortalServiceCallback::Complete(bool success, nsresult error)
      88             : {
      89             :     return NS_ERROR_NOT_IMPLEMENTED;
      90             : }
      91             : 
      92             : /* End of implementation class template. */
      93             : #endif
      94             : 
      95             : 
      96             : /* starting interface:    nsICaptivePortalService */
      97             : #define NS_ICAPTIVEPORTALSERVICE_IID_STR "bdbe0555-fc3d-4f7b-9205-c309ceb2d641"
      98             : 
      99             : #define NS_ICAPTIVEPORTALSERVICE_IID \
     100             :   {0xbdbe0555, 0xfc3d, 0x4f7b, \
     101             :     { 0x92, 0x05, 0xc3, 0x09, 0xce, 0xb2, 0xd6, 0x41 }}
     102             : 
     103           3 : class NS_NO_VTABLE nsICaptivePortalService : public nsISupports {
     104             :  public:
     105             : 
     106             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALSERVICE_IID)
     107             : 
     108             :   enum {
     109             :     UNKNOWN = 0,
     110             :     NOT_CAPTIVE = 1,
     111             :     UNLOCKED_PORTAL = 2,
     112             :     LOCKED_PORTAL = 3
     113             :   };
     114             : 
     115             :   /* void recheckCaptivePortal (); */
     116             :   NS_IMETHOD RecheckCaptivePortal(void) = 0;
     117             : 
     118             :   /* readonly attribute long state; */
     119             :   NS_IMETHOD GetState(int32_t *aState) = 0;
     120             : 
     121             :   /* readonly attribute unsigned long long lastChecked; */
     122             :   NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) = 0;
     123             : 
     124             : };
     125             : 
     126             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalService, NS_ICAPTIVEPORTALSERVICE_IID)
     127             : 
     128             : /* Use this macro when declaring classes that implement this interface. */
     129             : #define NS_DECL_NSICAPTIVEPORTALSERVICE \
     130             :   NS_IMETHOD RecheckCaptivePortal(void) override; \
     131             :   NS_IMETHOD GetState(int32_t *aState) override; \
     132             :   NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) override; 
     133             : 
     134             : /* Use this macro when declaring the members of this interface when the
     135             :    class doesn't implement the interface. This is useful for forwarding. */
     136             : #define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALSERVICE \
     137             :   nsresult RecheckCaptivePortal(void); \
     138             :   nsresult GetState(int32_t *aState); \
     139             :   nsresult GetLastChecked(uint64_t *aLastChecked); 
     140             : 
     141             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     142             : #define NS_FORWARD_NSICAPTIVEPORTALSERVICE(_to) \
     143             :   NS_IMETHOD RecheckCaptivePortal(void) override { return _to RecheckCaptivePortal(); } \
     144             :   NS_IMETHOD GetState(int32_t *aState) override { return _to GetState(aState); } \
     145             :   NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) override { return _to GetLastChecked(aLastChecked); } 
     146             : 
     147             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     148             : #define NS_FORWARD_SAFE_NSICAPTIVEPORTALSERVICE(_to) \
     149             :   NS_IMETHOD RecheckCaptivePortal(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RecheckCaptivePortal(); } \
     150             :   NS_IMETHOD GetState(int32_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
     151             :   NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChecked(aLastChecked); } 
     152             : 
     153             : #if 0
     154             : /* Use the code below as a template for the implementation class for this interface. */
     155             : 
     156             : /* Header file */
     157             : class nsCaptivePortalService : public nsICaptivePortalService
     158             : {
     159             : public:
     160             :   NS_DECL_ISUPPORTS
     161             :   NS_DECL_NSICAPTIVEPORTALSERVICE
     162             : 
     163             :   nsCaptivePortalService();
     164             : 
     165             : private:
     166             :   ~nsCaptivePortalService();
     167             : 
     168             : protected:
     169             :   /* additional members */
     170             : };
     171             : 
     172             : /* Implementation file */
     173             : NS_IMPL_ISUPPORTS(nsCaptivePortalService, nsICaptivePortalService)
     174             : 
     175             : nsCaptivePortalService::nsCaptivePortalService()
     176             : {
     177             :   /* member initializers and constructor code */
     178             : }
     179             : 
     180             : nsCaptivePortalService::~nsCaptivePortalService()
     181             : {
     182             :   /* destructor code */
     183             : }
     184             : 
     185             : /* void recheckCaptivePortal (); */
     186             : NS_IMETHODIMP nsCaptivePortalService::RecheckCaptivePortal()
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : 
     191             : /* readonly attribute long state; */
     192             : NS_IMETHODIMP nsCaptivePortalService::GetState(int32_t *aState)
     193             : {
     194             :     return NS_ERROR_NOT_IMPLEMENTED;
     195             : }
     196             : 
     197             : /* readonly attribute unsigned long long lastChecked; */
     198             : NS_IMETHODIMP nsCaptivePortalService::GetLastChecked(uint64_t *aLastChecked)
     199             : {
     200             :     return NS_ERROR_NOT_IMPLEMENTED;
     201             : }
     202             : 
     203             : /* End of implementation class template. */
     204             : #endif
     205             : 
     206             : /**
     207             :  * This observer notification will be emitted when the captive portal state
     208             :  * changes. After receiving it, the ContentParent will send an IPC message
     209             :  * to the ContentChild, which will set the state in the captive portal service
     210             :  * in the child.
     211             :  */
     212             : #define NS_IPC_CAPTIVE_PORTAL_SET_STATE "ipc:network:captive-portal-set-state"
     213             : 
     214             : #endif /* __gen_nsICaptivePortalService_h__ */

Generated by: LCOV version 1.13