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