This file is indexed.

/usr/include/thunderbird/nsICaptivePortalService.h is in thunderbird-dev 1:52.8.0-1~deb8u1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICaptivePortalService.idl
 */

#ifndef __gen_nsICaptivePortalService_h__
#define __gen_nsICaptivePortalService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsICaptivePortalServiceCallback */
#define NS_ICAPTIVEPORTALSERVICECALLBACK_IID_STR "b5fd5629-d04c-4138-9529-9311f291ecd4"

#define NS_ICAPTIVEPORTALSERVICECALLBACK_IID \
  {0xb5fd5629, 0xd04c, 0x4138, \
    { 0x95, 0x29, 0x93, 0x11, 0xf2, 0x91, 0xec, 0xd4 }}

class NS_NO_VTABLE nsICaptivePortalServiceCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALSERVICECALLBACK_IID)

  /* void complete (in bool success, in nsresult error); */
  NS_IMETHOD Complete(bool success, nsresult error) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalServiceCallback, NS_ICAPTIVEPORTALSERVICECALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICAPTIVEPORTALSERVICECALLBACK \
  NS_IMETHOD Complete(bool success, nsresult error) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALSERVICECALLBACK \
  NS_METHOD Complete(bool success, nsresult error); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICAPTIVEPORTALSERVICECALLBACK(_to) \
  NS_IMETHOD Complete(bool success, nsresult error) override { return _to Complete(success, error); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICAPTIVEPORTALSERVICECALLBACK(_to) \
  NS_IMETHOD Complete(bool success, nsresult error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(success, error); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsCaptivePortalServiceCallback : public nsICaptivePortalServiceCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICAPTIVEPORTALSERVICECALLBACK

  nsCaptivePortalServiceCallback();

private:
  ~nsCaptivePortalServiceCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsCaptivePortalServiceCallback, nsICaptivePortalServiceCallback)

nsCaptivePortalServiceCallback::nsCaptivePortalServiceCallback()
{
  /* member initializers and constructor code */
}

nsCaptivePortalServiceCallback::~nsCaptivePortalServiceCallback()
{
  /* destructor code */
}

/* void complete (in bool success, in nsresult error); */
NS_IMETHODIMP nsCaptivePortalServiceCallback::Complete(bool success, nsresult error)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsICaptivePortalService */
#define NS_ICAPTIVEPORTALSERVICE_IID_STR "bdbe0555-fc3d-4f7b-9205-c309ceb2d641"

#define NS_ICAPTIVEPORTALSERVICE_IID \
  {0xbdbe0555, 0xfc3d, 0x4f7b, \
    { 0x92, 0x05, 0xc3, 0x09, 0xce, 0xb2, 0xd6, 0x41 }}

class NS_NO_VTABLE nsICaptivePortalService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICAPTIVEPORTALSERVICE_IID)

  enum {
    UNKNOWN = 0,
    NOT_CAPTIVE = 1,
    UNLOCKED_PORTAL = 2,
    LOCKED_PORTAL = 3
  };

  /* void recheckCaptivePortal (); */
  NS_IMETHOD RecheckCaptivePortal(void) = 0;

  /* readonly attribute long state; */
  NS_IMETHOD GetState(int32_t *aState) = 0;

  /* readonly attribute unsigned long long lastChecked; */
  NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICaptivePortalService, NS_ICAPTIVEPORTALSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICAPTIVEPORTALSERVICE \
  NS_IMETHOD RecheckCaptivePortal(void) override; \
  NS_IMETHOD GetState(int32_t *aState) override; \
  NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICAPTIVEPORTALSERVICE \
  NS_METHOD RecheckCaptivePortal(void); \
  NS_METHOD GetState(int32_t *aState); \
  NS_METHOD GetLastChecked(uint64_t *aLastChecked); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICAPTIVEPORTALSERVICE(_to) \
  NS_IMETHOD RecheckCaptivePortal(void) override { return _to RecheckCaptivePortal(); } \
  NS_IMETHOD GetState(int32_t *aState) override { return _to GetState(aState); } \
  NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) override { return _to GetLastChecked(aLastChecked); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICAPTIVEPORTALSERVICE(_to) \
  NS_IMETHOD RecheckCaptivePortal(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RecheckCaptivePortal(); } \
  NS_IMETHOD GetState(int32_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
  NS_IMETHOD GetLastChecked(uint64_t *aLastChecked) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChecked(aLastChecked); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsCaptivePortalService : public nsICaptivePortalService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICAPTIVEPORTALSERVICE

  nsCaptivePortalService();

private:
  ~nsCaptivePortalService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsCaptivePortalService, nsICaptivePortalService)

nsCaptivePortalService::nsCaptivePortalService()
{
  /* member initializers and constructor code */
}

nsCaptivePortalService::~nsCaptivePortalService()
{
  /* destructor code */
}

/* void recheckCaptivePortal (); */
NS_IMETHODIMP nsCaptivePortalService::RecheckCaptivePortal()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long state; */
NS_IMETHODIMP nsCaptivePortalService::GetState(int32_t *aState)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long lastChecked; */
NS_IMETHODIMP nsCaptivePortalService::GetLastChecked(uint64_t *aLastChecked)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

/**
 * This observer notification will be emitted when the captive portal state
 * changes. After receiving it, the ContentParent will send an IPC message
 * to the ContentChild, which will set the state in the captive portal service
 * in the child.
 */
#define NS_IPC_CAPTIVE_PORTAL_SET_STATE "ipc:network:captive-portal-set-state"

#endif /* __gen_nsICaptivePortalService_h__ */