LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIExternalProtocolService.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/nsIExternalProtocolService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIExternalProtocolService_h__
       6             : #define __gen_nsIExternalProtocolService_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 nsIURI; /* forward declaration */
      18             : 
      19             : class nsIFile; /* forward declaration */
      20             : 
      21             : class nsIInterfaceRequestor; /* forward declaration */
      22             : 
      23             : class nsIHandlerInfo; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsIExternalProtocolService */
      27             : #define NS_IEXTERNALPROTOCOLSERVICE_IID_STR "70f93b7a-3ec6-4bcb-b093-92d9984c9f83"
      28             : 
      29             : #define NS_IEXTERNALPROTOCOLSERVICE_IID \
      30             :   {0x70f93b7a, 0x3ec6, 0x4bcb, \
      31             :     { 0xb0, 0x93, 0x92, 0xd9, 0x98, 0x4c, 0x9f, 0x83 }}
      32             : 
      33           3 : class NS_NO_VTABLE nsIExternalProtocolService : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXTERNALPROTOCOLSERVICE_IID)
      37             : 
      38             :   /* boolean externalProtocolHandlerExists (in string aProtocolScheme); */
      39             :   NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval) = 0;
      40             : 
      41             :   /* boolean isExposedProtocol (in string aProtocolScheme); */
      42             :   NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval) = 0;
      43             : 
      44             :   /* nsIHandlerInfo getProtocolHandlerInfo (in ACString aProtocolScheme); */
      45             :   NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval) = 0;
      46             : 
      47             :   /* nsIHandlerInfo getProtocolHandlerInfoFromOS (in ACString aProtocolScheme, out boolean aFound); */
      48             :   NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound, nsIHandlerInfo * *_retval) = 0;
      49             : 
      50             :   /* void setProtocolHandlerDefaults (in nsIHandlerInfo aHandlerInfo, in boolean aOSHandlerExists); */
      51             :   NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) = 0;
      52             : 
      53             :   /* [deprecated] void loadUrl (in nsIURI aURL); */
      54             :   NS_IMETHOD LoadUrl(nsIURI *aURL) = 0;
      55             : 
      56             :   /* void loadURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
      57             :   NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0;
      58             : 
      59             :   /* AString getApplicationDescription (in AUTF8String aScheme); */
      60             :   NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval) = 0;
      61             : 
      62             : };
      63             : 
      64             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIExternalProtocolService, NS_IEXTERNALPROTOCOLSERVICE_IID)
      65             : 
      66             : /* Use this macro when declaring classes that implement this interface. */
      67             : #define NS_DECL_NSIEXTERNALPROTOCOLSERVICE \
      68             :   NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval) override; \
      69             :   NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval) override; \
      70             :   NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval) override; \
      71             :   NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound, nsIHandlerInfo * *_retval) override; \
      72             :   NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) override; \
      73             :   NS_IMETHOD LoadUrl(nsIURI *aURL) override; \
      74             :   NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override; \
      75             :   NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval) override; 
      76             : 
      77             : /* Use this macro when declaring the members of this interface when the
      78             :    class doesn't implement the interface. This is useful for forwarding. */
      79             : #define NS_DECL_NON_VIRTUAL_NSIEXTERNALPROTOCOLSERVICE \
      80             :   nsresult ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval); \
      81             :   nsresult IsExposedProtocol(const char * aProtocolScheme, bool *_retval); \
      82             :   nsresult GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval); \
      83             :   nsresult GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound, nsIHandlerInfo * *_retval); \
      84             :   nsresult SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists); \
      85             :   nsresult LoadUrl(nsIURI *aURL); \
      86             :   nsresult LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext); \
      87             :   nsresult GetApplicationDescription(const nsACString & aScheme, nsAString & _retval); 
      88             : 
      89             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      90             : #define NS_FORWARD_NSIEXTERNALPROTOCOLSERVICE(_to) \
      91             :   NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval) override { return _to ExternalProtocolHandlerExists(aProtocolScheme, _retval); } \
      92             :   NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval) override { return _to IsExposedProtocol(aProtocolScheme, _retval); } \
      93             :   NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval) override { return _to GetProtocolHandlerInfo(aProtocolScheme, _retval); } \
      94             :   NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound, nsIHandlerInfo * *_retval) override { return _to GetProtocolHandlerInfoFromOS(aProtocolScheme, aFound, _retval); } \
      95             :   NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) override { return _to SetProtocolHandlerDefaults(aHandlerInfo, aOSHandlerExists); } \
      96             :   NS_IMETHOD LoadUrl(nsIURI *aURL) override { return _to LoadUrl(aURL); } \
      97             :   NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override { return _to LoadURI(aURI, aWindowContext); } \
      98             :   NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval) override { return _to GetApplicationDescription(aScheme, _retval); } 
      99             : 
     100             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     101             : #define NS_FORWARD_SAFE_NSIEXTERNALPROTOCOLSERVICE(_to) \
     102             :   NS_IMETHOD ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExternalProtocolHandlerExists(aProtocolScheme, _retval); } \
     103             :   NS_IMETHOD IsExposedProtocol(const char * aProtocolScheme, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsExposedProtocol(aProtocolScheme, _retval); } \
     104             :   NS_IMETHOD GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolHandlerInfo(aProtocolScheme, _retval); } \
     105             :   NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound, nsIHandlerInfo * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolHandlerInfoFromOS(aProtocolScheme, aFound, _retval); } \
     106             :   NS_IMETHOD SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtocolHandlerDefaults(aHandlerInfo, aOSHandlerExists); } \
     107             :   NS_IMETHOD LoadUrl(nsIURI *aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadUrl(aURL); } \
     108             :   NS_IMETHOD LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(aURI, aWindowContext); } \
     109             :   NS_IMETHOD GetApplicationDescription(const nsACString & aScheme, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationDescription(aScheme, _retval); } 
     110             : 
     111             : #if 0
     112             : /* Use the code below as a template for the implementation class for this interface. */
     113             : 
     114             : /* Header file */
     115             : class nsExternalProtocolService : public nsIExternalProtocolService
     116             : {
     117             : public:
     118             :   NS_DECL_ISUPPORTS
     119             :   NS_DECL_NSIEXTERNALPROTOCOLSERVICE
     120             : 
     121             :   nsExternalProtocolService();
     122             : 
     123             : private:
     124             :   ~nsExternalProtocolService();
     125             : 
     126             : protected:
     127             :   /* additional members */
     128             : };
     129             : 
     130             : /* Implementation file */
     131             : NS_IMPL_ISUPPORTS(nsExternalProtocolService, nsIExternalProtocolService)
     132             : 
     133             : nsExternalProtocolService::nsExternalProtocolService()
     134             : {
     135             :   /* member initializers and constructor code */
     136             : }
     137             : 
     138             : nsExternalProtocolService::~nsExternalProtocolService()
     139             : {
     140             :   /* destructor code */
     141             : }
     142             : 
     143             : /* boolean externalProtocolHandlerExists (in string aProtocolScheme); */
     144             : NS_IMETHODIMP nsExternalProtocolService::ExternalProtocolHandlerExists(const char * aProtocolScheme, bool *_retval)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* boolean isExposedProtocol (in string aProtocolScheme); */
     150             : NS_IMETHODIMP nsExternalProtocolService::IsExposedProtocol(const char * aProtocolScheme, bool *_retval)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* nsIHandlerInfo getProtocolHandlerInfo (in ACString aProtocolScheme); */
     156             : NS_IMETHODIMP nsExternalProtocolService::GetProtocolHandlerInfo(const nsACString & aProtocolScheme, nsIHandlerInfo * *_retval)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* nsIHandlerInfo getProtocolHandlerInfoFromOS (in ACString aProtocolScheme, out boolean aFound); */
     162             : NS_IMETHODIMP nsExternalProtocolService::GetProtocolHandlerInfoFromOS(const nsACString & aProtocolScheme, bool *aFound, nsIHandlerInfo * *_retval)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* void setProtocolHandlerDefaults (in nsIHandlerInfo aHandlerInfo, in boolean aOSHandlerExists); */
     168             : NS_IMETHODIMP nsExternalProtocolService::SetProtocolHandlerDefaults(nsIHandlerInfo *aHandlerInfo, bool aOSHandlerExists)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* [deprecated] void loadUrl (in nsIURI aURL); */
     174             : NS_IMETHODIMP nsExternalProtocolService::LoadUrl(nsIURI *aURL)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* void loadURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
     180             : NS_IMETHODIMP nsExternalProtocolService::LoadURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext)
     181             : {
     182             :     return NS_ERROR_NOT_IMPLEMENTED;
     183             : }
     184             : 
     185             : /* AString getApplicationDescription (in AUTF8String aScheme); */
     186             : NS_IMETHODIMP nsExternalProtocolService::GetApplicationDescription(const nsACString & aScheme, nsAString & _retval)
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : 
     191             : /* End of implementation class template. */
     192             : #endif
     193             : 
     194             : 
     195             : #endif /* __gen_nsIExternalProtocolService_h__ */

Generated by: LCOV version 1.13