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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/mozIAsyncHistory.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIAsyncHistory_h__
       6             : #define __gen_mozIAsyncHistory_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : class nsIURI; /* forward declaration */
      20             : 
      21             : class nsIVariant; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    mozIVisitInfo */
      25             : #define MOZIVISITINFO_IID_STR "41e4ccc9-f0c8-4cd7-9753-7a38514b8488"
      26             : 
      27             : #define MOZIVISITINFO_IID \
      28             :   {0x41e4ccc9, 0xf0c8, 0x4cd7, \
      29             :     { 0x97, 0x53, 0x7a, 0x38, 0x51, 0x4b, 0x84, 0x88 }}
      30             : 
      31           0 : class NS_NO_VTABLE mozIVisitInfo : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIVISITINFO_IID)
      35             : 
      36             :   /* readonly attribute long long visitId; */
      37             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) = 0;
      38             : 
      39             :   /* readonly attribute PRTime visitDate; */
      40             :   NS_IMETHOD GetVisitDate(PRTime *aVisitDate) = 0;
      41             : 
      42             :   /* readonly attribute unsigned long transitionType; */
      43             :   NS_IMETHOD GetTransitionType(uint32_t *aTransitionType) = 0;
      44             : 
      45             :   /* readonly attribute nsIURI referrerURI; */
      46             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) = 0;
      47             : 
      48             : };
      49             : 
      50             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIVisitInfo, MOZIVISITINFO_IID)
      51             : 
      52             : /* Use this macro when declaring classes that implement this interface. */
      53             : #define NS_DECL_MOZIVISITINFO \
      54             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) override; \
      55             :   NS_IMETHOD GetVisitDate(PRTime *aVisitDate) override; \
      56             :   NS_IMETHOD GetTransitionType(uint32_t *aTransitionType) override; \
      57             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) override; 
      58             : 
      59             : /* Use this macro when declaring the members of this interface when the
      60             :    class doesn't implement the interface. This is useful for forwarding. */
      61             : #define NS_DECL_NON_VIRTUAL_MOZIVISITINFO \
      62             :   nsresult GetVisitId(int64_t *aVisitId); \
      63             :   nsresult GetVisitDate(PRTime *aVisitDate); \
      64             :   nsresult GetTransitionType(uint32_t *aTransitionType); \
      65             :   nsresult GetReferrerURI(nsIURI * *aReferrerURI); 
      66             : 
      67             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      68             : #define NS_FORWARD_MOZIVISITINFO(_to) \
      69             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) override { return _to GetVisitId(aVisitId); } \
      70             :   NS_IMETHOD GetVisitDate(PRTime *aVisitDate) override { return _to GetVisitDate(aVisitDate); } \
      71             :   NS_IMETHOD GetTransitionType(uint32_t *aTransitionType) override { return _to GetTransitionType(aTransitionType); } \
      72             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) override { return _to GetReferrerURI(aReferrerURI); } 
      73             : 
      74             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      75             : #define NS_FORWARD_SAFE_MOZIVISITINFO(_to) \
      76             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitId(aVisitId); } \
      77             :   NS_IMETHOD GetVisitDate(PRTime *aVisitDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitDate(aVisitDate); } \
      78             :   NS_IMETHOD GetTransitionType(uint32_t *aTransitionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransitionType(aTransitionType); } \
      79             :   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrerURI(aReferrerURI); } 
      80             : 
      81             : #if 0
      82             : /* Use the code below as a template for the implementation class for this interface. */
      83             : 
      84             : /* Header file */
      85             : class _MYCLASS_ : public mozIVisitInfo
      86             : {
      87             : public:
      88             :   NS_DECL_ISUPPORTS
      89             :   NS_DECL_MOZIVISITINFO
      90             : 
      91             :   _MYCLASS_();
      92             : 
      93             : private:
      94             :   ~_MYCLASS_();
      95             : 
      96             : protected:
      97             :   /* additional members */
      98             : };
      99             : 
     100             : /* Implementation file */
     101             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIVisitInfo)
     102             : 
     103             : _MYCLASS_::_MYCLASS_()
     104             : {
     105             :   /* member initializers and constructor code */
     106             : }
     107             : 
     108             : _MYCLASS_::~_MYCLASS_()
     109             : {
     110             :   /* destructor code */
     111             : }
     112             : 
     113             : /* readonly attribute long long visitId; */
     114             : NS_IMETHODIMP _MYCLASS_::GetVisitId(int64_t *aVisitId)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* readonly attribute PRTime visitDate; */
     120             : NS_IMETHODIMP _MYCLASS_::GetVisitDate(PRTime *aVisitDate)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* readonly attribute unsigned long transitionType; */
     126             : NS_IMETHODIMP _MYCLASS_::GetTransitionType(uint32_t *aTransitionType)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* readonly attribute nsIURI referrerURI; */
     132             : NS_IMETHODIMP _MYCLASS_::GetReferrerURI(nsIURI * *aReferrerURI)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* End of implementation class template. */
     138             : #endif
     139             : 
     140             : 
     141             : /* starting interface:    mozIPlaceInfo */
     142             : #define MOZIPLACEINFO_IID_STR "ad83e137-c92a-4b7b-b67e-0a318811f91e"
     143             : 
     144             : #define MOZIPLACEINFO_IID \
     145             :   {0xad83e137, 0xc92a, 0x4b7b, \
     146             :     { 0xb6, 0x7e, 0x0a, 0x31, 0x88, 0x11, 0xf9, 0x1e }}
     147             : 
     148           0 : class NS_NO_VTABLE mozIPlaceInfo : public nsISupports {
     149             :  public:
     150             : 
     151             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIPLACEINFO_IID)
     152             : 
     153             :   /* readonly attribute long long placeId; */
     154             :   NS_IMETHOD GetPlaceId(int64_t *aPlaceId) = 0;
     155             : 
     156             :   /* readonly attribute ACString guid; */
     157             :   NS_IMETHOD GetGuid(nsACString & aGuid) = 0;
     158             : 
     159             :   /* readonly attribute nsIURI uri; */
     160             :   NS_IMETHOD GetUri(nsIURI * *aUri) = 0;
     161             : 
     162             :   /* readonly attribute AString title; */
     163             :   NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
     164             : 
     165             :   /* readonly attribute long long frecency; */
     166             :   NS_IMETHOD GetFrecency(int64_t *aFrecency) = 0;
     167             : 
     168             :   /* [implicit_jscontext] readonly attribute jsval visits; */
     169             :   NS_IMETHOD GetVisits(JSContext* cx, JS::MutableHandleValue aVisits) = 0;
     170             : 
     171             : };
     172             : 
     173             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIPlaceInfo, MOZIPLACEINFO_IID)
     174             : 
     175             : /* Use this macro when declaring classes that implement this interface. */
     176             : #define NS_DECL_MOZIPLACEINFO \
     177             :   NS_IMETHOD GetPlaceId(int64_t *aPlaceId) override; \
     178             :   NS_IMETHOD GetGuid(nsACString & aGuid) override; \
     179             :   NS_IMETHOD GetUri(nsIURI * *aUri) override; \
     180             :   NS_IMETHOD GetTitle(nsAString & aTitle) override; \
     181             :   NS_IMETHOD GetFrecency(int64_t *aFrecency) override; \
     182             :   NS_IMETHOD GetVisits(JSContext* cx, JS::MutableHandleValue aVisits) override; 
     183             : 
     184             : /* Use this macro when declaring the members of this interface when the
     185             :    class doesn't implement the interface. This is useful for forwarding. */
     186             : #define NS_DECL_NON_VIRTUAL_MOZIPLACEINFO \
     187             :   nsresult GetPlaceId(int64_t *aPlaceId); \
     188             :   nsresult GetGuid(nsACString & aGuid); \
     189             :   nsresult GetUri(nsIURI * *aUri); \
     190             :   nsresult GetTitle(nsAString & aTitle); \
     191             :   nsresult GetFrecency(int64_t *aFrecency); \
     192             :   nsresult GetVisits(JSContext* cx, JS::MutableHandleValue aVisits); 
     193             : 
     194             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     195             : #define NS_FORWARD_MOZIPLACEINFO(_to) \
     196             :   NS_IMETHOD GetPlaceId(int64_t *aPlaceId) override { return _to GetPlaceId(aPlaceId); } \
     197             :   NS_IMETHOD GetGuid(nsACString & aGuid) override { return _to GetGuid(aGuid); } \
     198             :   NS_IMETHOD GetUri(nsIURI * *aUri) override { return _to GetUri(aUri); } \
     199             :   NS_IMETHOD GetTitle(nsAString & aTitle) override { return _to GetTitle(aTitle); } \
     200             :   NS_IMETHOD GetFrecency(int64_t *aFrecency) override { return _to GetFrecency(aFrecency); } \
     201             :   NS_IMETHOD GetVisits(JSContext* cx, JS::MutableHandleValue aVisits) override { return _to GetVisits(cx, aVisits); } 
     202             : 
     203             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     204             : #define NS_FORWARD_SAFE_MOZIPLACEINFO(_to) \
     205             :   NS_IMETHOD GetPlaceId(int64_t *aPlaceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlaceId(aPlaceId); } \
     206             :   NS_IMETHOD GetGuid(nsACString & aGuid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGuid(aGuid); } \
     207             :   NS_IMETHOD GetUri(nsIURI * *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
     208             :   NS_IMETHOD GetTitle(nsAString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
     209             :   NS_IMETHOD GetFrecency(int64_t *aFrecency) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrecency(aFrecency); } \
     210             :   NS_IMETHOD GetVisits(JSContext* cx, JS::MutableHandleValue aVisits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisits(cx, aVisits); } 
     211             : 
     212             : #if 0
     213             : /* Use the code below as a template for the implementation class for this interface. */
     214             : 
     215             : /* Header file */
     216             : class _MYCLASS_ : public mozIPlaceInfo
     217             : {
     218             : public:
     219             :   NS_DECL_ISUPPORTS
     220             :   NS_DECL_MOZIPLACEINFO
     221             : 
     222             :   _MYCLASS_();
     223             : 
     224             : private:
     225             :   ~_MYCLASS_();
     226             : 
     227             : protected:
     228             :   /* additional members */
     229             : };
     230             : 
     231             : /* Implementation file */
     232             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIPlaceInfo)
     233             : 
     234             : _MYCLASS_::_MYCLASS_()
     235             : {
     236             :   /* member initializers and constructor code */
     237             : }
     238             : 
     239             : _MYCLASS_::~_MYCLASS_()
     240             : {
     241             :   /* destructor code */
     242             : }
     243             : 
     244             : /* readonly attribute long long placeId; */
     245             : NS_IMETHODIMP _MYCLASS_::GetPlaceId(int64_t *aPlaceId)
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* readonly attribute ACString guid; */
     251             : NS_IMETHODIMP _MYCLASS_::GetGuid(nsACString & aGuid)
     252             : {
     253             :     return NS_ERROR_NOT_IMPLEMENTED;
     254             : }
     255             : 
     256             : /* readonly attribute nsIURI uri; */
     257             : NS_IMETHODIMP _MYCLASS_::GetUri(nsIURI * *aUri)
     258             : {
     259             :     return NS_ERROR_NOT_IMPLEMENTED;
     260             : }
     261             : 
     262             : /* readonly attribute AString title; */
     263             : NS_IMETHODIMP _MYCLASS_::GetTitle(nsAString & aTitle)
     264             : {
     265             :     return NS_ERROR_NOT_IMPLEMENTED;
     266             : }
     267             : 
     268             : /* readonly attribute long long frecency; */
     269             : NS_IMETHODIMP _MYCLASS_::GetFrecency(int64_t *aFrecency)
     270             : {
     271             :     return NS_ERROR_NOT_IMPLEMENTED;
     272             : }
     273             : 
     274             : /* [implicit_jscontext] readonly attribute jsval visits; */
     275             : NS_IMETHODIMP _MYCLASS_::GetVisits(JSContext* cx, JS::MutableHandleValue aVisits)
     276             : {
     277             :     return NS_ERROR_NOT_IMPLEMENTED;
     278             : }
     279             : 
     280             : /* End of implementation class template. */
     281             : #endif
     282             : 
     283             : 
     284             : /* starting interface:    mozIVisitInfoCallback */
     285             : #define MOZIVISITINFOCALLBACK_IID_STR "1f266877-2859-418b-a11b-ec3ae4f4f93d"
     286             : 
     287             : #define MOZIVISITINFOCALLBACK_IID \
     288             :   {0x1f266877, 0x2859, 0x418b, \
     289             :     { 0xa1, 0x1b, 0xec, 0x3a, 0xe4, 0xf4, 0xf9, 0x3d }}
     290             : 
     291           0 : class NS_NO_VTABLE mozIVisitInfoCallback : public nsISupports {
     292             :  public:
     293             : 
     294             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIVISITINFOCALLBACK_IID)
     295             : 
     296             :   /* void handleError (in nsresult aResultCode, in mozIPlaceInfo aPlaceInfo); */
     297             :   NS_IMETHOD HandleError(nsresult aResultCode, mozIPlaceInfo *aPlaceInfo) = 0;
     298             : 
     299             :   /* void handleResult (in mozIPlaceInfo aPlaceInfo); */
     300             :   NS_IMETHOD HandleResult(mozIPlaceInfo *aPlaceInfo) = 0;
     301             : 
     302             :   /* void handleCompletion (in unsigned long aUpdatedItems); */
     303             :   NS_IMETHOD HandleCompletion(uint32_t aUpdatedItems) = 0;
     304             : 
     305             :   /* readonly attribute bool ignoreResults; */
     306             :   NS_IMETHOD GetIgnoreResults(bool *aIgnoreResults) = 0;
     307             : 
     308             :   /* readonly attribute bool ignoreErrors; */
     309             :   NS_IMETHOD GetIgnoreErrors(bool *aIgnoreErrors) = 0;
     310             : 
     311             : };
     312             : 
     313             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIVisitInfoCallback, MOZIVISITINFOCALLBACK_IID)
     314             : 
     315             : /* Use this macro when declaring classes that implement this interface. */
     316             : #define NS_DECL_MOZIVISITINFOCALLBACK \
     317             :   NS_IMETHOD HandleError(nsresult aResultCode, mozIPlaceInfo *aPlaceInfo) override; \
     318             :   NS_IMETHOD HandleResult(mozIPlaceInfo *aPlaceInfo) override; \
     319             :   NS_IMETHOD HandleCompletion(uint32_t aUpdatedItems) override; \
     320             :   NS_IMETHOD GetIgnoreResults(bool *aIgnoreResults) override; \
     321             :   NS_IMETHOD GetIgnoreErrors(bool *aIgnoreErrors) override; 
     322             : 
     323             : /* Use this macro when declaring the members of this interface when the
     324             :    class doesn't implement the interface. This is useful for forwarding. */
     325             : #define NS_DECL_NON_VIRTUAL_MOZIVISITINFOCALLBACK \
     326             :   nsresult HandleError(nsresult aResultCode, mozIPlaceInfo *aPlaceInfo); \
     327             :   nsresult HandleResult(mozIPlaceInfo *aPlaceInfo); \
     328             :   nsresult HandleCompletion(uint32_t aUpdatedItems); \
     329             :   nsresult GetIgnoreResults(bool *aIgnoreResults); \
     330             :   nsresult GetIgnoreErrors(bool *aIgnoreErrors); 
     331             : 
     332             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     333             : #define NS_FORWARD_MOZIVISITINFOCALLBACK(_to) \
     334             :   NS_IMETHOD HandleError(nsresult aResultCode, mozIPlaceInfo *aPlaceInfo) override { return _to HandleError(aResultCode, aPlaceInfo); } \
     335             :   NS_IMETHOD HandleResult(mozIPlaceInfo *aPlaceInfo) override { return _to HandleResult(aPlaceInfo); } \
     336             :   NS_IMETHOD HandleCompletion(uint32_t aUpdatedItems) override { return _to HandleCompletion(aUpdatedItems); } \
     337             :   NS_IMETHOD GetIgnoreResults(bool *aIgnoreResults) override { return _to GetIgnoreResults(aIgnoreResults); } \
     338             :   NS_IMETHOD GetIgnoreErrors(bool *aIgnoreErrors) override { return _to GetIgnoreErrors(aIgnoreErrors); } 
     339             : 
     340             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     341             : #define NS_FORWARD_SAFE_MOZIVISITINFOCALLBACK(_to) \
     342             :   NS_IMETHOD HandleError(nsresult aResultCode, mozIPlaceInfo *aPlaceInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleError(aResultCode, aPlaceInfo); } \
     343             :   NS_IMETHOD HandleResult(mozIPlaceInfo *aPlaceInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleResult(aPlaceInfo); } \
     344             :   NS_IMETHOD HandleCompletion(uint32_t aUpdatedItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCompletion(aUpdatedItems); } \
     345             :   NS_IMETHOD GetIgnoreResults(bool *aIgnoreResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIgnoreResults(aIgnoreResults); } \
     346             :   NS_IMETHOD GetIgnoreErrors(bool *aIgnoreErrors) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIgnoreErrors(aIgnoreErrors); } 
     347             : 
     348             : #if 0
     349             : /* Use the code below as a template for the implementation class for this interface. */
     350             : 
     351             : /* Header file */
     352             : class _MYCLASS_ : public mozIVisitInfoCallback
     353             : {
     354             : public:
     355             :   NS_DECL_ISUPPORTS
     356             :   NS_DECL_MOZIVISITINFOCALLBACK
     357             : 
     358             :   _MYCLASS_();
     359             : 
     360             : private:
     361             :   ~_MYCLASS_();
     362             : 
     363             : protected:
     364             :   /* additional members */
     365             : };
     366             : 
     367             : /* Implementation file */
     368             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIVisitInfoCallback)
     369             : 
     370             : _MYCLASS_::_MYCLASS_()
     371             : {
     372             :   /* member initializers and constructor code */
     373             : }
     374             : 
     375             : _MYCLASS_::~_MYCLASS_()
     376             : {
     377             :   /* destructor code */
     378             : }
     379             : 
     380             : /* void handleError (in nsresult aResultCode, in mozIPlaceInfo aPlaceInfo); */
     381             : NS_IMETHODIMP _MYCLASS_::HandleError(nsresult aResultCode, mozIPlaceInfo *aPlaceInfo)
     382             : {
     383             :     return NS_ERROR_NOT_IMPLEMENTED;
     384             : }
     385             : 
     386             : /* void handleResult (in mozIPlaceInfo aPlaceInfo); */
     387             : NS_IMETHODIMP _MYCLASS_::HandleResult(mozIPlaceInfo *aPlaceInfo)
     388             : {
     389             :     return NS_ERROR_NOT_IMPLEMENTED;
     390             : }
     391             : 
     392             : /* void handleCompletion (in unsigned long aUpdatedItems); */
     393             : NS_IMETHODIMP _MYCLASS_::HandleCompletion(uint32_t aUpdatedItems)
     394             : {
     395             :     return NS_ERROR_NOT_IMPLEMENTED;
     396             : }
     397             : 
     398             : /* readonly attribute bool ignoreResults; */
     399             : NS_IMETHODIMP _MYCLASS_::GetIgnoreResults(bool *aIgnoreResults)
     400             : {
     401             :     return NS_ERROR_NOT_IMPLEMENTED;
     402             : }
     403             : 
     404             : /* readonly attribute bool ignoreErrors; */
     405             : NS_IMETHODIMP _MYCLASS_::GetIgnoreErrors(bool *aIgnoreErrors)
     406             : {
     407             :     return NS_ERROR_NOT_IMPLEMENTED;
     408             : }
     409             : 
     410             : /* End of implementation class template. */
     411             : #endif
     412             : 
     413             : 
     414             : /* starting interface:    mozIVisitedStatusCallback */
     415             : #define MOZIVISITEDSTATUSCALLBACK_IID_STR "994092bf-936f-449b-8dd6-0941e024360d"
     416             : 
     417             : #define MOZIVISITEDSTATUSCALLBACK_IID \
     418             :   {0x994092bf, 0x936f, 0x449b, \
     419             :     { 0x8d, 0xd6, 0x09, 0x41, 0xe0, 0x24, 0x36, 0x0d }}
     420             : 
     421             : class NS_NO_VTABLE mozIVisitedStatusCallback : public nsISupports {
     422             :  public:
     423             : 
     424             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIVISITEDSTATUSCALLBACK_IID)
     425             : 
     426             :   /* void isVisited (in nsIURI aURI, in boolean aVisitedStatus); */
     427             :   NS_IMETHOD IsVisited(nsIURI *aURI, bool aVisitedStatus) = 0;
     428             : 
     429             : };
     430             : 
     431             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIVisitedStatusCallback, MOZIVISITEDSTATUSCALLBACK_IID)
     432             : 
     433             : /* Use this macro when declaring classes that implement this interface. */
     434             : #define NS_DECL_MOZIVISITEDSTATUSCALLBACK \
     435             :   NS_IMETHOD IsVisited(nsIURI *aURI, bool aVisitedStatus) override; 
     436             : 
     437             : /* Use this macro when declaring the members of this interface when the
     438             :    class doesn't implement the interface. This is useful for forwarding. */
     439             : #define NS_DECL_NON_VIRTUAL_MOZIVISITEDSTATUSCALLBACK \
     440             :   nsresult IsVisited(nsIURI *aURI, bool aVisitedStatus); 
     441             : 
     442             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     443             : #define NS_FORWARD_MOZIVISITEDSTATUSCALLBACK(_to) \
     444             :   NS_IMETHOD IsVisited(nsIURI *aURI, bool aVisitedStatus) override { return _to IsVisited(aURI, aVisitedStatus); } 
     445             : 
     446             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     447             : #define NS_FORWARD_SAFE_MOZIVISITEDSTATUSCALLBACK(_to) \
     448             :   NS_IMETHOD IsVisited(nsIURI *aURI, bool aVisitedStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsVisited(aURI, aVisitedStatus); } 
     449             : 
     450             : #if 0
     451             : /* Use the code below as a template for the implementation class for this interface. */
     452             : 
     453             : /* Header file */
     454             : class _MYCLASS_ : public mozIVisitedStatusCallback
     455             : {
     456             : public:
     457             :   NS_DECL_ISUPPORTS
     458             :   NS_DECL_MOZIVISITEDSTATUSCALLBACK
     459             : 
     460             :   _MYCLASS_();
     461             : 
     462             : private:
     463             :   ~_MYCLASS_();
     464             : 
     465             : protected:
     466             :   /* additional members */
     467             : };
     468             : 
     469             : /* Implementation file */
     470             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIVisitedStatusCallback)
     471             : 
     472             : _MYCLASS_::_MYCLASS_()
     473             : {
     474             :   /* member initializers and constructor code */
     475             : }
     476             : 
     477             : _MYCLASS_::~_MYCLASS_()
     478             : {
     479             :   /* destructor code */
     480             : }
     481             : 
     482             : /* void isVisited (in nsIURI aURI, in boolean aVisitedStatus); */
     483             : NS_IMETHODIMP _MYCLASS_::IsVisited(nsIURI *aURI, bool aVisitedStatus)
     484             : {
     485             :     return NS_ERROR_NOT_IMPLEMENTED;
     486             : }
     487             : 
     488             : /* End of implementation class template. */
     489             : #endif
     490             : 
     491             : 
     492             : /* starting interface:    mozIAsyncHistory */
     493             : #define MOZIASYNCHISTORY_IID_STR "1643efd2-a329-4733-a39d-17069c8d3b2d"
     494             : 
     495             : #define MOZIASYNCHISTORY_IID \
     496             :   {0x1643efd2, 0xa329, 0x4733, \
     497             :     { 0xa3, 0x9d, 0x17, 0x06, 0x9c, 0x8d, 0x3b, 0x2d }}
     498             : 
     499           2 : class NS_NO_VTABLE mozIAsyncHistory : public nsISupports {
     500             :  public:
     501             : 
     502             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIASYNCHISTORY_IID)
     503             : 
     504             :   /* [implicit_jscontext] void updatePlaces (in jsval aPlaceInfo, [optional] in mozIVisitInfoCallback aCallback, [optional] in bool aGroupNotifications); */
     505             :   NS_IMETHOD UpdatePlaces(JS::HandleValue aPlaceInfo, mozIVisitInfoCallback *aCallback, bool aGroupNotifications, JSContext* cx) = 0;
     506             : 
     507             :   /* void isURIVisited (in nsIURI aURI, in mozIVisitedStatusCallback aCallback); */
     508             :   NS_IMETHOD IsURIVisited(nsIURI *aURI, mozIVisitedStatusCallback *aCallback) = 0;
     509             : 
     510             : };
     511             : 
     512             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIAsyncHistory, MOZIASYNCHISTORY_IID)
     513             : 
     514             : /* Use this macro when declaring classes that implement this interface. */
     515             : #define NS_DECL_MOZIASYNCHISTORY \
     516             :   NS_IMETHOD UpdatePlaces(JS::HandleValue aPlaceInfo, mozIVisitInfoCallback *aCallback, bool aGroupNotifications, JSContext* cx) override; \
     517             :   NS_IMETHOD IsURIVisited(nsIURI *aURI, mozIVisitedStatusCallback *aCallback) override; 
     518             : 
     519             : /* Use this macro when declaring the members of this interface when the
     520             :    class doesn't implement the interface. This is useful for forwarding. */
     521             : #define NS_DECL_NON_VIRTUAL_MOZIASYNCHISTORY \
     522             :   nsresult UpdatePlaces(JS::HandleValue aPlaceInfo, mozIVisitInfoCallback *aCallback, bool aGroupNotifications, JSContext* cx); \
     523             :   nsresult IsURIVisited(nsIURI *aURI, mozIVisitedStatusCallback *aCallback); 
     524             : 
     525             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     526             : #define NS_FORWARD_MOZIASYNCHISTORY(_to) \
     527             :   NS_IMETHOD UpdatePlaces(JS::HandleValue aPlaceInfo, mozIVisitInfoCallback *aCallback, bool aGroupNotifications, JSContext* cx) override { return _to UpdatePlaces(aPlaceInfo, aCallback, aGroupNotifications, cx); } \
     528             :   NS_IMETHOD IsURIVisited(nsIURI *aURI, mozIVisitedStatusCallback *aCallback) override { return _to IsURIVisited(aURI, aCallback); } 
     529             : 
     530             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     531             : #define NS_FORWARD_SAFE_MOZIASYNCHISTORY(_to) \
     532             :   NS_IMETHOD UpdatePlaces(JS::HandleValue aPlaceInfo, mozIVisitInfoCallback *aCallback, bool aGroupNotifications, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdatePlaces(aPlaceInfo, aCallback, aGroupNotifications, cx); } \
     533             :   NS_IMETHOD IsURIVisited(nsIURI *aURI, mozIVisitedStatusCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsURIVisited(aURI, aCallback); } 
     534             : 
     535             : #if 0
     536             : /* Use the code below as a template for the implementation class for this interface. */
     537             : 
     538             : /* Header file */
     539             : class _MYCLASS_ : public mozIAsyncHistory
     540             : {
     541             : public:
     542             :   NS_DECL_ISUPPORTS
     543             :   NS_DECL_MOZIASYNCHISTORY
     544             : 
     545             :   _MYCLASS_();
     546             : 
     547             : private:
     548             :   ~_MYCLASS_();
     549             : 
     550             : protected:
     551             :   /* additional members */
     552             : };
     553             : 
     554             : /* Implementation file */
     555             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIAsyncHistory)
     556             : 
     557             : _MYCLASS_::_MYCLASS_()
     558             : {
     559             :   /* member initializers and constructor code */
     560             : }
     561             : 
     562             : _MYCLASS_::~_MYCLASS_()
     563             : {
     564             :   /* destructor code */
     565             : }
     566             : 
     567             : /* [implicit_jscontext] void updatePlaces (in jsval aPlaceInfo, [optional] in mozIVisitInfoCallback aCallback, [optional] in bool aGroupNotifications); */
     568             : NS_IMETHODIMP _MYCLASS_::UpdatePlaces(JS::HandleValue aPlaceInfo, mozIVisitInfoCallback *aCallback, bool aGroupNotifications, JSContext* cx)
     569             : {
     570             :     return NS_ERROR_NOT_IMPLEMENTED;
     571             : }
     572             : 
     573             : /* void isURIVisited (in nsIURI aURI, in mozIVisitedStatusCallback aCallback); */
     574             : NS_IMETHODIMP _MYCLASS_::IsURIVisited(nsIURI *aURI, mozIVisitedStatusCallback *aCallback)
     575             : {
     576             :     return NS_ERROR_NOT_IMPLEMENTED;
     577             : }
     578             : 
     579             : /* End of implementation class template. */
     580             : #endif
     581             : 
     582             : 
     583             : #endif /* __gen_mozIAsyncHistory_h__ */

Generated by: LCOV version 1.13