LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIApplicationReputation.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIApplicationReputation.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIApplicationReputation_h__
       6             : #define __gen_nsIApplicationReputation_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 nsIApplicationReputationCallback; /* forward declaration */
      18             : 
      19             : class nsIApplicationReputationQuery; /* forward declaration */
      20             : 
      21             : class nsIArray; /* forward declaration */
      22             : 
      23             : class nsIURI; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsIApplicationReputationService */
      27             : #define NS_IAPPLICATIONREPUTATIONSERVICE_IID_STR "c9f03479-fd68-4393-acb2-c88d4f563174"
      28             : 
      29             : #define NS_IAPPLICATIONREPUTATIONSERVICE_IID \
      30             :   {0xc9f03479, 0xfd68, 0x4393, \
      31             :     { 0xac, 0xb2, 0xc8, 0x8d, 0x4f, 0x56, 0x31, 0x74 }}
      32             : 
      33           0 : class NS_NO_VTABLE nsIApplicationReputationService : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONREPUTATIONSERVICE_IID)
      37             : 
      38             :   enum {
      39             :     VERDICT_SAFE = 0U,
      40             :     VERDICT_DANGEROUS = 1U,
      41             :     VERDICT_UNCOMMON = 2U,
      42             :     VERDICT_POTENTIALLY_UNWANTED = 3U,
      43             :     VERDICT_DANGEROUS_HOST = 4U
      44             :   };
      45             : 
      46             :   /* void queryReputation (in nsIApplicationReputationQuery aQuery, in nsIApplicationReputationCallback aCallback); */
      47             :   NS_IMETHOD QueryReputation(nsIApplicationReputationQuery *aQuery, nsIApplicationReputationCallback *aCallback) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationReputationService, NS_IAPPLICATIONREPUTATIONSERVICE_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSIAPPLICATIONREPUTATIONSERVICE \
      55             :   NS_IMETHOD QueryReputation(nsIApplicationReputationQuery *aQuery, nsIApplicationReputationCallback *aCallback) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONREPUTATIONSERVICE \
      60             :   nsresult QueryReputation(nsIApplicationReputationQuery *aQuery, nsIApplicationReputationCallback *aCallback); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSIAPPLICATIONREPUTATIONSERVICE(_to) \
      64             :   NS_IMETHOD QueryReputation(nsIApplicationReputationQuery *aQuery, nsIApplicationReputationCallback *aCallback) override { return _to QueryReputation(aQuery, aCallback); } 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67             : #define NS_FORWARD_SAFE_NSIAPPLICATIONREPUTATIONSERVICE(_to) \
      68             :   NS_IMETHOD QueryReputation(nsIApplicationReputationQuery *aQuery, nsIApplicationReputationCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryReputation(aQuery, aCallback); } 
      69             : 
      70             : #if 0
      71             : /* Use the code below as a template for the implementation class for this interface. */
      72             : 
      73             : /* Header file */
      74             : class nsApplicationReputationService : public nsIApplicationReputationService
      75             : {
      76             : public:
      77             :   NS_DECL_ISUPPORTS
      78             :   NS_DECL_NSIAPPLICATIONREPUTATIONSERVICE
      79             : 
      80             :   nsApplicationReputationService();
      81             : 
      82             : private:
      83             :   ~nsApplicationReputationService();
      84             : 
      85             : protected:
      86             :   /* additional members */
      87             : };
      88             : 
      89             : /* Implementation file */
      90             : NS_IMPL_ISUPPORTS(nsApplicationReputationService, nsIApplicationReputationService)
      91             : 
      92             : nsApplicationReputationService::nsApplicationReputationService()
      93             : {
      94             :   /* member initializers and constructor code */
      95             : }
      96             : 
      97             : nsApplicationReputationService::~nsApplicationReputationService()
      98             : {
      99             :   /* destructor code */
     100             : }
     101             : 
     102             : /* void queryReputation (in nsIApplicationReputationQuery aQuery, in nsIApplicationReputationCallback aCallback); */
     103             : NS_IMETHODIMP nsApplicationReputationService::QueryReputation(nsIApplicationReputationQuery *aQuery, nsIApplicationReputationCallback *aCallback)
     104             : {
     105             :     return NS_ERROR_NOT_IMPLEMENTED;
     106             : }
     107             : 
     108             : /* End of implementation class template. */
     109             : #endif
     110             : 
     111             : 
     112             : /* starting interface:    nsIApplicationReputationQuery */
     113             : #define NS_IAPPLICATIONREPUTATIONQUERY_IID_STR "812d7509-a9a3-446e-a66f-3ed8cc91ebd0"
     114             : 
     115             : #define NS_IAPPLICATIONREPUTATIONQUERY_IID \
     116             :   {0x812d7509, 0xa9a3, 0x446e, \
     117             :     { 0xa6, 0x6f, 0x3e, 0xd8, 0xcc, 0x91, 0xeb, 0xd0 }}
     118             : 
     119             : class NS_NO_VTABLE nsIApplicationReputationQuery : public nsISupports {
     120             :  public:
     121             : 
     122             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONREPUTATIONQUERY_IID)
     123             : 
     124             :   /* readonly attribute nsIURI sourceURI; */
     125             :   NS_IMETHOD GetSourceURI(nsIURI * *aSourceURI) = 0;
     126             : 
     127             :   /* readonly attribute nsIURI referrerURI; */
     128             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) = 0;
     129             : 
     130             :   /* readonly attribute AString suggestedFileName; */
     131             :   NS_IMETHOD GetSuggestedFileName(nsAString & aSuggestedFileName) = 0;
     132             : 
     133             :   /* readonly attribute unsigned long fileSize; */
     134             :   NS_IMETHOD GetFileSize(uint32_t *aFileSize) = 0;
     135             : 
     136             :   /* readonly attribute ACString sha256Hash; */
     137             :   NS_IMETHOD GetSha256Hash(nsACString & aSha256Hash) = 0;
     138             : 
     139             :   /* readonly attribute nsIArray signatureInfo; */
     140             :   NS_IMETHOD GetSignatureInfo(nsIArray * *aSignatureInfo) = 0;
     141             : 
     142             :   /* readonly attribute nsIArray redirects; */
     143             :   NS_IMETHOD GetRedirects(nsIArray * *aRedirects) = 0;
     144             : 
     145             : };
     146             : 
     147             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationReputationQuery, NS_IAPPLICATIONREPUTATIONQUERY_IID)
     148             : 
     149             : /* Use this macro when declaring classes that implement this interface. */
     150             : #define NS_DECL_NSIAPPLICATIONREPUTATIONQUERY \
     151             :   NS_IMETHOD GetSourceURI(nsIURI * *aSourceURI) override; \
     152             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) override; \
     153             :   NS_IMETHOD GetSuggestedFileName(nsAString & aSuggestedFileName) override; \
     154             :   NS_IMETHOD GetFileSize(uint32_t *aFileSize) override; \
     155             :   NS_IMETHOD GetSha256Hash(nsACString & aSha256Hash) override; \
     156             :   NS_IMETHOD GetSignatureInfo(nsIArray * *aSignatureInfo) override; \
     157             :   NS_IMETHOD GetRedirects(nsIArray * *aRedirects) override; 
     158             : 
     159             : /* Use this macro when declaring the members of this interface when the
     160             :    class doesn't implement the interface. This is useful for forwarding. */
     161             : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONREPUTATIONQUERY \
     162             :   nsresult GetSourceURI(nsIURI * *aSourceURI); \
     163             :   nsresult GetReferrerURI(nsIURI * *aReferrerURI); \
     164             :   nsresult GetSuggestedFileName(nsAString & aSuggestedFileName); \
     165             :   nsresult GetFileSize(uint32_t *aFileSize); \
     166             :   nsresult GetSha256Hash(nsACString & aSha256Hash); \
     167             :   nsresult GetSignatureInfo(nsIArray * *aSignatureInfo); \
     168             :   nsresult GetRedirects(nsIArray * *aRedirects); 
     169             : 
     170             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     171             : #define NS_FORWARD_NSIAPPLICATIONREPUTATIONQUERY(_to) \
     172             :   NS_IMETHOD GetSourceURI(nsIURI * *aSourceURI) override { return _to GetSourceURI(aSourceURI); } \
     173             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) override { return _to GetReferrerURI(aReferrerURI); } \
     174             :   NS_IMETHOD GetSuggestedFileName(nsAString & aSuggestedFileName) override { return _to GetSuggestedFileName(aSuggestedFileName); } \
     175             :   NS_IMETHOD GetFileSize(uint32_t *aFileSize) override { return _to GetFileSize(aFileSize); } \
     176             :   NS_IMETHOD GetSha256Hash(nsACString & aSha256Hash) override { return _to GetSha256Hash(aSha256Hash); } \
     177             :   NS_IMETHOD GetSignatureInfo(nsIArray * *aSignatureInfo) override { return _to GetSignatureInfo(aSignatureInfo); } \
     178             :   NS_IMETHOD GetRedirects(nsIArray * *aRedirects) override { return _to GetRedirects(aRedirects); } 
     179             : 
     180             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     181             : #define NS_FORWARD_SAFE_NSIAPPLICATIONREPUTATIONQUERY(_to) \
     182             :   NS_IMETHOD GetSourceURI(nsIURI * *aSourceURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceURI(aSourceURI); } \
     183             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrerURI(aReferrerURI); } \
     184             :   NS_IMETHOD GetSuggestedFileName(nsAString & aSuggestedFileName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuggestedFileName(aSuggestedFileName); } \
     185             :   NS_IMETHOD GetFileSize(uint32_t *aFileSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileSize(aFileSize); } \
     186             :   NS_IMETHOD GetSha256Hash(nsACString & aSha256Hash) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSha256Hash(aSha256Hash); } \
     187             :   NS_IMETHOD GetSignatureInfo(nsIArray * *aSignatureInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignatureInfo(aSignatureInfo); } \
     188             :   NS_IMETHOD GetRedirects(nsIArray * *aRedirects) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirects(aRedirects); } 
     189             : 
     190             : #if 0
     191             : /* Use the code below as a template for the implementation class for this interface. */
     192             : 
     193             : /* Header file */
     194             : class nsApplicationReputationQuery : public nsIApplicationReputationQuery
     195             : {
     196             : public:
     197             :   NS_DECL_ISUPPORTS
     198             :   NS_DECL_NSIAPPLICATIONREPUTATIONQUERY
     199             : 
     200             :   nsApplicationReputationQuery();
     201             : 
     202             : private:
     203             :   ~nsApplicationReputationQuery();
     204             : 
     205             : protected:
     206             :   /* additional members */
     207             : };
     208             : 
     209             : /* Implementation file */
     210             : NS_IMPL_ISUPPORTS(nsApplicationReputationQuery, nsIApplicationReputationQuery)
     211             : 
     212             : nsApplicationReputationQuery::nsApplicationReputationQuery()
     213             : {
     214             :   /* member initializers and constructor code */
     215             : }
     216             : 
     217             : nsApplicationReputationQuery::~nsApplicationReputationQuery()
     218             : {
     219             :   /* destructor code */
     220             : }
     221             : 
     222             : /* readonly attribute nsIURI sourceURI; */
     223             : NS_IMETHODIMP nsApplicationReputationQuery::GetSourceURI(nsIURI * *aSourceURI)
     224             : {
     225             :     return NS_ERROR_NOT_IMPLEMENTED;
     226             : }
     227             : 
     228             : /* readonly attribute nsIURI referrerURI; */
     229             : NS_IMETHODIMP nsApplicationReputationQuery::GetReferrerURI(nsIURI * *aReferrerURI)
     230             : {
     231             :     return NS_ERROR_NOT_IMPLEMENTED;
     232             : }
     233             : 
     234             : /* readonly attribute AString suggestedFileName; */
     235             : NS_IMETHODIMP nsApplicationReputationQuery::GetSuggestedFileName(nsAString & aSuggestedFileName)
     236             : {
     237             :     return NS_ERROR_NOT_IMPLEMENTED;
     238             : }
     239             : 
     240             : /* readonly attribute unsigned long fileSize; */
     241             : NS_IMETHODIMP nsApplicationReputationQuery::GetFileSize(uint32_t *aFileSize)
     242             : {
     243             :     return NS_ERROR_NOT_IMPLEMENTED;
     244             : }
     245             : 
     246             : /* readonly attribute ACString sha256Hash; */
     247             : NS_IMETHODIMP nsApplicationReputationQuery::GetSha256Hash(nsACString & aSha256Hash)
     248             : {
     249             :     return NS_ERROR_NOT_IMPLEMENTED;
     250             : }
     251             : 
     252             : /* readonly attribute nsIArray signatureInfo; */
     253             : NS_IMETHODIMP nsApplicationReputationQuery::GetSignatureInfo(nsIArray * *aSignatureInfo)
     254             : {
     255             :     return NS_ERROR_NOT_IMPLEMENTED;
     256             : }
     257             : 
     258             : /* readonly attribute nsIArray redirects; */
     259             : NS_IMETHODIMP nsApplicationReputationQuery::GetRedirects(nsIArray * *aRedirects)
     260             : {
     261             :     return NS_ERROR_NOT_IMPLEMENTED;
     262             : }
     263             : 
     264             : /* End of implementation class template. */
     265             : #endif
     266             : 
     267             : 
     268             : /* starting interface:    nsIApplicationReputationCallback */
     269             : #define NS_IAPPLICATIONREPUTATIONCALLBACK_IID_STR "9a228470-cfe5-11e2-8b8b-0800200c9a66"
     270             : 
     271             : #define NS_IAPPLICATIONREPUTATIONCALLBACK_IID \
     272             :   {0x9a228470, 0xcfe5, 0x11e2, \
     273             :     { 0x8b, 0x8b, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
     274             : 
     275             : class NS_NO_VTABLE nsIApplicationReputationCallback : public nsISupports {
     276             :  public:
     277             : 
     278             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONREPUTATIONCALLBACK_IID)
     279             : 
     280             :   /* void onComplete (in bool aShouldBlock, in nsresult aStatus, in unsigned long aVerdict); */
     281             :   NS_IMETHOD OnComplete(bool aShouldBlock, nsresult aStatus, uint32_t aVerdict) = 0;
     282             : 
     283             : };
     284             : 
     285             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationReputationCallback, NS_IAPPLICATIONREPUTATIONCALLBACK_IID)
     286             : 
     287             : /* Use this macro when declaring classes that implement this interface. */
     288             : #define NS_DECL_NSIAPPLICATIONREPUTATIONCALLBACK \
     289             :   NS_IMETHOD OnComplete(bool aShouldBlock, nsresult aStatus, uint32_t aVerdict) override; 
     290             : 
     291             : /* Use this macro when declaring the members of this interface when the
     292             :    class doesn't implement the interface. This is useful for forwarding. */
     293             : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONREPUTATIONCALLBACK \
     294             :   nsresult OnComplete(bool aShouldBlock, nsresult aStatus, uint32_t aVerdict); 
     295             : 
     296             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     297             : #define NS_FORWARD_NSIAPPLICATIONREPUTATIONCALLBACK(_to) \
     298             :   NS_IMETHOD OnComplete(bool aShouldBlock, nsresult aStatus, uint32_t aVerdict) override { return _to OnComplete(aShouldBlock, aStatus, aVerdict); } 
     299             : 
     300             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     301             : #define NS_FORWARD_SAFE_NSIAPPLICATIONREPUTATIONCALLBACK(_to) \
     302             :   NS_IMETHOD OnComplete(bool aShouldBlock, nsresult aStatus, uint32_t aVerdict) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnComplete(aShouldBlock, aStatus, aVerdict); } 
     303             : 
     304             : #if 0
     305             : /* Use the code below as a template for the implementation class for this interface. */
     306             : 
     307             : /* Header file */
     308             : class nsApplicationReputationCallback : public nsIApplicationReputationCallback
     309             : {
     310             : public:
     311             :   NS_DECL_ISUPPORTS
     312             :   NS_DECL_NSIAPPLICATIONREPUTATIONCALLBACK
     313             : 
     314             :   nsApplicationReputationCallback();
     315             : 
     316             : private:
     317             :   ~nsApplicationReputationCallback();
     318             : 
     319             : protected:
     320             :   /* additional members */
     321             : };
     322             : 
     323             : /* Implementation file */
     324             : NS_IMPL_ISUPPORTS(nsApplicationReputationCallback, nsIApplicationReputationCallback)
     325             : 
     326             : nsApplicationReputationCallback::nsApplicationReputationCallback()
     327             : {
     328             :   /* member initializers and constructor code */
     329             : }
     330             : 
     331             : nsApplicationReputationCallback::~nsApplicationReputationCallback()
     332             : {
     333             :   /* destructor code */
     334             : }
     335             : 
     336             : /* void onComplete (in bool aShouldBlock, in nsresult aStatus, in unsigned long aVerdict); */
     337             : NS_IMETHODIMP nsApplicationReputationCallback::OnComplete(bool aShouldBlock, nsresult aStatus, uint32_t aVerdict)
     338             : {
     339             :     return NS_ERROR_NOT_IMPLEMENTED;
     340             : }
     341             : 
     342             : /* End of implementation class template. */
     343             : #endif
     344             : 
     345             : 
     346             : #endif /* __gen_nsIApplicationReputation_h__ */

Generated by: LCOV version 1.13