LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIHttpChannelAuthProvider.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/nsIHttpChannelAuthProvider.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIHttpChannelAuthProvider_h__
       6             : #define __gen_nsIHttpChannelAuthProvider_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsICancelable_h__
      10             : #include "nsICancelable.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 nsIHttpChannel; /* forward declaration */
      18             : 
      19             : class nsIHttpAuthenticableChannel; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIHttpChannelAuthProvider */
      23             : #define NS_IHTTPCHANNELAUTHPROVIDER_IID_STR "788f331b-2e1f-436c-b405-4f88a31a105b"
      24             : 
      25             : #define NS_IHTTPCHANNELAUTHPROVIDER_IID \
      26             :   {0x788f331b, 0x2e1f, 0x436c, \
      27             :     { 0xb4, 0x05, 0x4f, 0x88, 0xa3, 0x1a, 0x10, 0x5b }}
      28             : 
      29           6 : class NS_NO_VTABLE nsIHttpChannelAuthProvider : public nsICancelable {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNELAUTHPROVIDER_IID)
      33             : 
      34             :   /* [must_use] void init (in nsIHttpAuthenticableChannel channel); */
      35             :   MOZ_MUST_USE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) = 0;
      36             : 
      37             :   /* [must_use] void processAuthentication (in unsigned long httpStatus, in boolean sslConnectFailed); */
      38             :   MOZ_MUST_USE NS_IMETHOD ProcessAuthentication(uint32_t httpStatus, bool sslConnectFailed) = 0;
      39             : 
      40             :   /* [must_use] void addAuthorizationHeaders (in boolean dontUseCachedWWWCreds); */
      41             :   MOZ_MUST_USE NS_IMETHOD AddAuthorizationHeaders(bool dontUseCachedWWWCreds) = 0;
      42             : 
      43             :   /* [must_use] void checkForSuperfluousAuth (); */
      44             :   MOZ_MUST_USE NS_IMETHOD CheckForSuperfluousAuth(void) = 0;
      45             : 
      46             :   /* [must_use] void disconnect (in nsresult status); */
      47             :   MOZ_MUST_USE NS_IMETHOD Disconnect(nsresult status) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannelAuthProvider, NS_IHTTPCHANNELAUTHPROVIDER_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSIHTTPCHANNELAUTHPROVIDER \
      55             :   MOZ_MUST_USE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) override; \
      56             :   MOZ_MUST_USE NS_IMETHOD ProcessAuthentication(uint32_t httpStatus, bool sslConnectFailed) override; \
      57             :   MOZ_MUST_USE NS_IMETHOD AddAuthorizationHeaders(bool dontUseCachedWWWCreds) override; \
      58             :   MOZ_MUST_USE NS_IMETHOD CheckForSuperfluousAuth(void) override; \
      59             :   MOZ_MUST_USE NS_IMETHOD Disconnect(nsresult status) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSIHTTPCHANNELAUTHPROVIDER \
      64             :   MOZ_MUST_USE nsresult Init(nsIHttpAuthenticableChannel *channel); \
      65             :   MOZ_MUST_USE nsresult ProcessAuthentication(uint32_t httpStatus, bool sslConnectFailed); \
      66             :   MOZ_MUST_USE nsresult AddAuthorizationHeaders(bool dontUseCachedWWWCreds); \
      67             :   MOZ_MUST_USE nsresult CheckForSuperfluousAuth(void); \
      68             :   MOZ_MUST_USE nsresult Disconnect(nsresult status); 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      71             : #define NS_FORWARD_NSIHTTPCHANNELAUTHPROVIDER(_to) \
      72             :   MOZ_MUST_USE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) override { return _to Init(channel); } \
      73             :   MOZ_MUST_USE NS_IMETHOD ProcessAuthentication(uint32_t httpStatus, bool sslConnectFailed) override { return _to ProcessAuthentication(httpStatus, sslConnectFailed); } \
      74             :   MOZ_MUST_USE NS_IMETHOD AddAuthorizationHeaders(bool dontUseCachedWWWCreds) override { return _to AddAuthorizationHeaders(dontUseCachedWWWCreds); } \
      75             :   MOZ_MUST_USE NS_IMETHOD CheckForSuperfluousAuth(void) override { return _to CheckForSuperfluousAuth(); } \
      76             :   MOZ_MUST_USE NS_IMETHOD Disconnect(nsresult status) override { return _to Disconnect(status); } 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79             : #define NS_FORWARD_SAFE_NSIHTTPCHANNELAUTHPROVIDER(_to) \
      80             :   MOZ_MUST_USE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(channel); } \
      81             :   MOZ_MUST_USE NS_IMETHOD ProcessAuthentication(uint32_t httpStatus, bool sslConnectFailed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessAuthentication(httpStatus, sslConnectFailed); } \
      82             :   MOZ_MUST_USE NS_IMETHOD AddAuthorizationHeaders(bool dontUseCachedWWWCreds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAuthorizationHeaders(dontUseCachedWWWCreds); } \
      83             :   MOZ_MUST_USE NS_IMETHOD CheckForSuperfluousAuth(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForSuperfluousAuth(); } \
      84             :   MOZ_MUST_USE NS_IMETHOD Disconnect(nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Disconnect(status); } 
      85             : 
      86             : #if 0
      87             : /* Use the code below as a template for the implementation class for this interface. */
      88             : 
      89             : /* Header file */
      90             : class nsHttpChannelAuthProvider : public nsIHttpChannelAuthProvider
      91             : {
      92             : public:
      93             :   NS_DECL_ISUPPORTS
      94             :   NS_DECL_NSIHTTPCHANNELAUTHPROVIDER
      95             : 
      96             :   nsHttpChannelAuthProvider();
      97             : 
      98             : private:
      99             :   ~nsHttpChannelAuthProvider();
     100             : 
     101             : protected:
     102             :   /* additional members */
     103             : };
     104             : 
     105             : /* Implementation file */
     106             : NS_IMPL_ISUPPORTS(nsHttpChannelAuthProvider, nsIHttpChannelAuthProvider)
     107             : 
     108             : nsHttpChannelAuthProvider::nsHttpChannelAuthProvider()
     109             : {
     110             :   /* member initializers and constructor code */
     111             : }
     112             : 
     113             : nsHttpChannelAuthProvider::~nsHttpChannelAuthProvider()
     114             : {
     115             :   /* destructor code */
     116             : }
     117             : 
     118             : /* [must_use] void init (in nsIHttpAuthenticableChannel channel); */
     119             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelAuthProvider::Init(nsIHttpAuthenticableChannel *channel)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* [must_use] void processAuthentication (in unsigned long httpStatus, in boolean sslConnectFailed); */
     125             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelAuthProvider::ProcessAuthentication(uint32_t httpStatus, bool sslConnectFailed)
     126             : {
     127             :     return NS_ERROR_NOT_IMPLEMENTED;
     128             : }
     129             : 
     130             : /* [must_use] void addAuthorizationHeaders (in boolean dontUseCachedWWWCreds); */
     131             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelAuthProvider::AddAuthorizationHeaders(bool dontUseCachedWWWCreds)
     132             : {
     133             :     return NS_ERROR_NOT_IMPLEMENTED;
     134             : }
     135             : 
     136             : /* [must_use] void checkForSuperfluousAuth (); */
     137             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelAuthProvider::CheckForSuperfluousAuth()
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* [must_use] void disconnect (in nsresult status); */
     143             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelAuthProvider::Disconnect(nsresult status)
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* End of implementation class template. */
     149             : #endif
     150             : 
     151             : 
     152             : #endif /* __gen_nsIHttpChannelAuthProvider_h__ */

Generated by: LCOV version 1.13