LCOV - app.info - objdir/dist/include/nsIProtocolProxyService.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIProtocolProxyService.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-07-07 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-rel-lnx-codecoverage/build/netwerk/base/public/nsIProtocolProxyService.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIProtocolProxyService_h__
           6                 : #define __gen_nsIProtocolProxyService_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                 : class nsICancelable; /* forward declaration */
          18                 :
          19                 : class nsIProtocolProxyCallback; /* forward declaration */
          20                 :
          21                 : class nsIProtocolProxyFilter; /* forward declaration */
          22                 :
          23                 : class nsIProxyInfo; /* forward declaration */
          24                 :
          25                 : class nsIChannel; /* forward declaration */
          26                 :
          27                 : class nsIURI; /* forward declaration */
          28                 :
          29                 :
          30                 : /* starting interface:    nsIProtocolProxyService */
          31                 : #define NS_IPROTOCOLPROXYSERVICE_IID_STR "d7ec6237-162e-40f5-a2b4-46ccd5fa83c9"
          32                 :
          33                 : #define NS_IPROTOCOLPROXYSERVICE_IID \
          34                 :   {0xd7ec6237, 0x162e, 0x40f5, \
          35                 :     { 0xa2, 0xb4, 0x46, 0xcc, 0xd5, 0xfa, 0x83, 0xc9 }}
          36                 :
          37             278 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProtocolProxyService : public nsISupports {
          38                 :  public:
          39                 :
          40                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROTOCOLPROXYSERVICE_IID)
          41                 :
          42                 :   enum {
          43                 :     RESOLVE_NON_BLOCKING = 1U,
          44                 :     RESOLVE_PREFER_SOCKS_PROXY = 2U,
          45                 :     RESOLVE_IGNORE_URI_SCHEME = 4U,
          46                 :     RESOLVE_PREFER_HTTPS_PROXY = 12U,
          47                 :     RESOLVE_ALWAYS_TUNNEL = 16U
          48                 :   };
          49                 :
          50                 :   /* nsIProxyInfo resolve (in nsIURI aURI, in unsigned long aFlags); */
          51                 :   NS_SCRIPTABLE NS_IMETHOD Resolve(nsIURI *aURI, PRUint32 aFlags, nsIProxyInfo * *_retval NS_OUTPARAM) = 0;
          52                 :
          53                 :   /* nsICancelable asyncResolve (in nsIURI aURI, in unsigned long aFlags, in nsIProtocolProxyCallback aCallback); */
          54                 :   NS_SCRIPTABLE NS_IMETHOD AsyncResolve(nsIURI *aURI, PRUint32 aFlags, nsIProtocolProxyCallback *aCallback, nsICancelable * *_retval NS_OUTPARAM) = 0;
          55                 :
          56                 :   /* nsIProxyInfo newProxyInfo (in ACString aType, in AUTF8String aHost, in long aPort, in unsigned long aFlags, in unsigned long aFailoverTimeout, in nsIProxyInfo aFailoverProxy); */
          57                 :   NS_SCRIPTABLE NS_IMETHOD NewProxyInfo(const nsACString & aType, const nsACString & aHost, PRInt32 aPort, PRUint32 aFlags, PRUint32 aFailoverTimeout, nsIProxyInfo *aFailoverProxy, nsIProxyInfo * *_retval NS_OUTPARAM) = 0;
          58                 :
          59                 :   /* nsIProxyInfo getFailoverForProxy (in nsIProxyInfo aProxyInfo, in nsIURI aURI, in nsresult aReason); */
          60                 :   NS_SCRIPTABLE NS_IMETHOD GetFailoverForProxy(nsIProxyInfo *aProxyInfo, nsIURI *aURI, nsresult aReason, nsIProxyInfo * *_retval NS_OUTPARAM) = 0;
          61                 :
          62                 :   /* void registerFilter (in nsIProtocolProxyFilter aFilter, in unsigned long aPosition); */
          63                 :   NS_SCRIPTABLE NS_IMETHOD RegisterFilter(nsIProtocolProxyFilter *aFilter, PRUint32 aPosition) = 0;
          64                 :
          65                 :   /* void unregisterFilter (in nsIProtocolProxyFilter aFilter); */
          66                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterFilter(nsIProtocolProxyFilter *aFilter) = 0;
          67                 :
          68                 :   enum {
          69                 :     PROXYCONFIG_DIRECT = 0U,
          70                 :     PROXYCONFIG_MANUAL = 1U,
          71                 :     PROXYCONFIG_PAC = 2U,
          72                 :     PROXYCONFIG_WPAD = 4U,
          73                 :     PROXYCONFIG_SYSTEM = 5U
          74                 :   };
          75                 :
          76                 :   /* readonly attribute unsigned long proxyConfigType; */
          77                 :   NS_SCRIPTABLE NS_IMETHOD GetProxyConfigType(PRUint32 *aProxyConfigType) = 0;
          78                 :
          79                 : };
          80                 :
          81                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIProtocolProxyService, NS_IPROTOCOLPROXYSERVICE_IID)
          82                 :
          83                 : /* Use this macro when declaring classes that implement this interface. */
          84                 : #define NS_DECL_NSIPROTOCOLPROXYSERVICE \
          85                 :   NS_SCRIPTABLE NS_IMETHOD Resolve(nsIURI *aURI, PRUint32 aFlags, nsIProxyInfo * *_retval NS_OUTPARAM); \
          86                 :   NS_SCRIPTABLE NS_IMETHOD AsyncResolve(nsIURI *aURI, PRUint32 aFlags, nsIProtocolProxyCallback *aCallback, nsICancelable * *_retval NS_OUTPARAM); \
          87                 :   NS_SCRIPTABLE NS_IMETHOD NewProxyInfo(const nsACString & aType, const nsACString & aHost, PRInt32 aPort, PRUint32 aFlags, PRUint32 aFailoverTimeout, nsIProxyInfo *aFailoverProxy, nsIProxyInfo * *_retval NS_OUTPARAM); \
          88                 :   NS_SCRIPTABLE NS_IMETHOD GetFailoverForProxy(nsIProxyInfo *aProxyInfo, nsIURI *aURI, nsresult aReason, nsIProxyInfo * *_retval NS_OUTPARAM); \
          89                 :   NS_SCRIPTABLE NS_IMETHOD RegisterFilter(nsIProtocolProxyFilter *aFilter, PRUint32 aPosition); \
          90                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterFilter(nsIProtocolProxyFilter *aFilter); \
          91                 :   NS_SCRIPTABLE NS_IMETHOD GetProxyConfigType(PRUint32 *aProxyConfigType);
          92                 :
          93                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          94                 : #define NS_FORWARD_NSIPROTOCOLPROXYSERVICE(_to) \
          95                 :   NS_SCRIPTABLE NS_IMETHOD Resolve(nsIURI *aURI, PRUint32 aFlags, nsIProxyInfo * *_retval NS_OUTPARAM) { return _to Resolve(aURI, aFlags, _retval); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD AsyncResolve(nsIURI *aURI, PRUint32 aFlags, nsIProtocolProxyCallback *aCallback, nsICancelable * *_retval NS_OUTPARAM) { return _to AsyncResolve(aURI, aFlags, aCallback, _retval); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD NewProxyInfo(const nsACString & aType, const nsACString & aHost, PRInt32 aPort, PRUint32 aFlags, PRUint32 aFailoverTimeout, nsIProxyInfo *aFailoverProxy, nsIProxyInfo * *_retval NS_OUTPARAM) { return _to NewProxyInfo(aType, aHost, aPort, aFlags, aFailoverTimeout, aFailoverProxy, _retval); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetFailoverForProxy(nsIProxyInfo *aProxyInfo, nsIURI *aURI, nsresult aReason, nsIProxyInfo * *_retval NS_OUTPARAM) { return _to GetFailoverForProxy(aProxyInfo, aURI, aReason, _retval); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD RegisterFilter(nsIProtocolProxyFilter *aFilter, PRUint32 aPosition) { return _to RegisterFilter(aFilter, aPosition); } \
         100                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterFilter(nsIProtocolProxyFilter *aFilter) { return _to UnregisterFilter(aFilter); } \
         101                 :   NS_SCRIPTABLE NS_IMETHOD GetProxyConfigType(PRUint32 *aProxyConfigType) { return _to GetProxyConfigType(aProxyConfigType); }
         102                 :
         103                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         104                 : #define NS_FORWARD_SAFE_NSIPROTOCOLPROXYSERVICE(_to) \
         105                 :   NS_SCRIPTABLE NS_IMETHOD Resolve(nsIURI *aURI, PRUint32 aFlags, nsIProxyInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(aURI, aFlags, _retval); } \
         106                 :   NS_SCRIPTABLE NS_IMETHOD AsyncResolve(nsIURI *aURI, PRUint32 aFlags, nsIProtocolProxyCallback *aCallback, nsICancelable * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncResolve(aURI, aFlags, aCallback, _retval); } \
         107                 :   NS_SCRIPTABLE NS_IMETHOD NewProxyInfo(const nsACString & aType, const nsACString & aHost, PRInt32 aPort, PRUint32 aFlags, PRUint32 aFailoverTimeout, nsIProxyInfo *aFailoverProxy, nsIProxyInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewProxyInfo(aType, aHost, aPort, aFlags, aFailoverTimeout, aFailoverProxy, _retval); } \
         108                 :   NS_SCRIPTABLE NS_IMETHOD GetFailoverForProxy(nsIProxyInfo *aProxyInfo, nsIURI *aURI, nsresult aReason, nsIProxyInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverForProxy(aProxyInfo, aURI, aReason, _retval); } \
         109                 :   NS_SCRIPTABLE NS_IMETHOD RegisterFilter(nsIProtocolProxyFilter *aFilter, PRUint32 aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterFilter(aFilter, aPosition); } \
         110                 :   NS_SCRIPTABLE NS_IMETHOD UnregisterFilter(nsIProtocolProxyFilter *aFilter) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterFilter(aFilter); } \
         111                 :   NS_SCRIPTABLE NS_IMETHOD GetProxyConfigType(PRUint32 *aProxyConfigType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyConfigType(aProxyConfigType); }
         112                 :
         113                 : #if 0
         114                 : /* Use the code below as a template for the implementation class for this interface. */
         115                 :
         116                 : /* Header file */
         117                 : class nsProtocolProxyService : public nsIProtocolProxyService
         118                 : {
         119                 : public:
         120                 :   NS_DECL_ISUPPORTS
         121                 :   NS_DECL_NSIPROTOCOLPROXYSERVICE
         122                 :
         123                 :   nsProtocolProxyService();
         124                 :
         125                 : private:
         126                 :   ~nsProtocolProxyService();
         127                 :
         128                 : protected:
         129                 :   /* additional members */
         130                 : };
         131                 :
         132                 : /* Implementation file */
         133                 : NS_IMPL_ISUPPORTS1(nsProtocolProxyService, nsIProtocolProxyService)
         134                 :
         135                 : nsProtocolProxyService::nsProtocolProxyService()
         136                 : {
         137                 :   /* member initializers and constructor code */
         138                 : }
         139                 :
         140                 : nsProtocolProxyService::~nsProtocolProxyService()
         141                 : {
         142                 :   /* destructor code */
         143                 : }
         144                 :
         145                 : /* nsIProxyInfo resolve (in nsIURI aURI, in unsigned long aFlags); */
         146                 : NS_IMETHODIMP nsProtocolProxyService::Resolve(nsIURI *aURI, PRUint32 aFlags, nsIProxyInfo * *_retval NS_OUTPARAM)
         147                 : {
         148                 :     return NS_ERROR_NOT_IMPLEMENTED;
         149                 : }
         150                 :
         151                 : /* nsICancelable asyncResolve (in nsIURI aURI, in unsigned long aFlags, in nsIProtocolProxyCallback aCallback); */
         152                 : NS_IMETHODIMP nsProtocolProxyService::AsyncResolve(nsIURI *aURI, PRUint32 aFlags, nsIProtocolProxyCallback *aCallback, nsICancelable * *_retval NS_OUTPARAM)
         153                 : {
         154                 :     return NS_ERROR_NOT_IMPLEMENTED;
         155                 : }
         156                 :
         157                 : /* nsIProxyInfo newProxyInfo (in ACString aType, in AUTF8String aHost, in long aPort, in unsigned long aFlags, in unsigned long aFailoverTimeout, in nsIProxyInfo aFailoverProxy); */
         158                 : NS_IMETHODIMP nsProtocolProxyService::NewProxyInfo(const nsACString & aType, const nsACString & aHost, PRInt32 aPort, PRUint32 aFlags, PRUint32 aFailoverTimeout, nsIProxyInfo *aFailoverProxy, nsIProxyInfo * *_retval NS_OUTPARAM)
         159                 : {
         160                 :     return NS_ERROR_NOT_IMPLEMENTED;
         161                 : }
         162                 :
         163                 : /* nsIProxyInfo getFailoverForProxy (in nsIProxyInfo aProxyInfo, in nsIURI aURI, in nsresult aReason); */
         164                 : NS_IMETHODIMP nsProtocolProxyService::GetFailoverForProxy(nsIProxyInfo *aProxyInfo, nsIURI *aURI, nsresult aReason, nsIProxyInfo * *_retval NS_OUTPARAM)
         165                 : {
         166                 :     return NS_ERROR_NOT_IMPLEMENTED;
         167                 : }
         168                 :
         169                 : /* void registerFilter (in nsIProtocolProxyFilter aFilter, in unsigned long aPosition); */
         170                 : NS_IMETHODIMP nsProtocolProxyService::RegisterFilter(nsIProtocolProxyFilter *aFilter, PRUint32 aPosition)
         171                 : {
         172                 :     return NS_ERROR_NOT_IMPLEMENTED;
         173                 : }
         174                 :
         175                 : /* void unregisterFilter (in nsIProtocolProxyFilter aFilter); */
         176                 : NS_IMETHODIMP nsProtocolProxyService::UnregisterFilter(nsIProtocolProxyFilter *aFilter)
         177                 : {
         178                 :     return NS_ERROR_NOT_IMPLEMENTED;
         179                 : }
         180                 :
         181                 : /* readonly attribute unsigned long proxyConfigType; */
         182                 : NS_IMETHODIMP nsProtocolProxyService::GetProxyConfigType(PRUint32 *aProxyConfigType)
         183                 : {
         184                 :     return NS_ERROR_NOT_IMPLEMENTED;
         185                 : }
         186                 :
         187                 : /* End of implementation class template. */
         188                 : #endif
         189                 :
         190                 :
         191                 : #endif /* __gen_nsIProtocolProxyService_h__ */

Generated by: LCOV version 1.7