/usr/include/thunderbird/xpccomponents.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
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 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/xpccomponents.idl
*/
#ifndef __gen_xpccomponents_h__
#define __gen_xpccomponents_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
#include "jspubtd.h"
class xpcIJSWeakReference; /* forward declaration */
class nsIAddonInterposition; /* forward declaration */
class nsIClassInfo; /* forward declaration */
class nsIComponentManager; /* forward declaration */
class nsIJSCID; /* forward declaration */
class nsIJSIID; /* forward declaration */
class nsIPrincipal; /* forward declaration */
class nsIStackFrame; /* forward declaration */
/* starting interface: nsIXPCComponents_InterfacesByID */
#define NS_IXPCCOMPONENTS_INTERFACESBYID_IID_STR "f235ef76-9919-478b-aa0f-282d994ddf76"
#define NS_IXPCCOMPONENTS_INTERFACESBYID_IID \
{0xf235ef76, 0x9919, 0x478b, \
{ 0xaa, 0x0f, 0x28, 0x2d, 0x99, 0x4d, 0xdf, 0x76 }}
class NS_NO_VTABLE nsIXPCComponents_InterfacesByID : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_INTERFACESBYID_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_InterfacesByID, NS_IXPCCOMPONENTS_INTERFACESBYID_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_INTERFACESBYID \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_INTERFACESBYID(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_INTERFACESBYID(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_InterfacesByID : public nsIXPCComponents_InterfacesByID
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_INTERFACESBYID
nsXPCComponents_InterfacesByID();
private:
~nsXPCComponents_InterfacesByID();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_InterfacesByID, nsIXPCComponents_InterfacesByID)
nsXPCComponents_InterfacesByID::nsXPCComponents_InterfacesByID()
{
/* member initializers and constructor code */
}
nsXPCComponents_InterfacesByID::~nsXPCComponents_InterfacesByID()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_Interfaces */
#define NS_IXPCCOMPONENTS_INTERFACES_IID_STR "b8c31bba-79db-4a1d-930d-4cdd68713f9e"
#define NS_IXPCCOMPONENTS_INTERFACES_IID \
{0xb8c31bba, 0x79db, 0x4a1d, \
{ 0x93, 0x0d, 0x4c, 0xdd, 0x68, 0x71, 0x3f, 0x9e }}
class NS_NO_VTABLE nsIXPCComponents_Interfaces : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_INTERFACES_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_Interfaces, NS_IXPCCOMPONENTS_INTERFACES_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_INTERFACES \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_INTERFACES(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_INTERFACES(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_Interfaces : public nsIXPCComponents_Interfaces
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_INTERFACES
nsXPCComponents_Interfaces();
private:
~nsXPCComponents_Interfaces();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_Interfaces, nsIXPCComponents_Interfaces)
nsXPCComponents_Interfaces::nsXPCComponents_Interfaces()
{
/* member initializers and constructor code */
}
nsXPCComponents_Interfaces::~nsXPCComponents_Interfaces()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_Classes */
#define NS_IXPCCOMPONENTS_CLASSES_IID_STR "978ff520-d26c-11d2-9842-006008962422"
#define NS_IXPCCOMPONENTS_CLASSES_IID \
{0x978ff520, 0xd26c, 0x11d2, \
{ 0x98, 0x42, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
class NS_NO_VTABLE nsIXPCComponents_Classes : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_CLASSES_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_Classes, NS_IXPCCOMPONENTS_CLASSES_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_CLASSES \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_CLASSES(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_CLASSES(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_Classes : public nsIXPCComponents_Classes
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_CLASSES
nsXPCComponents_Classes();
private:
~nsXPCComponents_Classes();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_Classes, nsIXPCComponents_Classes)
nsXPCComponents_Classes::nsXPCComponents_Classes()
{
/* member initializers and constructor code */
}
nsXPCComponents_Classes::~nsXPCComponents_Classes()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_ClassesByID */
#define NS_IXPCCOMPONENTS_CLASSESBYID_IID_STR "336a9590-4d19-11d3-9893-006008962422"
#define NS_IXPCCOMPONENTS_CLASSESBYID_IID \
{0x336a9590, 0x4d19, 0x11d3, \
{ 0x98, 0x93, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
class NS_NO_VTABLE nsIXPCComponents_ClassesByID : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_CLASSESBYID_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_ClassesByID, NS_IXPCCOMPONENTS_CLASSESBYID_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_CLASSESBYID \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_CLASSESBYID(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_CLASSESBYID(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_ClassesByID : public nsIXPCComponents_ClassesByID
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_CLASSESBYID
nsXPCComponents_ClassesByID();
private:
~nsXPCComponents_ClassesByID();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_ClassesByID, nsIXPCComponents_ClassesByID)
nsXPCComponents_ClassesByID::nsXPCComponents_ClassesByID()
{
/* member initializers and constructor code */
}
nsXPCComponents_ClassesByID::~nsXPCComponents_ClassesByID()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_Results */
#define NS_IXPCCOMPONENTS_RESULTS_IID_STR "2fc229a0-5860-11d3-9899-006008962422"
#define NS_IXPCCOMPONENTS_RESULTS_IID \
{0x2fc229a0, 0x5860, 0x11d3, \
{ 0x98, 0x99, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
class NS_NO_VTABLE nsIXPCComponents_Results : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_RESULTS_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_Results, NS_IXPCCOMPONENTS_RESULTS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_RESULTS \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_RESULTS(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_RESULTS(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_Results : public nsIXPCComponents_Results
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_RESULTS
nsXPCComponents_Results();
private:
~nsXPCComponents_Results();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_Results, nsIXPCComponents_Results)
nsXPCComponents_Results::nsXPCComponents_Results()
{
/* member initializers and constructor code */
}
nsXPCComponents_Results::~nsXPCComponents_Results()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_ID */
#define NS_IXPCCOMPONENTS_ID_IID_STR "7994a6e0-e028-11d3-8f5d-0010a4e73d9a"
#define NS_IXPCCOMPONENTS_ID_IID \
{0x7994a6e0, 0xe028, 0x11d3, \
{ 0x8f, 0x5d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
class NS_NO_VTABLE nsIXPCComponents_ID : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_ID_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_ID, NS_IXPCCOMPONENTS_ID_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_ID \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_ID(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_ID(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_ID : public nsIXPCComponents_ID
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_ID
nsXPCComponents_ID();
private:
~nsXPCComponents_ID();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_ID, nsIXPCComponents_ID)
nsXPCComponents_ID::nsXPCComponents_ID()
{
/* member initializers and constructor code */
}
nsXPCComponents_ID::~nsXPCComponents_ID()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_Exception */
#define NS_IXPCCOMPONENTS_EXCEPTION_IID_STR "5bf039c0-e028-11d3-8f5d-0010a4e73d9a"
#define NS_IXPCCOMPONENTS_EXCEPTION_IID \
{0x5bf039c0, 0xe028, 0x11d3, \
{ 0x8f, 0x5d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
class NS_NO_VTABLE nsIXPCComponents_Exception : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_EXCEPTION_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_Exception, NS_IXPCCOMPONENTS_EXCEPTION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_EXCEPTION \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_EXCEPTION(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_EXCEPTION(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_Exception : public nsIXPCComponents_Exception
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_EXCEPTION
nsXPCComponents_Exception();
private:
~nsXPCComponents_Exception();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_Exception, nsIXPCComponents_Exception)
nsXPCComponents_Exception::nsXPCComponents_Exception()
{
/* member initializers and constructor code */
}
nsXPCComponents_Exception::~nsXPCComponents_Exception()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_Constructor */
#define NS_IXPCCOMPONENTS_CONSTRUCTOR_IID_STR "88655640-e028-11d3-8f5d-0010a4e73d9a"
#define NS_IXPCCOMPONENTS_CONSTRUCTOR_IID \
{0x88655640, 0xe028, 0x11d3, \
{ 0x8f, 0x5d, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
class NS_NO_VTABLE nsIXPCComponents_Constructor : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_CONSTRUCTOR_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_Constructor, NS_IXPCCOMPONENTS_CONSTRUCTOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_CONSTRUCTOR \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_CONSTRUCTOR(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_CONSTRUCTOR(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_Constructor : public nsIXPCComponents_Constructor
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_CONSTRUCTOR
nsXPCComponents_Constructor();
private:
~nsXPCComponents_Constructor();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_Constructor, nsIXPCComponents_Constructor)
nsXPCComponents_Constructor::nsXPCComponents_Constructor()
{
/* member initializers and constructor code */
}
nsXPCComponents_Constructor::~nsXPCComponents_Constructor()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCConstructor */
#define NS_IXPCCONSTRUCTOR_IID_STR "c814ca20-e0dc-11d3-8f5f-0010a4e73d9a"
#define NS_IXPCCONSTRUCTOR_IID \
{0xc814ca20, 0xe0dc, 0x11d3, \
{ 0x8f, 0x5f, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
class NS_NO_VTABLE nsIXPCConstructor : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCONSTRUCTOR_IID)
/* readonly attribute nsIJSCID classID; */
NS_IMETHOD GetClassID(nsIJSCID * *aClassID) = 0;
/* readonly attribute nsIJSIID interfaceID; */
NS_IMETHOD GetInterfaceID(nsIJSIID * *aInterfaceID) = 0;
/* readonly attribute string initializer; */
NS_IMETHOD GetInitializer(char * *aInitializer) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCConstructor, NS_IXPCCONSTRUCTOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCONSTRUCTOR \
NS_IMETHOD GetClassID(nsIJSCID * *aClassID) override; \
NS_IMETHOD GetInterfaceID(nsIJSIID * *aInterfaceID) override; \
NS_IMETHOD GetInitializer(char * *aInitializer) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCONSTRUCTOR(_to) \
NS_IMETHOD GetClassID(nsIJSCID * *aClassID) override { return _to GetClassID(aClassID); } \
NS_IMETHOD GetInterfaceID(nsIJSIID * *aInterfaceID) override { return _to GetInterfaceID(aInterfaceID); } \
NS_IMETHOD GetInitializer(char * *aInitializer) override { return _to GetInitializer(aInitializer); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCONSTRUCTOR(_to) \
NS_IMETHOD GetClassID(nsIJSCID * *aClassID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassID(aClassID); } \
NS_IMETHOD GetInterfaceID(nsIJSIID * *aInterfaceID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterfaceID(aInterfaceID); } \
NS_IMETHOD GetInitializer(char * *aInitializer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitializer(aInitializer); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCConstructor : public nsIXPCConstructor
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCONSTRUCTOR
nsXPCConstructor();
private:
~nsXPCConstructor();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCConstructor, nsIXPCConstructor)
nsXPCConstructor::nsXPCConstructor()
{
/* member initializers and constructor code */
}
nsXPCConstructor::~nsXPCConstructor()
{
/* destructor code */
}
/* readonly attribute nsIJSCID classID; */
NS_IMETHODIMP nsXPCConstructor::GetClassID(nsIJSCID * *aClassID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIJSIID interfaceID; */
NS_IMETHODIMP nsXPCConstructor::GetInterfaceID(nsIJSIID * *aInterfaceID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute string initializer; */
NS_IMETHODIMP nsXPCConstructor::GetInitializer(char * *aInitializer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_utils_Sandbox */
#define NS_IXPCCOMPONENTS_UTILS_SANDBOX_IID_STR "4f8ae0dc-d266-4a32-875b-6a9de71a8ce9"
#define NS_IXPCCOMPONENTS_UTILS_SANDBOX_IID \
{0x4f8ae0dc, 0xd266, 0x4a32, \
{ 0x87, 0x5b, 0x6a, 0x9d, 0xe7, 0x1a, 0x8c, 0xe9 }}
class NS_NO_VTABLE nsIXPCComponents_utils_Sandbox : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_UTILS_SANDBOX_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_utils_Sandbox, NS_IXPCCOMPONENTS_UTILS_SANDBOX_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_UTILS_SANDBOX \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_UTILS_SANDBOX(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_UTILS_SANDBOX(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_utils_Sandbox : public nsIXPCComponents_utils_Sandbox
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_UTILS_SANDBOX
nsXPCComponents_utils_Sandbox();
private:
~nsXPCComponents_utils_Sandbox();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_utils_Sandbox, nsIXPCComponents_utils_Sandbox)
nsXPCComponents_utils_Sandbox::nsXPCComponents_utils_Sandbox()
{
/* member initializers and constructor code */
}
nsXPCComponents_utils_Sandbox::~nsXPCComponents_utils_Sandbox()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: ScheduledGCCallback */
#define SCHEDULEDGCCALLBACK_IID_STR "71000535-b0fd-44d1-8ce0-909760e3953c"
#define SCHEDULEDGCCALLBACK_IID \
{0x71000535, 0xb0fd, 0x44d1, \
{ 0x8c, 0xe0, 0x90, 0x97, 0x60, 0xe3, 0x95, 0x3c }}
class NS_NO_VTABLE ScheduledGCCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(SCHEDULEDGCCALLBACK_IID)
/* void callback (); */
NS_IMETHOD Callback(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(ScheduledGCCallback, SCHEDULEDGCCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_SCHEDULEDGCCALLBACK \
NS_IMETHOD Callback(void) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_SCHEDULEDGCCALLBACK(_to) \
NS_IMETHOD Callback(void) override { return _to Callback(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_SCHEDULEDGCCALLBACK(_to) \
NS_IMETHOD Callback(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Callback(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public ScheduledGCCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_SCHEDULEDGCCALLBACK
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, ScheduledGCCallback)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* void callback (); */
NS_IMETHODIMP _MYCLASS_::Callback()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents_Utils */
#define NS_IXPCCOMPONENTS_UTILS_IID_STR "2617a800-63c1-11e4-9803-0800200c9a66"
#define NS_IXPCCOMPONENTS_UTILS_IID \
{0x2617a800, 0x63c1, 0x11e4, \
{ 0x98, 0x03, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
class NS_NO_VTABLE nsIXPCComponents_Utils : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_UTILS_IID)
/* [implicit_jscontext] void reportError (in jsval error); */
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) = 0;
/* readonly attribute nsIXPCComponents_utils_Sandbox Sandbox; */
NS_IMETHOD GetSandbox(nsIXPCComponents_utils_Sandbox * *aSandbox) = 0;
/* [implicit_jscontext,optional_argc] jsval evalInSandbox (in AString source, in jsval sandbox, [optional] in jsval version, [optional] in AUTF8String filename, [optional] in long lineNo); */
NS_IMETHOD EvalInSandbox(const nsAString & source, JS::HandleValue sandbox, JS::HandleValue version, const nsACString & filename, int32_t lineNo, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval getSandboxAddonId (in jsval sandbox); */
NS_IMETHOD GetSandboxAddonId(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval getSandboxMetadata (in jsval sandbox); */
NS_IMETHOD GetSandboxMetadata(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] void setSandboxMetadata (in jsval sandbox, in jsval metadata); */
NS_IMETHOD SetSandboxMetadata(JS::HandleValue sandbox, JS::HandleValue metadata, JSContext* cx) = 0;
/* [implicit_jscontext,optional_argc] jsval import (in AUTF8String aResourceURI, [optional] in jsval targetObj); */
NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
/* boolean isModuleLoaded (in AUTF8String aResourceURI); */
NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) = 0;
/* void unload (in AUTF8String registryLocation); */
NS_IMETHOD Unload(const nsACString & registryLocation) = 0;
/* [implicit_jscontext] void importGlobalProperties (in jsval aPropertyList); */
NS_IMETHOD ImportGlobalProperties(JS::HandleValue aPropertyList, JSContext* cx) = 0;
/* [implicit_jscontext] xpcIJSWeakReference getWeakReference (in jsval obj); */
NS_IMETHOD GetWeakReference(JS::HandleValue obj, JSContext* cx, xpcIJSWeakReference * *_retval) = 0;
/* void forceGC (); */
NS_IMETHOD ForceGC(void) = 0;
/* void forceCC (); */
NS_IMETHOD ForceCC(void) = 0;
/* void finishCC (); */
NS_IMETHOD FinishCC(void) = 0;
/* void ccSlice (in long long budget); */
NS_IMETHOD CcSlice(int64_t budget) = 0;
/* long getMaxCCSliceTimeSinceClear (); */
NS_IMETHOD GetMaxCCSliceTimeSinceClear(int32_t *_retval) = 0;
/* void clearMaxCCTime (); */
NS_IMETHOD ClearMaxCCTime(void) = 0;
/* void forceShrinkingGC (); */
NS_IMETHOD ForceShrinkingGC(void) = 0;
/* void schedulePreciseGC (in ScheduledGCCallback callback); */
NS_IMETHOD SchedulePreciseGC(ScheduledGCCallback *callback) = 0;
/* void schedulePreciseShrinkingGC (in ScheduledGCCallback callback); */
NS_IMETHOD SchedulePreciseShrinkingGC(ScheduledGCCallback *callback) = 0;
/* void unlinkGhostWindows (); */
NS_IMETHOD UnlinkGhostWindows(void) = 0;
/* [implicit_jscontext] jsval nondeterministicGetWeakMapKeys (in jsval aMap); */
NS_IMETHOD NondeterministicGetWeakMapKeys(JS::HandleValue aMap, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval getJSTestingFunctions (); */
NS_IMETHOD GetJSTestingFunctions(JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval getGlobalForObject (in jsval obj); */
NS_IMETHOD GetGlobalForObject(JS::HandleValue obj, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] boolean isProxy (in jsval vobject); */
NS_IMETHOD IsProxy(JS::HandleValue vobject, JSContext* cx, bool *_retval) = 0;
/* [implicit_jscontext] jsval exportFunction (in jsval vfunction, in jsval vscope, [optional] in jsval voptions); */
NS_IMETHOD ExportFunction(JS::HandleValue vfunction, JS::HandleValue vscope, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval createObjectIn (in jsval vobj, [optional] in jsval voptions); */
NS_IMETHOD CreateObjectIn(JS::HandleValue vobj, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] void makeObjectPropsNormal (in jsval vobj); */
NS_IMETHOD MakeObjectPropsNormal(JS::HandleValue vobj, JSContext* cx) = 0;
/* bool isDeadWrapper (in jsval obj); */
NS_IMETHOD IsDeadWrapper(JS::HandleValue obj, bool *_retval) = 0;
/* bool isCrossProcessWrapper (in jsval obj); */
NS_IMETHOD IsCrossProcessWrapper(JS::HandleValue obj, bool *_retval) = 0;
/* ACString getCrossProcessWrapperTag (in jsval obj); */
NS_IMETHOD GetCrossProcessWrapperTag(JS::HandleValue obj, nsACString & _retval) = 0;
/* [implicit_jscontext] void recomputeWrappers ([optional] in jsval vobj); */
NS_IMETHOD RecomputeWrappers(JS::HandleValue vobj, JSContext* cx) = 0;
/* [implicit_jscontext] void setWantXrays (in jsval vscope); */
NS_IMETHOD SetWantXrays(JS::HandleValue vscope, JSContext* cx) = 0;
/* [implicit_jscontext] void forcePermissiveCOWs (); */
NS_IMETHOD ForcePermissiveCOWs(JSContext* cx) = 0;
/* [implicit_jscontext] void skipCOWCallableChecks (); */
NS_IMETHOD SkipCOWCallableChecks(JSContext* cx) = 0;
/* [implicit_jscontext] void forcePrivilegedComponentsForScope (in jsval vscope); */
NS_IMETHOD ForcePrivilegedComponentsForScope(JS::HandleValue vscope, JSContext* cx) = 0;
/* [implicit_jscontext] jsval getComponentsForScope (in jsval vscope); */
NS_IMETHOD GetComponentsForScope(JS::HandleValue vscope, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] void dispatch (in jsval runnable, [optional] in jsval scope); */
NS_IMETHOD Dispatch(JS::HandleValue runnable, JS::HandleValue scope, JSContext* cx) = 0;
/* [implicit_jscontext] attribute boolean strict; */
NS_IMETHOD GetStrict(JSContext* cx, bool *aStrict) = 0;
NS_IMETHOD SetStrict(JSContext* cx, bool aStrict) = 0;
/* [implicit_jscontext] attribute boolean werror; */
NS_IMETHOD GetWerror(JSContext* cx, bool *aWerror) = 0;
NS_IMETHOD SetWerror(JSContext* cx, bool aWerror) = 0;
/* [implicit_jscontext] attribute boolean strict_mode; */
NS_IMETHOD GetStrict_mode(JSContext* cx, bool *aStrict_mode) = 0;
NS_IMETHOD SetStrict_mode(JSContext* cx, bool aStrict_mode) = 0;
/* [implicit_jscontext] attribute boolean ion; */
NS_IMETHOD GetIon(JSContext* cx, bool *aIon) = 0;
NS_IMETHOD SetIon(JSContext* cx, bool aIon) = 0;
/* [implicit_jscontext] void setGCZeal (in long zeal); */
NS_IMETHOD SetGCZeal(int32_t zeal, JSContext* cx) = 0;
/* [implicit_jscontext] void nukeSandbox (in jsval obj); */
NS_IMETHOD NukeSandbox(JS::HandleValue obj, JSContext* cx) = 0;
/* [implicit_jscontext] void blockScriptForGlobal (in jsval global); */
NS_IMETHOD BlockScriptForGlobal(JS::HandleValue global, JSContext* cx) = 0;
/* [implicit_jscontext] void unblockScriptForGlobal (in jsval global); */
NS_IMETHOD UnblockScriptForGlobal(JS::HandleValue global, JSContext* cx) = 0;
/* bool isXrayWrapper (in jsval obj); */
NS_IMETHOD IsXrayWrapper(JS::HandleValue obj, bool *_retval) = 0;
/* [implicit_jscontext] jsval waiveXrays (in jsval aVal); */
NS_IMETHOD WaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval unwaiveXrays (in jsval aVal); */
NS_IMETHOD UnwaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] string getClassName (in jsval aObj, in bool aUnwrap); */
NS_IMETHOD GetClassName(JS::HandleValue aObj, bool aUnwrap, JSContext* cx, char * *_retval) = 0;
/* nsIClassInfo getDOMClassInfo (in AString aClassName); */
NS_IMETHOD GetDOMClassInfo(const nsAString & aClassName, nsIClassInfo * *_retval) = 0;
/* [implicit_jscontext] jsval getIncumbentGlobal ([optional] in jsval callback); */
NS_IMETHOD GetIncumbentGlobal(JS::HandleValue callback, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] nsISupports generateXPCWrappedJS (in jsval obj, [optional] in jsval scope); */
NS_IMETHOD GenerateXPCWrappedJS(JS::HandleValue obj, JS::HandleValue scope, JSContext* cx, nsISupports * *_retval) = 0;
/* PRTime getWatchdogTimestamp (in AString aCategory); */
NS_IMETHOD GetWatchdogTimestamp(const nsAString & aCategory, PRTime *_retval) = 0;
/* [implicit_jscontext] jsval getJSEngineTelemetryValue (); */
NS_IMETHOD GetJSEngineTelemetryValue(JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] jsval cloneInto (in jsval value, in jsval scope, [optional] in jsval options); */
NS_IMETHOD CloneInto(JS::HandleValue value, JS::HandleValue scope, JS::HandleValue options, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* nsIPrincipal getWebIDLCallerPrincipal (); */
NS_IMETHOD GetWebIDLCallerPrincipal(nsIPrincipal * *_retval) = 0;
/* [implicit_jscontext] nsIPrincipal getObjectPrincipal (in jsval obj); */
NS_IMETHOD GetObjectPrincipal(JS::HandleValue obj, JSContext* cx, nsIPrincipal * *_retval) = 0;
/* [implicit_jscontext] ACString getCompartmentLocation (in jsval obj); */
NS_IMETHOD GetCompartmentLocation(JS::HandleValue obj, JSContext* cx, nsACString & _retval) = 0;
/* [implicit_jscontext] void setAddonInterposition (in ACString addonId, in nsIAddonInterposition interposition); */
NS_IMETHOD SetAddonInterposition(const nsACString & addonId, nsIAddonInterposition *interposition, JSContext* cx) = 0;
/* double now (); */
NS_IMETHOD Now(double *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents_Utils, NS_IXPCCOMPONENTS_UTILS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS_UTILS \
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) override; \
NS_IMETHOD GetSandbox(nsIXPCComponents_utils_Sandbox * *aSandbox) override; \
NS_IMETHOD EvalInSandbox(const nsAString & source, JS::HandleValue sandbox, JS::HandleValue version, const nsACString & filename, int32_t lineNo, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetSandboxAddonId(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetSandboxMetadata(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD SetSandboxMetadata(JS::HandleValue sandbox, JS::HandleValue metadata, JSContext* cx) override; \
NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) override; \
NS_IMETHOD Unload(const nsACString & registryLocation) override; \
NS_IMETHOD ImportGlobalProperties(JS::HandleValue aPropertyList, JSContext* cx) override; \
NS_IMETHOD GetWeakReference(JS::HandleValue obj, JSContext* cx, xpcIJSWeakReference * *_retval) override; \
NS_IMETHOD ForceGC(void) override; \
NS_IMETHOD ForceCC(void) override; \
NS_IMETHOD FinishCC(void) override; \
NS_IMETHOD CcSlice(int64_t budget) override; \
NS_IMETHOD GetMaxCCSliceTimeSinceClear(int32_t *_retval) override; \
NS_IMETHOD ClearMaxCCTime(void) override; \
NS_IMETHOD ForceShrinkingGC(void) override; \
NS_IMETHOD SchedulePreciseGC(ScheduledGCCallback *callback) override; \
NS_IMETHOD SchedulePreciseShrinkingGC(ScheduledGCCallback *callback) override; \
NS_IMETHOD UnlinkGhostWindows(void) override; \
NS_IMETHOD NondeterministicGetWeakMapKeys(JS::HandleValue aMap, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetJSTestingFunctions(JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetGlobalForObject(JS::HandleValue obj, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD IsProxy(JS::HandleValue vobject, JSContext* cx, bool *_retval) override; \
NS_IMETHOD ExportFunction(JS::HandleValue vfunction, JS::HandleValue vscope, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD CreateObjectIn(JS::HandleValue vobj, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD MakeObjectPropsNormal(JS::HandleValue vobj, JSContext* cx) override; \
NS_IMETHOD IsDeadWrapper(JS::HandleValue obj, bool *_retval) override; \
NS_IMETHOD IsCrossProcessWrapper(JS::HandleValue obj, bool *_retval) override; \
NS_IMETHOD GetCrossProcessWrapperTag(JS::HandleValue obj, nsACString & _retval) override; \
NS_IMETHOD RecomputeWrappers(JS::HandleValue vobj, JSContext* cx) override; \
NS_IMETHOD SetWantXrays(JS::HandleValue vscope, JSContext* cx) override; \
NS_IMETHOD ForcePermissiveCOWs(JSContext* cx) override; \
NS_IMETHOD SkipCOWCallableChecks(JSContext* cx) override; \
NS_IMETHOD ForcePrivilegedComponentsForScope(JS::HandleValue vscope, JSContext* cx) override; \
NS_IMETHOD GetComponentsForScope(JS::HandleValue vscope, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD Dispatch(JS::HandleValue runnable, JS::HandleValue scope, JSContext* cx) override; \
NS_IMETHOD GetStrict(JSContext* cx, bool *aStrict) override; \
NS_IMETHOD SetStrict(JSContext* cx, bool aStrict) override; \
NS_IMETHOD GetWerror(JSContext* cx, bool *aWerror) override; \
NS_IMETHOD SetWerror(JSContext* cx, bool aWerror) override; \
NS_IMETHOD GetStrict_mode(JSContext* cx, bool *aStrict_mode) override; \
NS_IMETHOD SetStrict_mode(JSContext* cx, bool aStrict_mode) override; \
NS_IMETHOD GetIon(JSContext* cx, bool *aIon) override; \
NS_IMETHOD SetIon(JSContext* cx, bool aIon) override; \
NS_IMETHOD SetGCZeal(int32_t zeal, JSContext* cx) override; \
NS_IMETHOD NukeSandbox(JS::HandleValue obj, JSContext* cx) override; \
NS_IMETHOD BlockScriptForGlobal(JS::HandleValue global, JSContext* cx) override; \
NS_IMETHOD UnblockScriptForGlobal(JS::HandleValue global, JSContext* cx) override; \
NS_IMETHOD IsXrayWrapper(JS::HandleValue obj, bool *_retval) override; \
NS_IMETHOD WaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD UnwaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetClassName(JS::HandleValue aObj, bool aUnwrap, JSContext* cx, char * *_retval) override; \
NS_IMETHOD GetDOMClassInfo(const nsAString & aClassName, nsIClassInfo * *_retval) override; \
NS_IMETHOD GetIncumbentGlobal(JS::HandleValue callback, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GenerateXPCWrappedJS(JS::HandleValue obj, JS::HandleValue scope, JSContext* cx, nsISupports * *_retval) override; \
NS_IMETHOD GetWatchdogTimestamp(const nsAString & aCategory, PRTime *_retval) override; \
NS_IMETHOD GetJSEngineTelemetryValue(JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD CloneInto(JS::HandleValue value, JS::HandleValue scope, JS::HandleValue options, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetWebIDLCallerPrincipal(nsIPrincipal * *_retval) override; \
NS_IMETHOD GetObjectPrincipal(JS::HandleValue obj, JSContext* cx, nsIPrincipal * *_retval) override; \
NS_IMETHOD GetCompartmentLocation(JS::HandleValue obj, JSContext* cx, nsACString & _retval) override; \
NS_IMETHOD SetAddonInterposition(const nsACString & addonId, nsIAddonInterposition *interposition, JSContext* cx) override; \
NS_IMETHOD Now(double *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS_UTILS(_to) \
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) override { return _to ReportError(error, cx); } \
NS_IMETHOD GetSandbox(nsIXPCComponents_utils_Sandbox * *aSandbox) override { return _to GetSandbox(aSandbox); } \
NS_IMETHOD EvalInSandbox(const nsAString & source, JS::HandleValue sandbox, JS::HandleValue version, const nsACString & filename, int32_t lineNo, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to EvalInSandbox(source, sandbox, version, filename, lineNo, cx, _argc, _retval); } \
NS_IMETHOD GetSandboxAddonId(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetSandboxAddonId(sandbox, cx, _retval); } \
NS_IMETHOD GetSandboxMetadata(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetSandboxMetadata(sandbox, cx, _retval); } \
NS_IMETHOD SetSandboxMetadata(JS::HandleValue sandbox, JS::HandleValue metadata, JSContext* cx) override { return _to SetSandboxMetadata(sandbox, metadata, cx); } \
NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to Import(aResourceURI, targetObj, cx, _argc, _retval); } \
NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) override { return _to IsModuleLoaded(aResourceURI, _retval); } \
NS_IMETHOD Unload(const nsACString & registryLocation) override { return _to Unload(registryLocation); } \
NS_IMETHOD ImportGlobalProperties(JS::HandleValue aPropertyList, JSContext* cx) override { return _to ImportGlobalProperties(aPropertyList, cx); } \
NS_IMETHOD GetWeakReference(JS::HandleValue obj, JSContext* cx, xpcIJSWeakReference * *_retval) override { return _to GetWeakReference(obj, cx, _retval); } \
NS_IMETHOD ForceGC(void) override { return _to ForceGC(); } \
NS_IMETHOD ForceCC(void) override { return _to ForceCC(); } \
NS_IMETHOD FinishCC(void) override { return _to FinishCC(); } \
NS_IMETHOD CcSlice(int64_t budget) override { return _to CcSlice(budget); } \
NS_IMETHOD GetMaxCCSliceTimeSinceClear(int32_t *_retval) override { return _to GetMaxCCSliceTimeSinceClear(_retval); } \
NS_IMETHOD ClearMaxCCTime(void) override { return _to ClearMaxCCTime(); } \
NS_IMETHOD ForceShrinkingGC(void) override { return _to ForceShrinkingGC(); } \
NS_IMETHOD SchedulePreciseGC(ScheduledGCCallback *callback) override { return _to SchedulePreciseGC(callback); } \
NS_IMETHOD SchedulePreciseShrinkingGC(ScheduledGCCallback *callback) override { return _to SchedulePreciseShrinkingGC(callback); } \
NS_IMETHOD UnlinkGhostWindows(void) override { return _to UnlinkGhostWindows(); } \
NS_IMETHOD NondeterministicGetWeakMapKeys(JS::HandleValue aMap, JSContext* cx, JS::MutableHandleValue _retval) override { return _to NondeterministicGetWeakMapKeys(aMap, cx, _retval); } \
NS_IMETHOD GetJSTestingFunctions(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetJSTestingFunctions(cx, _retval); } \
NS_IMETHOD GetGlobalForObject(JS::HandleValue obj, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetGlobalForObject(obj, cx, _retval); } \
NS_IMETHOD IsProxy(JS::HandleValue vobject, JSContext* cx, bool *_retval) override { return _to IsProxy(vobject, cx, _retval); } \
NS_IMETHOD ExportFunction(JS::HandleValue vfunction, JS::HandleValue vscope, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) override { return _to ExportFunction(vfunction, vscope, voptions, cx, _retval); } \
NS_IMETHOD CreateObjectIn(JS::HandleValue vobj, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) override { return _to CreateObjectIn(vobj, voptions, cx, _retval); } \
NS_IMETHOD MakeObjectPropsNormal(JS::HandleValue vobj, JSContext* cx) override { return _to MakeObjectPropsNormal(vobj, cx); } \
NS_IMETHOD IsDeadWrapper(JS::HandleValue obj, bool *_retval) override { return _to IsDeadWrapper(obj, _retval); } \
NS_IMETHOD IsCrossProcessWrapper(JS::HandleValue obj, bool *_retval) override { return _to IsCrossProcessWrapper(obj, _retval); } \
NS_IMETHOD GetCrossProcessWrapperTag(JS::HandleValue obj, nsACString & _retval) override { return _to GetCrossProcessWrapperTag(obj, _retval); } \
NS_IMETHOD RecomputeWrappers(JS::HandleValue vobj, JSContext* cx) override { return _to RecomputeWrappers(vobj, cx); } \
NS_IMETHOD SetWantXrays(JS::HandleValue vscope, JSContext* cx) override { return _to SetWantXrays(vscope, cx); } \
NS_IMETHOD ForcePermissiveCOWs(JSContext* cx) override { return _to ForcePermissiveCOWs(cx); } \
NS_IMETHOD SkipCOWCallableChecks(JSContext* cx) override { return _to SkipCOWCallableChecks(cx); } \
NS_IMETHOD ForcePrivilegedComponentsForScope(JS::HandleValue vscope, JSContext* cx) override { return _to ForcePrivilegedComponentsForScope(vscope, cx); } \
NS_IMETHOD GetComponentsForScope(JS::HandleValue vscope, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetComponentsForScope(vscope, cx, _retval); } \
NS_IMETHOD Dispatch(JS::HandleValue runnable, JS::HandleValue scope, JSContext* cx) override { return _to Dispatch(runnable, scope, cx); } \
NS_IMETHOD GetStrict(JSContext* cx, bool *aStrict) override { return _to GetStrict(cx, aStrict); } \
NS_IMETHOD SetStrict(JSContext* cx, bool aStrict) override { return _to SetStrict(cx, aStrict); } \
NS_IMETHOD GetWerror(JSContext* cx, bool *aWerror) override { return _to GetWerror(cx, aWerror); } \
NS_IMETHOD SetWerror(JSContext* cx, bool aWerror) override { return _to SetWerror(cx, aWerror); } \
NS_IMETHOD GetStrict_mode(JSContext* cx, bool *aStrict_mode) override { return _to GetStrict_mode(cx, aStrict_mode); } \
NS_IMETHOD SetStrict_mode(JSContext* cx, bool aStrict_mode) override { return _to SetStrict_mode(cx, aStrict_mode); } \
NS_IMETHOD GetIon(JSContext* cx, bool *aIon) override { return _to GetIon(cx, aIon); } \
NS_IMETHOD SetIon(JSContext* cx, bool aIon) override { return _to SetIon(cx, aIon); } \
NS_IMETHOD SetGCZeal(int32_t zeal, JSContext* cx) override { return _to SetGCZeal(zeal, cx); } \
NS_IMETHOD NukeSandbox(JS::HandleValue obj, JSContext* cx) override { return _to NukeSandbox(obj, cx); } \
NS_IMETHOD BlockScriptForGlobal(JS::HandleValue global, JSContext* cx) override { return _to BlockScriptForGlobal(global, cx); } \
NS_IMETHOD UnblockScriptForGlobal(JS::HandleValue global, JSContext* cx) override { return _to UnblockScriptForGlobal(global, cx); } \
NS_IMETHOD IsXrayWrapper(JS::HandleValue obj, bool *_retval) override { return _to IsXrayWrapper(obj, _retval); } \
NS_IMETHOD WaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) override { return _to WaiveXrays(aVal, cx, _retval); } \
NS_IMETHOD UnwaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) override { return _to UnwaiveXrays(aVal, cx, _retval); } \
NS_IMETHOD GetClassName(JS::HandleValue aObj, bool aUnwrap, JSContext* cx, char * *_retval) override { return _to GetClassName(aObj, aUnwrap, cx, _retval); } \
NS_IMETHOD GetDOMClassInfo(const nsAString & aClassName, nsIClassInfo * *_retval) override { return _to GetDOMClassInfo(aClassName, _retval); } \
NS_IMETHOD GetIncumbentGlobal(JS::HandleValue callback, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetIncumbentGlobal(callback, cx, _retval); } \
NS_IMETHOD GenerateXPCWrappedJS(JS::HandleValue obj, JS::HandleValue scope, JSContext* cx, nsISupports * *_retval) override { return _to GenerateXPCWrappedJS(obj, scope, cx, _retval); } \
NS_IMETHOD GetWatchdogTimestamp(const nsAString & aCategory, PRTime *_retval) override { return _to GetWatchdogTimestamp(aCategory, _retval); } \
NS_IMETHOD GetJSEngineTelemetryValue(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetJSEngineTelemetryValue(cx, _retval); } \
NS_IMETHOD CloneInto(JS::HandleValue value, JS::HandleValue scope, JS::HandleValue options, JSContext* cx, JS::MutableHandleValue _retval) override { return _to CloneInto(value, scope, options, cx, _retval); } \
NS_IMETHOD GetWebIDLCallerPrincipal(nsIPrincipal * *_retval) override { return _to GetWebIDLCallerPrincipal(_retval); } \
NS_IMETHOD GetObjectPrincipal(JS::HandleValue obj, JSContext* cx, nsIPrincipal * *_retval) override { return _to GetObjectPrincipal(obj, cx, _retval); } \
NS_IMETHOD GetCompartmentLocation(JS::HandleValue obj, JSContext* cx, nsACString & _retval) override { return _to GetCompartmentLocation(obj, cx, _retval); } \
NS_IMETHOD SetAddonInterposition(const nsACString & addonId, nsIAddonInterposition *interposition, JSContext* cx) override { return _to SetAddonInterposition(addonId, interposition, cx); } \
NS_IMETHOD Now(double *_retval) override { return _to Now(_retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS_UTILS(_to) \
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportError(error, cx); } \
NS_IMETHOD GetSandbox(nsIXPCComponents_utils_Sandbox * *aSandbox) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSandbox(aSandbox); } \
NS_IMETHOD EvalInSandbox(const nsAString & source, JS::HandleValue sandbox, JS::HandleValue version, const nsACString & filename, int32_t lineNo, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EvalInSandbox(source, sandbox, version, filename, lineNo, cx, _argc, _retval); } \
NS_IMETHOD GetSandboxAddonId(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSandboxAddonId(sandbox, cx, _retval); } \
NS_IMETHOD GetSandboxMetadata(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSandboxMetadata(sandbox, cx, _retval); } \
NS_IMETHOD SetSandboxMetadata(JS::HandleValue sandbox, JS::HandleValue metadata, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSandboxMetadata(sandbox, metadata, cx); } \
NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Import(aResourceURI, targetObj, cx, _argc, _retval); } \
NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsModuleLoaded(aResourceURI, _retval); } \
NS_IMETHOD Unload(const nsACString & registryLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Unload(registryLocation); } \
NS_IMETHOD ImportGlobalProperties(JS::HandleValue aPropertyList, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportGlobalProperties(aPropertyList, cx); } \
NS_IMETHOD GetWeakReference(JS::HandleValue obj, JSContext* cx, xpcIJSWeakReference * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWeakReference(obj, cx, _retval); } \
NS_IMETHOD ForceGC(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceGC(); } \
NS_IMETHOD ForceCC(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceCC(); } \
NS_IMETHOD FinishCC(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishCC(); } \
NS_IMETHOD CcSlice(int64_t budget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CcSlice(budget); } \
NS_IMETHOD GetMaxCCSliceTimeSinceClear(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxCCSliceTimeSinceClear(_retval); } \
NS_IMETHOD ClearMaxCCTime(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearMaxCCTime(); } \
NS_IMETHOD ForceShrinkingGC(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceShrinkingGC(); } \
NS_IMETHOD SchedulePreciseGC(ScheduledGCCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SchedulePreciseGC(callback); } \
NS_IMETHOD SchedulePreciseShrinkingGC(ScheduledGCCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SchedulePreciseShrinkingGC(callback); } \
NS_IMETHOD UnlinkGhostWindows(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlinkGhostWindows(); } \
NS_IMETHOD NondeterministicGetWeakMapKeys(JS::HandleValue aMap, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NondeterministicGetWeakMapKeys(aMap, cx, _retval); } \
NS_IMETHOD GetJSTestingFunctions(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSTestingFunctions(cx, _retval); } \
NS_IMETHOD GetGlobalForObject(JS::HandleValue obj, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalForObject(obj, cx, _retval); } \
NS_IMETHOD IsProxy(JS::HandleValue vobject, JSContext* cx, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsProxy(vobject, cx, _retval); } \
NS_IMETHOD ExportFunction(JS::HandleValue vfunction, JS::HandleValue vscope, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExportFunction(vfunction, vscope, voptions, cx, _retval); } \
NS_IMETHOD CreateObjectIn(JS::HandleValue vobj, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateObjectIn(vobj, voptions, cx, _retval); } \
NS_IMETHOD MakeObjectPropsNormal(JS::HandleValue vobj, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeObjectPropsNormal(vobj, cx); } \
NS_IMETHOD IsDeadWrapper(JS::HandleValue obj, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDeadWrapper(obj, _retval); } \
NS_IMETHOD IsCrossProcessWrapper(JS::HandleValue obj, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCrossProcessWrapper(obj, _retval); } \
NS_IMETHOD GetCrossProcessWrapperTag(JS::HandleValue obj, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCrossProcessWrapperTag(obj, _retval); } \
NS_IMETHOD RecomputeWrappers(JS::HandleValue vobj, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RecomputeWrappers(vobj, cx); } \
NS_IMETHOD SetWantXrays(JS::HandleValue vscope, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWantXrays(vscope, cx); } \
NS_IMETHOD ForcePermissiveCOWs(JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForcePermissiveCOWs(cx); } \
NS_IMETHOD SkipCOWCallableChecks(JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SkipCOWCallableChecks(cx); } \
NS_IMETHOD ForcePrivilegedComponentsForScope(JS::HandleValue vscope, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForcePrivilegedComponentsForScope(vscope, cx); } \
NS_IMETHOD GetComponentsForScope(JS::HandleValue vscope, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComponentsForScope(vscope, cx, _retval); } \
NS_IMETHOD Dispatch(JS::HandleValue runnable, JS::HandleValue scope, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Dispatch(runnable, scope, cx); } \
NS_IMETHOD GetStrict(JSContext* cx, bool *aStrict) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrict(cx, aStrict); } \
NS_IMETHOD SetStrict(JSContext* cx, bool aStrict) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrict(cx, aStrict); } \
NS_IMETHOD GetWerror(JSContext* cx, bool *aWerror) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWerror(cx, aWerror); } \
NS_IMETHOD SetWerror(JSContext* cx, bool aWerror) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWerror(cx, aWerror); } \
NS_IMETHOD GetStrict_mode(JSContext* cx, bool *aStrict_mode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrict_mode(cx, aStrict_mode); } \
NS_IMETHOD SetStrict_mode(JSContext* cx, bool aStrict_mode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrict_mode(cx, aStrict_mode); } \
NS_IMETHOD GetIon(JSContext* cx, bool *aIon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIon(cx, aIon); } \
NS_IMETHOD SetIon(JSContext* cx, bool aIon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIon(cx, aIon); } \
NS_IMETHOD SetGCZeal(int32_t zeal, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGCZeal(zeal, cx); } \
NS_IMETHOD NukeSandbox(JS::HandleValue obj, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NukeSandbox(obj, cx); } \
NS_IMETHOD BlockScriptForGlobal(JS::HandleValue global, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BlockScriptForGlobal(global, cx); } \
NS_IMETHOD UnblockScriptForGlobal(JS::HandleValue global, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnblockScriptForGlobal(global, cx); } \
NS_IMETHOD IsXrayWrapper(JS::HandleValue obj, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsXrayWrapper(obj, _retval); } \
NS_IMETHOD WaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WaiveXrays(aVal, cx, _retval); } \
NS_IMETHOD UnwaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnwaiveXrays(aVal, cx, _retval); } \
NS_IMETHOD GetClassName(JS::HandleValue aObj, bool aUnwrap, JSContext* cx, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aObj, aUnwrap, cx, _retval); } \
NS_IMETHOD GetDOMClassInfo(const nsAString & aClassName, nsIClassInfo * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDOMClassInfo(aClassName, _retval); } \
NS_IMETHOD GetIncumbentGlobal(JS::HandleValue callback, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncumbentGlobal(callback, cx, _retval); } \
NS_IMETHOD GenerateXPCWrappedJS(JS::HandleValue obj, JS::HandleValue scope, JSContext* cx, nsISupports * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateXPCWrappedJS(obj, scope, cx, _retval); } \
NS_IMETHOD GetWatchdogTimestamp(const nsAString & aCategory, PRTime *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWatchdogTimestamp(aCategory, _retval); } \
NS_IMETHOD GetJSEngineTelemetryValue(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSEngineTelemetryValue(cx, _retval); } \
NS_IMETHOD CloneInto(JS::HandleValue value, JS::HandleValue scope, JS::HandleValue options, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneInto(value, scope, options, cx, _retval); } \
NS_IMETHOD GetWebIDLCallerPrincipal(nsIPrincipal * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWebIDLCallerPrincipal(_retval); } \
NS_IMETHOD GetObjectPrincipal(JS::HandleValue obj, JSContext* cx, nsIPrincipal * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjectPrincipal(obj, cx, _retval); } \
NS_IMETHOD GetCompartmentLocation(JS::HandleValue obj, JSContext* cx, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompartmentLocation(obj, cx, _retval); } \
NS_IMETHOD SetAddonInterposition(const nsACString & addonId, nsIAddonInterposition *interposition, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAddonInterposition(addonId, interposition, cx); } \
NS_IMETHOD Now(double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Now(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents_Utils : public nsIXPCComponents_Utils
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS_UTILS
nsXPCComponents_Utils();
private:
~nsXPCComponents_Utils();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents_Utils, nsIXPCComponents_Utils)
nsXPCComponents_Utils::nsXPCComponents_Utils()
{
/* member initializers and constructor code */
}
nsXPCComponents_Utils::~nsXPCComponents_Utils()
{
/* destructor code */
}
/* [implicit_jscontext] void reportError (in jsval error); */
NS_IMETHODIMP nsXPCComponents_Utils::ReportError(JS::HandleValue error, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_utils_Sandbox Sandbox; */
NS_IMETHODIMP nsXPCComponents_Utils::GetSandbox(nsIXPCComponents_utils_Sandbox * *aSandbox)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] jsval evalInSandbox (in AString source, in jsval sandbox, [optional] in jsval version, [optional] in AUTF8String filename, [optional] in long lineNo); */
NS_IMETHODIMP nsXPCComponents_Utils::EvalInSandbox(const nsAString & source, JS::HandleValue sandbox, JS::HandleValue version, const nsACString & filename, int32_t lineNo, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getSandboxAddonId (in jsval sandbox); */
NS_IMETHODIMP nsXPCComponents_Utils::GetSandboxAddonId(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getSandboxMetadata (in jsval sandbox); */
NS_IMETHODIMP nsXPCComponents_Utils::GetSandboxMetadata(JS::HandleValue sandbox, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void setSandboxMetadata (in jsval sandbox, in jsval metadata); */
NS_IMETHODIMP nsXPCComponents_Utils::SetSandboxMetadata(JS::HandleValue sandbox, JS::HandleValue metadata, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] jsval import (in AUTF8String aResourceURI, [optional] in jsval targetObj); */
NS_IMETHODIMP nsXPCComponents_Utils::Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isModuleLoaded (in AUTF8String aResourceURI); */
NS_IMETHODIMP nsXPCComponents_Utils::IsModuleLoaded(const nsACString & aResourceURI, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unload (in AUTF8String registryLocation); */
NS_IMETHODIMP nsXPCComponents_Utils::Unload(const nsACString & registryLocation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void importGlobalProperties (in jsval aPropertyList); */
NS_IMETHODIMP nsXPCComponents_Utils::ImportGlobalProperties(JS::HandleValue aPropertyList, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] xpcIJSWeakReference getWeakReference (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::GetWeakReference(JS::HandleValue obj, JSContext* cx, xpcIJSWeakReference * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forceGC (); */
NS_IMETHODIMP nsXPCComponents_Utils::ForceGC()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forceCC (); */
NS_IMETHODIMP nsXPCComponents_Utils::ForceCC()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void finishCC (); */
NS_IMETHODIMP nsXPCComponents_Utils::FinishCC()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void ccSlice (in long long budget); */
NS_IMETHODIMP nsXPCComponents_Utils::CcSlice(int64_t budget)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getMaxCCSliceTimeSinceClear (); */
NS_IMETHODIMP nsXPCComponents_Utils::GetMaxCCSliceTimeSinceClear(int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearMaxCCTime (); */
NS_IMETHODIMP nsXPCComponents_Utils::ClearMaxCCTime()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forceShrinkingGC (); */
NS_IMETHODIMP nsXPCComponents_Utils::ForceShrinkingGC()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void schedulePreciseGC (in ScheduledGCCallback callback); */
NS_IMETHODIMP nsXPCComponents_Utils::SchedulePreciseGC(ScheduledGCCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void schedulePreciseShrinkingGC (in ScheduledGCCallback callback); */
NS_IMETHODIMP nsXPCComponents_Utils::SchedulePreciseShrinkingGC(ScheduledGCCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unlinkGhostWindows (); */
NS_IMETHODIMP nsXPCComponents_Utils::UnlinkGhostWindows()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval nondeterministicGetWeakMapKeys (in jsval aMap); */
NS_IMETHODIMP nsXPCComponents_Utils::NondeterministicGetWeakMapKeys(JS::HandleValue aMap, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getJSTestingFunctions (); */
NS_IMETHODIMP nsXPCComponents_Utils::GetJSTestingFunctions(JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getGlobalForObject (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::GetGlobalForObject(JS::HandleValue obj, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] boolean isProxy (in jsval vobject); */
NS_IMETHODIMP nsXPCComponents_Utils::IsProxy(JS::HandleValue vobject, JSContext* cx, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval exportFunction (in jsval vfunction, in jsval vscope, [optional] in jsval voptions); */
NS_IMETHODIMP nsXPCComponents_Utils::ExportFunction(JS::HandleValue vfunction, JS::HandleValue vscope, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval createObjectIn (in jsval vobj, [optional] in jsval voptions); */
NS_IMETHODIMP nsXPCComponents_Utils::CreateObjectIn(JS::HandleValue vobj, JS::HandleValue voptions, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void makeObjectPropsNormal (in jsval vobj); */
NS_IMETHODIMP nsXPCComponents_Utils::MakeObjectPropsNormal(JS::HandleValue vobj, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* bool isDeadWrapper (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::IsDeadWrapper(JS::HandleValue obj, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* bool isCrossProcessWrapper (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::IsCrossProcessWrapper(JS::HandleValue obj, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString getCrossProcessWrapperTag (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::GetCrossProcessWrapperTag(JS::HandleValue obj, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void recomputeWrappers ([optional] in jsval vobj); */
NS_IMETHODIMP nsXPCComponents_Utils::RecomputeWrappers(JS::HandleValue vobj, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void setWantXrays (in jsval vscope); */
NS_IMETHODIMP nsXPCComponents_Utils::SetWantXrays(JS::HandleValue vscope, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void forcePermissiveCOWs (); */
NS_IMETHODIMP nsXPCComponents_Utils::ForcePermissiveCOWs(JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void skipCOWCallableChecks (); */
NS_IMETHODIMP nsXPCComponents_Utils::SkipCOWCallableChecks(JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void forcePrivilegedComponentsForScope (in jsval vscope); */
NS_IMETHODIMP nsXPCComponents_Utils::ForcePrivilegedComponentsForScope(JS::HandleValue vscope, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getComponentsForScope (in jsval vscope); */
NS_IMETHODIMP nsXPCComponents_Utils::GetComponentsForScope(JS::HandleValue vscope, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void dispatch (in jsval runnable, [optional] in jsval scope); */
NS_IMETHODIMP nsXPCComponents_Utils::Dispatch(JS::HandleValue runnable, JS::HandleValue scope, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute boolean strict; */
NS_IMETHODIMP nsXPCComponents_Utils::GetStrict(JSContext* cx, bool *aStrict)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCComponents_Utils::SetStrict(JSContext* cx, bool aStrict)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute boolean werror; */
NS_IMETHODIMP nsXPCComponents_Utils::GetWerror(JSContext* cx, bool *aWerror)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCComponents_Utils::SetWerror(JSContext* cx, bool aWerror)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute boolean strict_mode; */
NS_IMETHODIMP nsXPCComponents_Utils::GetStrict_mode(JSContext* cx, bool *aStrict_mode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCComponents_Utils::SetStrict_mode(JSContext* cx, bool aStrict_mode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute boolean ion; */
NS_IMETHODIMP nsXPCComponents_Utils::GetIon(JSContext* cx, bool *aIon)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCComponents_Utils::SetIon(JSContext* cx, bool aIon)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void setGCZeal (in long zeal); */
NS_IMETHODIMP nsXPCComponents_Utils::SetGCZeal(int32_t zeal, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void nukeSandbox (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::NukeSandbox(JS::HandleValue obj, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void blockScriptForGlobal (in jsval global); */
NS_IMETHODIMP nsXPCComponents_Utils::BlockScriptForGlobal(JS::HandleValue global, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void unblockScriptForGlobal (in jsval global); */
NS_IMETHODIMP nsXPCComponents_Utils::UnblockScriptForGlobal(JS::HandleValue global, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* bool isXrayWrapper (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::IsXrayWrapper(JS::HandleValue obj, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval waiveXrays (in jsval aVal); */
NS_IMETHODIMP nsXPCComponents_Utils::WaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval unwaiveXrays (in jsval aVal); */
NS_IMETHODIMP nsXPCComponents_Utils::UnwaiveXrays(JS::HandleValue aVal, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] string getClassName (in jsval aObj, in bool aUnwrap); */
NS_IMETHODIMP nsXPCComponents_Utils::GetClassName(JS::HandleValue aObj, bool aUnwrap, JSContext* cx, char * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIClassInfo getDOMClassInfo (in AString aClassName); */
NS_IMETHODIMP nsXPCComponents_Utils::GetDOMClassInfo(const nsAString & aClassName, nsIClassInfo * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getIncumbentGlobal ([optional] in jsval callback); */
NS_IMETHODIMP nsXPCComponents_Utils::GetIncumbentGlobal(JS::HandleValue callback, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] nsISupports generateXPCWrappedJS (in jsval obj, [optional] in jsval scope); */
NS_IMETHODIMP nsXPCComponents_Utils::GenerateXPCWrappedJS(JS::HandleValue obj, JS::HandleValue scope, JSContext* cx, nsISupports * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* PRTime getWatchdogTimestamp (in AString aCategory); */
NS_IMETHODIMP nsXPCComponents_Utils::GetWatchdogTimestamp(const nsAString & aCategory, PRTime *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getJSEngineTelemetryValue (); */
NS_IMETHODIMP nsXPCComponents_Utils::GetJSEngineTelemetryValue(JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval cloneInto (in jsval value, in jsval scope, [optional] in jsval options); */
NS_IMETHODIMP nsXPCComponents_Utils::CloneInto(JS::HandleValue value, JS::HandleValue scope, JS::HandleValue options, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIPrincipal getWebIDLCallerPrincipal (); */
NS_IMETHODIMP nsXPCComponents_Utils::GetWebIDLCallerPrincipal(nsIPrincipal * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] nsIPrincipal getObjectPrincipal (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::GetObjectPrincipal(JS::HandleValue obj, JSContext* cx, nsIPrincipal * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] ACString getCompartmentLocation (in jsval obj); */
NS_IMETHODIMP nsXPCComponents_Utils::GetCompartmentLocation(JS::HandleValue obj, JSContext* cx, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void setAddonInterposition (in ACString addonId, in nsIAddonInterposition interposition); */
NS_IMETHODIMP nsXPCComponents_Utils::SetAddonInterposition(const nsACString & addonId, nsIAddonInterposition *interposition, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* double now (); */
NS_IMETHODIMP nsXPCComponents_Utils::Now(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponentsBase */
#define NS_IXPCCOMPONENTSBASE_IID_STR "eeeada2f-86c0-4609-b2bf-4bf2351b1ce6"
#define NS_IXPCCOMPONENTSBASE_IID \
{0xeeeada2f, 0x86c0, 0x4609, \
{ 0xb2, 0xbf, 0x4b, 0xf2, 0x35, 0x1b, 0x1c, 0xe6 }}
class NS_NO_VTABLE nsIXPCComponentsBase : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTSBASE_IID)
/* readonly attribute nsIXPCComponents_Interfaces interfaces; */
NS_IMETHOD GetInterfaces(nsIXPCComponents_Interfaces * *aInterfaces) = 0;
/* readonly attribute nsIXPCComponents_InterfacesByID interfacesByID; */
NS_IMETHOD GetInterfacesByID(nsIXPCComponents_InterfacesByID * *aInterfacesByID) = 0;
/* readonly attribute nsIXPCComponents_Results results; */
NS_IMETHOD GetResults(nsIXPCComponents_Results * *aResults) = 0;
/* boolean isSuccessCode (in nsresult result); */
NS_IMETHOD IsSuccessCode(nsresult result, bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponentsBase, NS_IXPCCOMPONENTSBASE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTSBASE \
NS_IMETHOD GetInterfaces(nsIXPCComponents_Interfaces * *aInterfaces) override; \
NS_IMETHOD GetInterfacesByID(nsIXPCComponents_InterfacesByID * *aInterfacesByID) override; \
NS_IMETHOD GetResults(nsIXPCComponents_Results * *aResults) override; \
NS_IMETHOD IsSuccessCode(nsresult result, bool *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTSBASE(_to) \
NS_IMETHOD GetInterfaces(nsIXPCComponents_Interfaces * *aInterfaces) override { return _to GetInterfaces(aInterfaces); } \
NS_IMETHOD GetInterfacesByID(nsIXPCComponents_InterfacesByID * *aInterfacesByID) override { return _to GetInterfacesByID(aInterfacesByID); } \
NS_IMETHOD GetResults(nsIXPCComponents_Results * *aResults) override { return _to GetResults(aResults); } \
NS_IMETHOD IsSuccessCode(nsresult result, bool *_retval) override { return _to IsSuccessCode(result, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTSBASE(_to) \
NS_IMETHOD GetInterfaces(nsIXPCComponents_Interfaces * *aInterfaces) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterfaces(aInterfaces); } \
NS_IMETHOD GetInterfacesByID(nsIXPCComponents_InterfacesByID * *aInterfacesByID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterfacesByID(aInterfacesByID); } \
NS_IMETHOD GetResults(nsIXPCComponents_Results * *aResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResults(aResults); } \
NS_IMETHOD IsSuccessCode(nsresult result, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSuccessCode(result, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponentsBase : public nsIXPCComponentsBase
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTSBASE
nsXPCComponentsBase();
private:
~nsXPCComponentsBase();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponentsBase, nsIXPCComponentsBase)
nsXPCComponentsBase::nsXPCComponentsBase()
{
/* member initializers and constructor code */
}
nsXPCComponentsBase::~nsXPCComponentsBase()
{
/* destructor code */
}
/* readonly attribute nsIXPCComponents_Interfaces interfaces; */
NS_IMETHODIMP nsXPCComponentsBase::GetInterfaces(nsIXPCComponents_Interfaces * *aInterfaces)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_InterfacesByID interfacesByID; */
NS_IMETHODIMP nsXPCComponentsBase::GetInterfacesByID(nsIXPCComponents_InterfacesByID * *aInterfacesByID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_Results results; */
NS_IMETHODIMP nsXPCComponentsBase::GetResults(nsIXPCComponents_Results * *aResults)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isSuccessCode (in nsresult result); */
NS_IMETHODIMP nsXPCComponentsBase::IsSuccessCode(nsresult result, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIXPCComponents */
#define NS_IXPCCOMPONENTS_IID_STR "aa28aaf6-70ce-4b03-9514-afe43c7dfda8"
#define NS_IXPCCOMPONENTS_IID \
{0xaa28aaf6, 0x70ce, 0x4b03, \
{ 0x95, 0x14, 0xaf, 0xe4, 0x3c, 0x7d, 0xfd, 0xa8 }}
class NS_NO_VTABLE nsIXPCComponents : public nsIXPCComponentsBase {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCCOMPONENTS_IID)
/* readonly attribute nsIXPCComponents_Classes classes; */
NS_IMETHOD GetClasses(nsIXPCComponents_Classes * *aClasses) = 0;
/* readonly attribute nsIXPCComponents_ClassesByID classesByID; */
NS_IMETHOD GetClassesByID(nsIXPCComponents_ClassesByID * *aClassesByID) = 0;
/* readonly attribute nsIStackFrame stack; */
NS_IMETHOD GetStack(nsIStackFrame * *aStack) = 0;
/* readonly attribute nsIComponentManager manager; */
NS_IMETHOD GetManager(nsIComponentManager * *aManager) = 0;
/* readonly attribute nsIXPCComponents_Utils utils; */
NS_IMETHOD GetUtils(nsIXPCComponents_Utils * *aUtils) = 0;
/* readonly attribute nsIXPCComponents_ID ID; */
NS_IMETHOD GetID(nsIXPCComponents_ID * *aID) = 0;
/* readonly attribute nsIXPCComponents_Exception Exception; */
NS_IMETHOD GetException(nsIXPCComponents_Exception * *aException) = 0;
/* readonly attribute nsIXPCComponents_Constructor Constructor; */
NS_IMETHOD GetConstructor(nsIXPCComponents_Constructor * *aConstructor) = 0;
/* [implicit_jscontext] readonly attribute jsval lastResult; */
NS_IMETHOD GetLastResult(JSContext* cx, JS::MutableHandleValue aLastResult) = 0;
/* [implicit_jscontext] attribute jsval returnCode; */
NS_IMETHOD GetReturnCode(JSContext* cx, JS::MutableHandleValue aReturnCode) = 0;
NS_IMETHOD SetReturnCode(JSContext* cx, JS::HandleValue aReturnCode) = 0;
/* [deprecated,implicit_jscontext] void reportError (in jsval error); */
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCComponents, NS_IXPCCOMPONENTS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCCOMPONENTS \
NS_IMETHOD GetClasses(nsIXPCComponents_Classes * *aClasses) override; \
NS_IMETHOD GetClassesByID(nsIXPCComponents_ClassesByID * *aClassesByID) override; \
NS_IMETHOD GetStack(nsIStackFrame * *aStack) override; \
NS_IMETHOD GetManager(nsIComponentManager * *aManager) override; \
NS_IMETHOD GetUtils(nsIXPCComponents_Utils * *aUtils) override; \
NS_IMETHOD GetID(nsIXPCComponents_ID * *aID) override; \
NS_IMETHOD GetException(nsIXPCComponents_Exception * *aException) override; \
NS_IMETHOD GetConstructor(nsIXPCComponents_Constructor * *aConstructor) override; \
NS_IMETHOD GetLastResult(JSContext* cx, JS::MutableHandleValue aLastResult) override; \
NS_IMETHOD GetReturnCode(JSContext* cx, JS::MutableHandleValue aReturnCode) override; \
NS_IMETHOD SetReturnCode(JSContext* cx, JS::HandleValue aReturnCode) override; \
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCCOMPONENTS(_to) \
NS_IMETHOD GetClasses(nsIXPCComponents_Classes * *aClasses) override { return _to GetClasses(aClasses); } \
NS_IMETHOD GetClassesByID(nsIXPCComponents_ClassesByID * *aClassesByID) override { return _to GetClassesByID(aClassesByID); } \
NS_IMETHOD GetStack(nsIStackFrame * *aStack) override { return _to GetStack(aStack); } \
NS_IMETHOD GetManager(nsIComponentManager * *aManager) override { return _to GetManager(aManager); } \
NS_IMETHOD GetUtils(nsIXPCComponents_Utils * *aUtils) override { return _to GetUtils(aUtils); } \
NS_IMETHOD GetID(nsIXPCComponents_ID * *aID) override { return _to GetID(aID); } \
NS_IMETHOD GetException(nsIXPCComponents_Exception * *aException) override { return _to GetException(aException); } \
NS_IMETHOD GetConstructor(nsIXPCComponents_Constructor * *aConstructor) override { return _to GetConstructor(aConstructor); } \
NS_IMETHOD GetLastResult(JSContext* cx, JS::MutableHandleValue aLastResult) override { return _to GetLastResult(cx, aLastResult); } \
NS_IMETHOD GetReturnCode(JSContext* cx, JS::MutableHandleValue aReturnCode) override { return _to GetReturnCode(cx, aReturnCode); } \
NS_IMETHOD SetReturnCode(JSContext* cx, JS::HandleValue aReturnCode) override { return _to SetReturnCode(cx, aReturnCode); } \
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) override { return _to ReportError(error, cx); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCCOMPONENTS(_to) \
NS_IMETHOD GetClasses(nsIXPCComponents_Classes * *aClasses) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClasses(aClasses); } \
NS_IMETHOD GetClassesByID(nsIXPCComponents_ClassesByID * *aClassesByID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassesByID(aClassesByID); } \
NS_IMETHOD GetStack(nsIStackFrame * *aStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStack(aStack); } \
NS_IMETHOD GetManager(nsIComponentManager * *aManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManager(aManager); } \
NS_IMETHOD GetUtils(nsIXPCComponents_Utils * *aUtils) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUtils(aUtils); } \
NS_IMETHOD GetID(nsIXPCComponents_ID * *aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetID(aID); } \
NS_IMETHOD GetException(nsIXPCComponents_Exception * *aException) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetException(aException); } \
NS_IMETHOD GetConstructor(nsIXPCComponents_Constructor * *aConstructor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConstructor(aConstructor); } \
NS_IMETHOD GetLastResult(JSContext* cx, JS::MutableHandleValue aLastResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastResult(cx, aLastResult); } \
NS_IMETHOD GetReturnCode(JSContext* cx, JS::MutableHandleValue aReturnCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReturnCode(cx, aReturnCode); } \
NS_IMETHOD SetReturnCode(JSContext* cx, JS::HandleValue aReturnCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReturnCode(cx, aReturnCode); } \
NS_IMETHOD ReportError(JS::HandleValue error, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportError(error, cx); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsXPCComponents : public nsIXPCComponents
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCCOMPONENTS
nsXPCComponents();
private:
~nsXPCComponents();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsXPCComponents, nsIXPCComponents)
nsXPCComponents::nsXPCComponents()
{
/* member initializers and constructor code */
}
nsXPCComponents::~nsXPCComponents()
{
/* destructor code */
}
/* readonly attribute nsIXPCComponents_Classes classes; */
NS_IMETHODIMP nsXPCComponents::GetClasses(nsIXPCComponents_Classes * *aClasses)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_ClassesByID classesByID; */
NS_IMETHODIMP nsXPCComponents::GetClassesByID(nsIXPCComponents_ClassesByID * *aClassesByID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIStackFrame stack; */
NS_IMETHODIMP nsXPCComponents::GetStack(nsIStackFrame * *aStack)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIComponentManager manager; */
NS_IMETHODIMP nsXPCComponents::GetManager(nsIComponentManager * *aManager)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_Utils utils; */
NS_IMETHODIMP nsXPCComponents::GetUtils(nsIXPCComponents_Utils * *aUtils)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_ID ID; */
NS_IMETHODIMP nsXPCComponents::GetID(nsIXPCComponents_ID * *aID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_Exception Exception; */
NS_IMETHODIMP nsXPCComponents::GetException(nsIXPCComponents_Exception * *aException)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIXPCComponents_Constructor Constructor; */
NS_IMETHODIMP nsXPCComponents::GetConstructor(nsIXPCComponents_Constructor * *aConstructor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval lastResult; */
NS_IMETHODIMP nsXPCComponents::GetLastResult(JSContext* cx, JS::MutableHandleValue aLastResult)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval returnCode; */
NS_IMETHODIMP nsXPCComponents::GetReturnCode(JSContext* cx, JS::MutableHandleValue aReturnCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXPCComponents::SetReturnCode(JSContext* cx, JS::HandleValue aReturnCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [deprecated,implicit_jscontext] void reportError (in jsval error); */
NS_IMETHODIMP nsXPCComponents::ReportError(JS::HandleValue error, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_xpccomponents_h__ */
|