/usr/include/thunderbird/nsINetworkInterceptController.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 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsINetworkInterceptController.idl
*/
#ifndef __gen_nsINetworkInterceptController_h__
#define __gen_nsINetworkInterceptController_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIContentPolicyBase_h__
#include "nsIContentPolicyBase.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIChannel; /* forward declaration */
class nsIConsoleReportCollector; /* forward declaration */
class nsIOutputStream; /* forward declaration */
class nsIURI; /* forward declaration */
#include "nsIConsoleReportCollector.h"
namespace mozilla {
namespace dom {
class ChannelInfo;
}
}
/* starting interface: nsIInterceptedChannel */
#define NS_IINTERCEPTEDCHANNEL_IID_STR "f4b82975-6a86-4cc4-87fe-9a1fd430c86d"
#define NS_IINTERCEPTEDCHANNEL_IID \
{0xf4b82975, 0x6a86, 0x4cc4, \
{ 0x87, 0xfe, 0x9a, 0x1f, 0xd4, 0x30, 0xc8, 0x6d }}
class nsIInterceptedChannel : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINTERCEPTEDCHANNEL_IID)
/* void resetInterception (); */
NS_IMETHOD ResetInterception(void) = 0;
/* void synthesizeStatus (in uint16_t status, in ACString reason); */
NS_IMETHOD SynthesizeStatus(uint16_t status, const nsACString & reason) = 0;
/* void synthesizeHeader (in ACString name, in ACString value); */
NS_IMETHOD SynthesizeHeader(const nsACString & name, const nsACString & value) = 0;
/* void finishSynthesizedResponse (in ACString finalURLSpec); */
NS_IMETHOD FinishSynthesizedResponse(const nsACString & finalURLSpec) = 0;
/* void cancel (in nsresult status); */
NS_IMETHOD Cancel(nsresult status) = 0;
/* readonly attribute nsIOutputStream responseBody; */
NS_IMETHOD GetResponseBody(nsIOutputStream * *aResponseBody) = 0;
/* readonly attribute nsIChannel channel; */
NS_IMETHOD GetChannel(nsIChannel * *aChannel) = 0;
/* readonly attribute nsIURI secureUpgradedChannelURI; */
NS_IMETHOD GetSecureUpgradedChannelURI(nsIURI * *aSecureUpgradedChannelURI) = 0;
/* [noscript] void setChannelInfo (in ChannelInfo channelInfo); */
NS_IMETHOD SetChannelInfo(mozilla::dom::ChannelInfo *channelInfo) = 0;
/* [noscript] readonly attribute nsContentPolicyType internalContentPolicyType; */
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) = 0;
/* [noscript] readonly attribute nsIConsoleReportCollector consoleReportCollector; */
NS_IMETHOD GetConsoleReportCollector(nsIConsoleReportCollector * *aConsoleReportCollector) = 0;
already_AddRefed<nsIConsoleReportCollector>
GetConsoleReportCollector()
{
nsCOMPtr<nsIConsoleReportCollector> reporter;
GetConsoleReportCollector(getter_AddRefs(reporter));
return reporter.forget();
}
/* [noscript] void setReleaseHandle (in nsISupports aHandle); */
NS_IMETHOD SetReleaseHandle(nsISupports *aHandle) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIInterceptedChannel, NS_IINTERCEPTEDCHANNEL_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIINTERCEPTEDCHANNEL \
NS_IMETHOD ResetInterception(void) override; \
NS_IMETHOD SynthesizeStatus(uint16_t status, const nsACString & reason) override; \
NS_IMETHOD SynthesizeHeader(const nsACString & name, const nsACString & value) override; \
NS_IMETHOD FinishSynthesizedResponse(const nsACString & finalURLSpec) override; \
NS_IMETHOD Cancel(nsresult status) override; \
NS_IMETHOD GetResponseBody(nsIOutputStream * *aResponseBody) override; \
NS_IMETHOD GetChannel(nsIChannel * *aChannel) override; \
NS_IMETHOD GetSecureUpgradedChannelURI(nsIURI * *aSecureUpgradedChannelURI) override; \
NS_IMETHOD SetChannelInfo(mozilla::dom::ChannelInfo *channelInfo) override; \
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) override; \
NS_IMETHOD GetConsoleReportCollector(nsIConsoleReportCollector * *aConsoleReportCollector) override; \
NS_IMETHOD SetReleaseHandle(nsISupports *aHandle) 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_NSIINTERCEPTEDCHANNEL \
NS_METHOD ResetInterception(void); \
NS_METHOD SynthesizeStatus(uint16_t status, const nsACString & reason); \
NS_METHOD SynthesizeHeader(const nsACString & name, const nsACString & value); \
NS_METHOD FinishSynthesizedResponse(const nsACString & finalURLSpec); \
NS_METHOD Cancel(nsresult status); \
NS_METHOD GetResponseBody(nsIOutputStream * *aResponseBody); \
NS_METHOD GetChannel(nsIChannel * *aChannel); \
NS_METHOD GetSecureUpgradedChannelURI(nsIURI * *aSecureUpgradedChannelURI); \
NS_METHOD SetChannelInfo(mozilla::dom::ChannelInfo *channelInfo); \
NS_METHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType); \
NS_METHOD GetConsoleReportCollector(nsIConsoleReportCollector * *aConsoleReportCollector); \
NS_METHOD SetReleaseHandle(nsISupports *aHandle);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIINTERCEPTEDCHANNEL(_to) \
NS_IMETHOD ResetInterception(void) override { return _to ResetInterception(); } \
NS_IMETHOD SynthesizeStatus(uint16_t status, const nsACString & reason) override { return _to SynthesizeStatus(status, reason); } \
NS_IMETHOD SynthesizeHeader(const nsACString & name, const nsACString & value) override { return _to SynthesizeHeader(name, value); } \
NS_IMETHOD FinishSynthesizedResponse(const nsACString & finalURLSpec) override { return _to FinishSynthesizedResponse(finalURLSpec); } \
NS_IMETHOD Cancel(nsresult status) override { return _to Cancel(status); } \
NS_IMETHOD GetResponseBody(nsIOutputStream * *aResponseBody) override { return _to GetResponseBody(aResponseBody); } \
NS_IMETHOD GetChannel(nsIChannel * *aChannel) override { return _to GetChannel(aChannel); } \
NS_IMETHOD GetSecureUpgradedChannelURI(nsIURI * *aSecureUpgradedChannelURI) override { return _to GetSecureUpgradedChannelURI(aSecureUpgradedChannelURI); } \
NS_IMETHOD SetChannelInfo(mozilla::dom::ChannelInfo *channelInfo) override { return _to SetChannelInfo(channelInfo); } \
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) override { return _to GetInternalContentPolicyType(aInternalContentPolicyType); } \
NS_IMETHOD GetConsoleReportCollector(nsIConsoleReportCollector * *aConsoleReportCollector) override { return _to GetConsoleReportCollector(aConsoleReportCollector); } \
NS_IMETHOD SetReleaseHandle(nsISupports *aHandle) override { return _to SetReleaseHandle(aHandle); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIINTERCEPTEDCHANNEL(_to) \
NS_IMETHOD ResetInterception(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetInterception(); } \
NS_IMETHOD SynthesizeStatus(uint16_t status, const nsACString & reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SynthesizeStatus(status, reason); } \
NS_IMETHOD SynthesizeHeader(const nsACString & name, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SynthesizeHeader(name, value); } \
NS_IMETHOD FinishSynthesizedResponse(const nsACString & finalURLSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishSynthesizedResponse(finalURLSpec); } \
NS_IMETHOD Cancel(nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(status); } \
NS_IMETHOD GetResponseBody(nsIOutputStream * *aResponseBody) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseBody(aResponseBody); } \
NS_IMETHOD GetChannel(nsIChannel * *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
NS_IMETHOD GetSecureUpgradedChannelURI(nsIURI * *aSecureUpgradedChannelURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecureUpgradedChannelURI(aSecureUpgradedChannelURI); } \
NS_IMETHOD SetChannelInfo(mozilla::dom::ChannelInfo *channelInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannelInfo(channelInfo); } \
NS_IMETHOD GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalContentPolicyType(aInternalContentPolicyType); } \
NS_IMETHOD GetConsoleReportCollector(nsIConsoleReportCollector * *aConsoleReportCollector) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConsoleReportCollector(aConsoleReportCollector); } \
NS_IMETHOD SetReleaseHandle(nsISupports *aHandle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReleaseHandle(aHandle); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsInterceptedChannel : public nsIInterceptedChannel
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIINTERCEPTEDCHANNEL
nsInterceptedChannel();
private:
~nsInterceptedChannel();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsInterceptedChannel, nsIInterceptedChannel)
nsInterceptedChannel::nsInterceptedChannel()
{
/* member initializers and constructor code */
}
nsInterceptedChannel::~nsInterceptedChannel()
{
/* destructor code */
}
/* void resetInterception (); */
NS_IMETHODIMP nsInterceptedChannel::ResetInterception()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void synthesizeStatus (in uint16_t status, in ACString reason); */
NS_IMETHODIMP nsInterceptedChannel::SynthesizeStatus(uint16_t status, const nsACString & reason)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void synthesizeHeader (in ACString name, in ACString value); */
NS_IMETHODIMP nsInterceptedChannel::SynthesizeHeader(const nsACString & name, const nsACString & value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void finishSynthesizedResponse (in ACString finalURLSpec); */
NS_IMETHODIMP nsInterceptedChannel::FinishSynthesizedResponse(const nsACString & finalURLSpec)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void cancel (in nsresult status); */
NS_IMETHODIMP nsInterceptedChannel::Cancel(nsresult status)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIOutputStream responseBody; */
NS_IMETHODIMP nsInterceptedChannel::GetResponseBody(nsIOutputStream * *aResponseBody)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIChannel channel; */
NS_IMETHODIMP nsInterceptedChannel::GetChannel(nsIChannel * *aChannel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIURI secureUpgradedChannelURI; */
NS_IMETHODIMP nsInterceptedChannel::GetSecureUpgradedChannelURI(nsIURI * *aSecureUpgradedChannelURI)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void setChannelInfo (in ChannelInfo channelInfo); */
NS_IMETHODIMP nsInterceptedChannel::SetChannelInfo(mozilla::dom::ChannelInfo *channelInfo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] readonly attribute nsContentPolicyType internalContentPolicyType; */
NS_IMETHODIMP nsInterceptedChannel::GetInternalContentPolicyType(nsContentPolicyType *aInternalContentPolicyType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] readonly attribute nsIConsoleReportCollector consoleReportCollector; */
NS_IMETHODIMP nsInterceptedChannel::GetConsoleReportCollector(nsIConsoleReportCollector * *aConsoleReportCollector)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void setReleaseHandle (in nsISupports aHandle); */
NS_IMETHODIMP nsInterceptedChannel::SetReleaseHandle(nsISupports *aHandle)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsINetworkInterceptController */
#define NS_INETWORKINTERCEPTCONTROLLER_IID_STR "70d2b4fe-a552-48cd-8d93-1d8437a56b53"
#define NS_INETWORKINTERCEPTCONTROLLER_IID \
{0x70d2b4fe, 0xa552, 0x48cd, \
{ 0x8d, 0x93, 0x1d, 0x84, 0x37, 0xa5, 0x6b, 0x53 }}
class NS_NO_VTABLE nsINetworkInterceptController : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETWORKINTERCEPTCONTROLLER_IID)
/* bool shouldPrepareForIntercept (in nsIURI aURI, in bool aIsNonSubresourceRequest); */
NS_IMETHOD ShouldPrepareForIntercept(nsIURI *aURI, bool aIsNonSubresourceRequest, bool *_retval) = 0;
/* void channelIntercepted (in nsIInterceptedChannel aChannel); */
NS_IMETHOD ChannelIntercepted(nsIInterceptedChannel *aChannel) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsINetworkInterceptController, NS_INETWORKINTERCEPTCONTROLLER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINETWORKINTERCEPTCONTROLLER \
NS_IMETHOD ShouldPrepareForIntercept(nsIURI *aURI, bool aIsNonSubresourceRequest, bool *_retval) override; \
NS_IMETHOD ChannelIntercepted(nsIInterceptedChannel *aChannel) 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_NSINETWORKINTERCEPTCONTROLLER \
NS_METHOD ShouldPrepareForIntercept(nsIURI *aURI, bool aIsNonSubresourceRequest, bool *_retval); \
NS_METHOD ChannelIntercepted(nsIInterceptedChannel *aChannel);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINETWORKINTERCEPTCONTROLLER(_to) \
NS_IMETHOD ShouldPrepareForIntercept(nsIURI *aURI, bool aIsNonSubresourceRequest, bool *_retval) override { return _to ShouldPrepareForIntercept(aURI, aIsNonSubresourceRequest, _retval); } \
NS_IMETHOD ChannelIntercepted(nsIInterceptedChannel *aChannel) override { return _to ChannelIntercepted(aChannel); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINETWORKINTERCEPTCONTROLLER(_to) \
NS_IMETHOD ShouldPrepareForIntercept(nsIURI *aURI, bool aIsNonSubresourceRequest, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShouldPrepareForIntercept(aURI, aIsNonSubresourceRequest, _retval); } \
NS_IMETHOD ChannelIntercepted(nsIInterceptedChannel *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChannelIntercepted(aChannel); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsNetworkInterceptController : public nsINetworkInterceptController
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSINETWORKINTERCEPTCONTROLLER
nsNetworkInterceptController();
private:
~nsNetworkInterceptController();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsNetworkInterceptController, nsINetworkInterceptController)
nsNetworkInterceptController::nsNetworkInterceptController()
{
/* member initializers and constructor code */
}
nsNetworkInterceptController::~nsNetworkInterceptController()
{
/* destructor code */
}
/* bool shouldPrepareForIntercept (in nsIURI aURI, in bool aIsNonSubresourceRequest); */
NS_IMETHODIMP nsNetworkInterceptController::ShouldPrepareForIntercept(nsIURI *aURI, bool aIsNonSubresourceRequest, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void channelIntercepted (in nsIInterceptedChannel aChannel); */
NS_IMETHODIMP nsNetworkInterceptController::ChannelIntercepted(nsIInterceptedChannel *aChannel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsINetworkInterceptController_h__ */
|