LCOV - code coverage report
Current view: directory - objdir/dist/include - mozIAsyncHistory.h (source / functions) Found Hit Coverage
Test: app.info Lines: 4 4 100.0 %
Date: 2012-06-02 Functions: 4 4 100.0 %

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

Generated by: LCOV version 1.7