/usr/include/thunderbird/nsITelemetry.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 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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITelemetry.idl
*/
#ifndef __gen_nsITelemetry_h__
#define __gen_nsITelemetry_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIFile_h__
#include "nsIFile.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
/* starting interface: nsIFetchTelemetryDataCallback */
#define NS_IFETCHTELEMETRYDATACALLBACK_IID_STR "3d3b9075-5549-4244-9c08-b64fefa1dd60"
#define NS_IFETCHTELEMETRYDATACALLBACK_IID \
{0x3d3b9075, 0x5549, 0x4244, \
{ 0x9c, 0x08, 0xb6, 0x4f, 0xef, 0xa1, 0xdd, 0x60 }}
class NS_NO_VTABLE nsIFetchTelemetryDataCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFETCHTELEMETRYDATACALLBACK_IID)
/* void complete (); */
NS_IMETHOD Complete(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFetchTelemetryDataCallback, NS_IFETCHTELEMETRYDATACALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFETCHTELEMETRYDATACALLBACK \
NS_IMETHOD Complete(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_NSIFETCHTELEMETRYDATACALLBACK \
NS_METHOD Complete(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFETCHTELEMETRYDATACALLBACK(_to) \
NS_IMETHOD Complete(void) override { return _to Complete(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFETCHTELEMETRYDATACALLBACK(_to) \
NS_IMETHOD Complete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsFetchTelemetryDataCallback : public nsIFetchTelemetryDataCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIFETCHTELEMETRYDATACALLBACK
nsFetchTelemetryDataCallback();
private:
~nsFetchTelemetryDataCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsFetchTelemetryDataCallback, nsIFetchTelemetryDataCallback)
nsFetchTelemetryDataCallback::nsFetchTelemetryDataCallback()
{
/* member initializers and constructor code */
}
nsFetchTelemetryDataCallback::~nsFetchTelemetryDataCallback()
{
/* destructor code */
}
/* void complete (); */
NS_IMETHODIMP nsFetchTelemetryDataCallback::Complete()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsITelemetry */
#define NS_ITELEMETRY_IID_STR "273d2dd0-6c63-475a-b864-cb65160a1909"
#define NS_ITELEMETRY_IID \
{0x273d2dd0, 0x6c63, 0x475a, \
{ 0xb8, 0x64, 0xcb, 0x65, 0x16, 0x0a, 0x19, 0x09 }}
class NS_NO_VTABLE nsITelemetry : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITELEMETRY_IID)
enum {
HISTOGRAM_EXPONENTIAL = 0U,
HISTOGRAM_LINEAR = 1U,
HISTOGRAM_BOOLEAN = 2U,
HISTOGRAM_FLAG = 3U,
HISTOGRAM_COUNT = 4U,
HISTOGRAM_CATEGORICAL = 5U,
SCALAR_COUNT = 0U,
SCALAR_STRING = 1U,
SCALAR_BOOLEAN = 2U,
DATASET_RELEASE_CHANNEL_OPTOUT = 0U,
DATASET_RELEASE_CHANNEL_OPTIN = 1U
};
/* [implicit_jscontext] readonly attribute jsval histogramSnapshots; */
NS_IMETHOD GetHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aHistogramSnapshots) = 0;
/* [implicit_jscontext] jsval snapshotSubsessionHistograms ([optional] in boolean clear); */
NS_IMETHOD SnapshotSubsessionHistograms(bool clear, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* readonly attribute uint32_t lastShutdownDuration; */
NS_IMETHOD GetLastShutdownDuration(uint32_t *aLastShutdownDuration) = 0;
/* readonly attribute uint32_t failedProfileLockCount; */
NS_IMETHOD GetFailedProfileLockCount(uint32_t *aFailedProfileLockCount) = 0;
/* [implicit_jscontext] readonly attribute jsval slowSQL; */
NS_IMETHOD GetSlowSQL(JSContext* cx, JS::MutableHandleValue aSlowSQL) = 0;
/* [implicit_jscontext] readonly attribute jsval debugSlowSQL; */
NS_IMETHOD GetDebugSlowSQL(JSContext* cx, JS::MutableHandleValue aDebugSlowSQL) = 0;
/* [implicit_jscontext] readonly attribute jsval webrtcStats; */
NS_IMETHOD GetWebrtcStats(JSContext* cx, JS::MutableHandleValue aWebrtcStats) = 0;
/* readonly attribute uint32_t maximalNumberOfConcurrentThreads; */
NS_IMETHOD GetMaximalNumberOfConcurrentThreads(uint32_t *aMaximalNumberOfConcurrentThreads) = 0;
/* [implicit_jscontext] readonly attribute jsval chromeHangs; */
NS_IMETHOD GetChromeHangs(JSContext* cx, JS::MutableHandleValue aChromeHangs) = 0;
/* [implicit_jscontext] readonly attribute jsval threadHangStats; */
NS_IMETHOD GetThreadHangStats(JSContext* cx, JS::MutableHandleValue aThreadHangStats) = 0;
/* [implicit_jscontext] readonly attribute jsval lateWrites; */
NS_IMETHOD GetLateWrites(JSContext* cx, JS::MutableHandleValue aLateWrites) = 0;
/* void registeredHistograms (in uint32_t dataset, out uint32_t count, [array, size_is (count), retval] out string histograms); */
NS_IMETHOD RegisteredHistograms(uint32_t dataset, uint32_t *count, char * **histograms) = 0;
/* [implicit_jscontext] jsval getHistogramById (in ACString id); */
NS_IMETHOD GetHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] readonly attribute jsval keyedHistogramSnapshots; */
NS_IMETHOD GetKeyedHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aKeyedHistogramSnapshots) = 0;
/* void registeredKeyedHistograms (in uint32_t dataset, out uint32_t count, [array, size_is (count), retval] out string histograms); */
NS_IMETHOD RegisteredKeyedHistograms(uint32_t dataset, uint32_t *count, char * **histograms) = 0;
/* [implicit_jscontext] jsval getKeyedHistogramById (in ACString id); */
NS_IMETHOD GetKeyedHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* attribute boolean canRecordBase; */
NS_IMETHOD GetCanRecordBase(bool *aCanRecordBase) = 0;
NS_IMETHOD SetCanRecordBase(bool aCanRecordBase) = 0;
/* attribute boolean canRecordExtended; */
NS_IMETHOD GetCanRecordExtended(bool *aCanRecordExtended) = 0;
NS_IMETHOD SetCanRecordExtended(bool aCanRecordExtended) = 0;
/* readonly attribute boolean isOfficialTelemetry; */
NS_IMETHOD GetIsOfficialTelemetry(bool *aIsOfficialTelemetry) = 0;
/* [optional_argc] void registerAddonHistogram (in ACString addon_id, in ACString name, in unsigned long histogram_type, [optional] in uint32_t min, [optional] in uint32_t max, [optional] in uint32_t bucket_count); */
NS_IMETHOD RegisterAddonHistogram(const nsACString & addon_id, const nsACString & name, uint32_t histogram_type, uint32_t min, uint32_t max, uint32_t bucket_count, uint8_t _argc) = 0;
/* [implicit_jscontext] jsval getAddonHistogram (in ACString addon_id, in ACString name); */
NS_IMETHOD GetAddonHistogram(const nsACString & addon_id, const nsACString & name, JSContext* cx, JS::MutableHandleValue _retval) = 0;
/* void unregisterAddonHistograms (in ACString addon_id); */
NS_IMETHOD UnregisterAddonHistograms(const nsACString & addon_id) = 0;
/* void setHistogramRecordingEnabled (in ACString id, in boolean enabled); */
NS_IMETHOD SetHistogramRecordingEnabled(const nsACString & id, bool enabled) = 0;
/* [implicit_jscontext] readonly attribute jsval addonHistogramSnapshots; */
NS_IMETHOD GetAddonHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aAddonHistogramSnapshots) = 0;
/* void asyncFetchTelemetryData (in nsIFetchTelemetryDataCallback aCallback); */
NS_IMETHOD AsyncFetchTelemetryData(nsIFetchTelemetryDataCallback *aCallback) = 0;
/* [implicit_jscontext] readonly attribute jsval fileIOReports; */
NS_IMETHOD GetFileIOReports(JSContext* cx, JS::MutableHandleValue aFileIOReports) = 0;
/* double msSinceProcessStart (); */
NS_IMETHOD MsSinceProcessStart(double *_retval) = 0;
/* [implicit_jscontext] void scalarAdd (in ACString aName, in jsval aValue); */
NS_IMETHOD ScalarAdd(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) = 0;
/* [implicit_jscontext] void scalarSet (in ACString aName, in jsval aValue); */
NS_IMETHOD ScalarSet(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) = 0;
/* [implicit_jscontext] void scalarSetMaximum (in ACString aName, in jsval aValue); */
NS_IMETHOD ScalarSetMaximum(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) = 0;
/* [implicit_jscontext,optional_argc] jsval snapshotScalars (in uint32_t aDataset, [optional] in boolean aClear); */
NS_IMETHOD SnapshotScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
/* [implicit_jscontext] void keyedScalarAdd (in ACString aName, in AString aKey, in jsval aValue); */
NS_IMETHOD KeyedScalarAdd(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) = 0;
/* [implicit_jscontext] void keyedScalarSet (in ACString aName, in AString aKey, in jsval aValue); */
NS_IMETHOD KeyedScalarSet(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) = 0;
/* [implicit_jscontext] void keyedScalarSetMaximum (in ACString aName, in AString aKey, in jsval aValue); */
NS_IMETHOD KeyedScalarSetMaximum(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) = 0;
/* [implicit_jscontext,optional_argc] jsval snapshotKeyedScalars (in uint32_t aDataset, [optional] in boolean aClear); */
NS_IMETHOD SnapshotKeyedScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
/* void clearScalars (); */
NS_IMETHOD ClearScalars(void) = 0;
/* void flushBatchedChildTelemetry (); */
NS_IMETHOD FlushBatchedChildTelemetry(void) = 0;
/* [implicit_jscontext,optional_argc] void recordEvent (in ACString aCategory, in ACString aMethod, in ACString aObject, [optional] in jsval aValue, [optional] in jsval extra); */
NS_IMETHOD RecordEvent(const nsACString & aCategory, const nsACString & aMethod, const nsACString & aObject, JS::HandleValue aValue, JS::HandleValue extra, JSContext* cx, uint8_t _argc) = 0;
/* [implicit_jscontext,optional_argc] jsval snapshotBuiltinEvents (in uint32_t aDataset, [optional] in boolean aClear); */
NS_IMETHOD SnapshotBuiltinEvents(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
/* void clearEvents (); */
NS_IMETHOD ClearEvents(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITelemetry, NS_ITELEMETRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITELEMETRY \
NS_IMETHOD GetHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aHistogramSnapshots) override; \
NS_IMETHOD SnapshotSubsessionHistograms(bool clear, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetLastShutdownDuration(uint32_t *aLastShutdownDuration) override; \
NS_IMETHOD GetFailedProfileLockCount(uint32_t *aFailedProfileLockCount) override; \
NS_IMETHOD GetSlowSQL(JSContext* cx, JS::MutableHandleValue aSlowSQL) override; \
NS_IMETHOD GetDebugSlowSQL(JSContext* cx, JS::MutableHandleValue aDebugSlowSQL) override; \
NS_IMETHOD GetWebrtcStats(JSContext* cx, JS::MutableHandleValue aWebrtcStats) override; \
NS_IMETHOD GetMaximalNumberOfConcurrentThreads(uint32_t *aMaximalNumberOfConcurrentThreads) override; \
NS_IMETHOD GetChromeHangs(JSContext* cx, JS::MutableHandleValue aChromeHangs) override; \
NS_IMETHOD GetThreadHangStats(JSContext* cx, JS::MutableHandleValue aThreadHangStats) override; \
NS_IMETHOD GetLateWrites(JSContext* cx, JS::MutableHandleValue aLateWrites) override; \
NS_IMETHOD RegisteredHistograms(uint32_t dataset, uint32_t *count, char * **histograms) override; \
NS_IMETHOD GetHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetKeyedHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aKeyedHistogramSnapshots) override; \
NS_IMETHOD RegisteredKeyedHistograms(uint32_t dataset, uint32_t *count, char * **histograms) override; \
NS_IMETHOD GetKeyedHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetCanRecordBase(bool *aCanRecordBase) override; \
NS_IMETHOD SetCanRecordBase(bool aCanRecordBase) override; \
NS_IMETHOD GetCanRecordExtended(bool *aCanRecordExtended) override; \
NS_IMETHOD SetCanRecordExtended(bool aCanRecordExtended) override; \
NS_IMETHOD GetIsOfficialTelemetry(bool *aIsOfficialTelemetry) override; \
NS_IMETHOD RegisterAddonHistogram(const nsACString & addon_id, const nsACString & name, uint32_t histogram_type, uint32_t min, uint32_t max, uint32_t bucket_count, uint8_t _argc) override; \
NS_IMETHOD GetAddonHistogram(const nsACString & addon_id, const nsACString & name, JSContext* cx, JS::MutableHandleValue _retval) override; \
NS_IMETHOD UnregisterAddonHistograms(const nsACString & addon_id) override; \
NS_IMETHOD SetHistogramRecordingEnabled(const nsACString & id, bool enabled) override; \
NS_IMETHOD GetAddonHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aAddonHistogramSnapshots) override; \
NS_IMETHOD AsyncFetchTelemetryData(nsIFetchTelemetryDataCallback *aCallback) override; \
NS_IMETHOD GetFileIOReports(JSContext* cx, JS::MutableHandleValue aFileIOReports) override; \
NS_IMETHOD MsSinceProcessStart(double *_retval) override; \
NS_IMETHOD ScalarAdd(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override; \
NS_IMETHOD ScalarSet(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override; \
NS_IMETHOD ScalarSetMaximum(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override; \
NS_IMETHOD SnapshotScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
NS_IMETHOD KeyedScalarAdd(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override; \
NS_IMETHOD KeyedScalarSet(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override; \
NS_IMETHOD KeyedScalarSetMaximum(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override; \
NS_IMETHOD SnapshotKeyedScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
NS_IMETHOD ClearScalars(void) override; \
NS_IMETHOD FlushBatchedChildTelemetry(void) override; \
NS_IMETHOD RecordEvent(const nsACString & aCategory, const nsACString & aMethod, const nsACString & aObject, JS::HandleValue aValue, JS::HandleValue extra, JSContext* cx, uint8_t _argc) override; \
NS_IMETHOD SnapshotBuiltinEvents(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
NS_IMETHOD ClearEvents(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_NSITELEMETRY \
NS_METHOD GetHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aHistogramSnapshots); \
NS_METHOD SnapshotSubsessionHistograms(bool clear, JSContext* cx, JS::MutableHandleValue _retval); \
NS_METHOD GetLastShutdownDuration(uint32_t *aLastShutdownDuration); \
NS_METHOD GetFailedProfileLockCount(uint32_t *aFailedProfileLockCount); \
NS_METHOD GetSlowSQL(JSContext* cx, JS::MutableHandleValue aSlowSQL); \
NS_METHOD GetDebugSlowSQL(JSContext* cx, JS::MutableHandleValue aDebugSlowSQL); \
NS_METHOD GetWebrtcStats(JSContext* cx, JS::MutableHandleValue aWebrtcStats); \
NS_METHOD GetMaximalNumberOfConcurrentThreads(uint32_t *aMaximalNumberOfConcurrentThreads); \
NS_METHOD GetChromeHangs(JSContext* cx, JS::MutableHandleValue aChromeHangs); \
NS_METHOD GetThreadHangStats(JSContext* cx, JS::MutableHandleValue aThreadHangStats); \
NS_METHOD GetLateWrites(JSContext* cx, JS::MutableHandleValue aLateWrites); \
NS_METHOD RegisteredHistograms(uint32_t dataset, uint32_t *count, char * **histograms); \
NS_METHOD GetHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval); \
NS_METHOD GetKeyedHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aKeyedHistogramSnapshots); \
NS_METHOD RegisteredKeyedHistograms(uint32_t dataset, uint32_t *count, char * **histograms); \
NS_METHOD GetKeyedHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval); \
NS_METHOD GetCanRecordBase(bool *aCanRecordBase); \
NS_METHOD SetCanRecordBase(bool aCanRecordBase); \
NS_METHOD GetCanRecordExtended(bool *aCanRecordExtended); \
NS_METHOD SetCanRecordExtended(bool aCanRecordExtended); \
NS_METHOD GetIsOfficialTelemetry(bool *aIsOfficialTelemetry); \
NS_METHOD RegisterAddonHistogram(const nsACString & addon_id, const nsACString & name, uint32_t histogram_type, uint32_t min, uint32_t max, uint32_t bucket_count, uint8_t _argc); \
NS_METHOD GetAddonHistogram(const nsACString & addon_id, const nsACString & name, JSContext* cx, JS::MutableHandleValue _retval); \
NS_METHOD UnregisterAddonHistograms(const nsACString & addon_id); \
NS_METHOD SetHistogramRecordingEnabled(const nsACString & id, bool enabled); \
NS_METHOD GetAddonHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aAddonHistogramSnapshots); \
NS_METHOD AsyncFetchTelemetryData(nsIFetchTelemetryDataCallback *aCallback); \
NS_METHOD GetFileIOReports(JSContext* cx, JS::MutableHandleValue aFileIOReports); \
NS_METHOD MsSinceProcessStart(double *_retval); \
NS_METHOD ScalarAdd(const nsACString & aName, JS::HandleValue aValue, JSContext* cx); \
NS_METHOD ScalarSet(const nsACString & aName, JS::HandleValue aValue, JSContext* cx); \
NS_METHOD ScalarSetMaximum(const nsACString & aName, JS::HandleValue aValue, JSContext* cx); \
NS_METHOD SnapshotScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval); \
NS_METHOD KeyedScalarAdd(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx); \
NS_METHOD KeyedScalarSet(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx); \
NS_METHOD KeyedScalarSetMaximum(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx); \
NS_METHOD SnapshotKeyedScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval); \
NS_METHOD ClearScalars(void); \
NS_METHOD FlushBatchedChildTelemetry(void); \
NS_METHOD RecordEvent(const nsACString & aCategory, const nsACString & aMethod, const nsACString & aObject, JS::HandleValue aValue, JS::HandleValue extra, JSContext* cx, uint8_t _argc); \
NS_METHOD SnapshotBuiltinEvents(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval); \
NS_METHOD ClearEvents(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITELEMETRY(_to) \
NS_IMETHOD GetHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aHistogramSnapshots) override { return _to GetHistogramSnapshots(cx, aHistogramSnapshots); } \
NS_IMETHOD SnapshotSubsessionHistograms(bool clear, JSContext* cx, JS::MutableHandleValue _retval) override { return _to SnapshotSubsessionHistograms(clear, cx, _retval); } \
NS_IMETHOD GetLastShutdownDuration(uint32_t *aLastShutdownDuration) override { return _to GetLastShutdownDuration(aLastShutdownDuration); } \
NS_IMETHOD GetFailedProfileLockCount(uint32_t *aFailedProfileLockCount) override { return _to GetFailedProfileLockCount(aFailedProfileLockCount); } \
NS_IMETHOD GetSlowSQL(JSContext* cx, JS::MutableHandleValue aSlowSQL) override { return _to GetSlowSQL(cx, aSlowSQL); } \
NS_IMETHOD GetDebugSlowSQL(JSContext* cx, JS::MutableHandleValue aDebugSlowSQL) override { return _to GetDebugSlowSQL(cx, aDebugSlowSQL); } \
NS_IMETHOD GetWebrtcStats(JSContext* cx, JS::MutableHandleValue aWebrtcStats) override { return _to GetWebrtcStats(cx, aWebrtcStats); } \
NS_IMETHOD GetMaximalNumberOfConcurrentThreads(uint32_t *aMaximalNumberOfConcurrentThreads) override { return _to GetMaximalNumberOfConcurrentThreads(aMaximalNumberOfConcurrentThreads); } \
NS_IMETHOD GetChromeHangs(JSContext* cx, JS::MutableHandleValue aChromeHangs) override { return _to GetChromeHangs(cx, aChromeHangs); } \
NS_IMETHOD GetThreadHangStats(JSContext* cx, JS::MutableHandleValue aThreadHangStats) override { return _to GetThreadHangStats(cx, aThreadHangStats); } \
NS_IMETHOD GetLateWrites(JSContext* cx, JS::MutableHandleValue aLateWrites) override { return _to GetLateWrites(cx, aLateWrites); } \
NS_IMETHOD RegisteredHistograms(uint32_t dataset, uint32_t *count, char * **histograms) override { return _to RegisteredHistograms(dataset, count, histograms); } \
NS_IMETHOD GetHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetHistogramById(id, cx, _retval); } \
NS_IMETHOD GetKeyedHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aKeyedHistogramSnapshots) override { return _to GetKeyedHistogramSnapshots(cx, aKeyedHistogramSnapshots); } \
NS_IMETHOD RegisteredKeyedHistograms(uint32_t dataset, uint32_t *count, char * **histograms) override { return _to RegisteredKeyedHistograms(dataset, count, histograms); } \
NS_IMETHOD GetKeyedHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetKeyedHistogramById(id, cx, _retval); } \
NS_IMETHOD GetCanRecordBase(bool *aCanRecordBase) override { return _to GetCanRecordBase(aCanRecordBase); } \
NS_IMETHOD SetCanRecordBase(bool aCanRecordBase) override { return _to SetCanRecordBase(aCanRecordBase); } \
NS_IMETHOD GetCanRecordExtended(bool *aCanRecordExtended) override { return _to GetCanRecordExtended(aCanRecordExtended); } \
NS_IMETHOD SetCanRecordExtended(bool aCanRecordExtended) override { return _to SetCanRecordExtended(aCanRecordExtended); } \
NS_IMETHOD GetIsOfficialTelemetry(bool *aIsOfficialTelemetry) override { return _to GetIsOfficialTelemetry(aIsOfficialTelemetry); } \
NS_IMETHOD RegisterAddonHistogram(const nsACString & addon_id, const nsACString & name, uint32_t histogram_type, uint32_t min, uint32_t max, uint32_t bucket_count, uint8_t _argc) override { return _to RegisterAddonHistogram(addon_id, name, histogram_type, min, max, bucket_count, _argc); } \
NS_IMETHOD GetAddonHistogram(const nsACString & addon_id, const nsACString & name, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetAddonHistogram(addon_id, name, cx, _retval); } \
NS_IMETHOD UnregisterAddonHistograms(const nsACString & addon_id) override { return _to UnregisterAddonHistograms(addon_id); } \
NS_IMETHOD SetHistogramRecordingEnabled(const nsACString & id, bool enabled) override { return _to SetHistogramRecordingEnabled(id, enabled); } \
NS_IMETHOD GetAddonHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aAddonHistogramSnapshots) override { return _to GetAddonHistogramSnapshots(cx, aAddonHistogramSnapshots); } \
NS_IMETHOD AsyncFetchTelemetryData(nsIFetchTelemetryDataCallback *aCallback) override { return _to AsyncFetchTelemetryData(aCallback); } \
NS_IMETHOD GetFileIOReports(JSContext* cx, JS::MutableHandleValue aFileIOReports) override { return _to GetFileIOReports(cx, aFileIOReports); } \
NS_IMETHOD MsSinceProcessStart(double *_retval) override { return _to MsSinceProcessStart(_retval); } \
NS_IMETHOD ScalarAdd(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override { return _to ScalarAdd(aName, aValue, cx); } \
NS_IMETHOD ScalarSet(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override { return _to ScalarSet(aName, aValue, cx); } \
NS_IMETHOD ScalarSetMaximum(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override { return _to ScalarSetMaximum(aName, aValue, cx); } \
NS_IMETHOD SnapshotScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to SnapshotScalars(aDataset, aClear, cx, _argc, _retval); } \
NS_IMETHOD KeyedScalarAdd(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override { return _to KeyedScalarAdd(aName, aKey, aValue, cx); } \
NS_IMETHOD KeyedScalarSet(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override { return _to KeyedScalarSet(aName, aKey, aValue, cx); } \
NS_IMETHOD KeyedScalarSetMaximum(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override { return _to KeyedScalarSetMaximum(aName, aKey, aValue, cx); } \
NS_IMETHOD SnapshotKeyedScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to SnapshotKeyedScalars(aDataset, aClear, cx, _argc, _retval); } \
NS_IMETHOD ClearScalars(void) override { return _to ClearScalars(); } \
NS_IMETHOD FlushBatchedChildTelemetry(void) override { return _to FlushBatchedChildTelemetry(); } \
NS_IMETHOD RecordEvent(const nsACString & aCategory, const nsACString & aMethod, const nsACString & aObject, JS::HandleValue aValue, JS::HandleValue extra, JSContext* cx, uint8_t _argc) override { return _to RecordEvent(aCategory, aMethod, aObject, aValue, extra, cx, _argc); } \
NS_IMETHOD SnapshotBuiltinEvents(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to SnapshotBuiltinEvents(aDataset, aClear, cx, _argc, _retval); } \
NS_IMETHOD ClearEvents(void) override { return _to ClearEvents(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITELEMETRY(_to) \
NS_IMETHOD GetHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aHistogramSnapshots) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistogramSnapshots(cx, aHistogramSnapshots); } \
NS_IMETHOD SnapshotSubsessionHistograms(bool clear, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SnapshotSubsessionHistograms(clear, cx, _retval); } \
NS_IMETHOD GetLastShutdownDuration(uint32_t *aLastShutdownDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastShutdownDuration(aLastShutdownDuration); } \
NS_IMETHOD GetFailedProfileLockCount(uint32_t *aFailedProfileLockCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailedProfileLockCount(aFailedProfileLockCount); } \
NS_IMETHOD GetSlowSQL(JSContext* cx, JS::MutableHandleValue aSlowSQL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSlowSQL(cx, aSlowSQL); } \
NS_IMETHOD GetDebugSlowSQL(JSContext* cx, JS::MutableHandleValue aDebugSlowSQL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDebugSlowSQL(cx, aDebugSlowSQL); } \
NS_IMETHOD GetWebrtcStats(JSContext* cx, JS::MutableHandleValue aWebrtcStats) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWebrtcStats(cx, aWebrtcStats); } \
NS_IMETHOD GetMaximalNumberOfConcurrentThreads(uint32_t *aMaximalNumberOfConcurrentThreads) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaximalNumberOfConcurrentThreads(aMaximalNumberOfConcurrentThreads); } \
NS_IMETHOD GetChromeHangs(JSContext* cx, JS::MutableHandleValue aChromeHangs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromeHangs(cx, aChromeHangs); } \
NS_IMETHOD GetThreadHangStats(JSContext* cx, JS::MutableHandleValue aThreadHangStats) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadHangStats(cx, aThreadHangStats); } \
NS_IMETHOD GetLateWrites(JSContext* cx, JS::MutableHandleValue aLateWrites) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLateWrites(cx, aLateWrites); } \
NS_IMETHOD RegisteredHistograms(uint32_t dataset, uint32_t *count, char * **histograms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisteredHistograms(dataset, count, histograms); } \
NS_IMETHOD GetHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistogramById(id, cx, _retval); } \
NS_IMETHOD GetKeyedHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aKeyedHistogramSnapshots) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyedHistogramSnapshots(cx, aKeyedHistogramSnapshots); } \
NS_IMETHOD RegisteredKeyedHistograms(uint32_t dataset, uint32_t *count, char * **histograms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisteredKeyedHistograms(dataset, count, histograms); } \
NS_IMETHOD GetKeyedHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyedHistogramById(id, cx, _retval); } \
NS_IMETHOD GetCanRecordBase(bool *aCanRecordBase) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanRecordBase(aCanRecordBase); } \
NS_IMETHOD SetCanRecordBase(bool aCanRecordBase) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanRecordBase(aCanRecordBase); } \
NS_IMETHOD GetCanRecordExtended(bool *aCanRecordExtended) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanRecordExtended(aCanRecordExtended); } \
NS_IMETHOD SetCanRecordExtended(bool aCanRecordExtended) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanRecordExtended(aCanRecordExtended); } \
NS_IMETHOD GetIsOfficialTelemetry(bool *aIsOfficialTelemetry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsOfficialTelemetry(aIsOfficialTelemetry); } \
NS_IMETHOD RegisterAddonHistogram(const nsACString & addon_id, const nsACString & name, uint32_t histogram_type, uint32_t min, uint32_t max, uint32_t bucket_count, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterAddonHistogram(addon_id, name, histogram_type, min, max, bucket_count, _argc); } \
NS_IMETHOD GetAddonHistogram(const nsACString & addon_id, const nsACString & name, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonHistogram(addon_id, name, cx, _retval); } \
NS_IMETHOD UnregisterAddonHistograms(const nsACString & addon_id) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterAddonHistograms(addon_id); } \
NS_IMETHOD SetHistogramRecordingEnabled(const nsACString & id, bool enabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHistogramRecordingEnabled(id, enabled); } \
NS_IMETHOD GetAddonHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aAddonHistogramSnapshots) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonHistogramSnapshots(cx, aAddonHistogramSnapshots); } \
NS_IMETHOD AsyncFetchTelemetryData(nsIFetchTelemetryDataCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncFetchTelemetryData(aCallback); } \
NS_IMETHOD GetFileIOReports(JSContext* cx, JS::MutableHandleValue aFileIOReports) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileIOReports(cx, aFileIOReports); } \
NS_IMETHOD MsSinceProcessStart(double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsSinceProcessStart(_retval); } \
NS_IMETHOD ScalarAdd(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScalarAdd(aName, aValue, cx); } \
NS_IMETHOD ScalarSet(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScalarSet(aName, aValue, cx); } \
NS_IMETHOD ScalarSetMaximum(const nsACString & aName, JS::HandleValue aValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ScalarSetMaximum(aName, aValue, cx); } \
NS_IMETHOD SnapshotScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SnapshotScalars(aDataset, aClear, cx, _argc, _retval); } \
NS_IMETHOD KeyedScalarAdd(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->KeyedScalarAdd(aName, aKey, aValue, cx); } \
NS_IMETHOD KeyedScalarSet(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->KeyedScalarSet(aName, aKey, aValue, cx); } \
NS_IMETHOD KeyedScalarSetMaximum(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->KeyedScalarSetMaximum(aName, aKey, aValue, cx); } \
NS_IMETHOD SnapshotKeyedScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SnapshotKeyedScalars(aDataset, aClear, cx, _argc, _retval); } \
NS_IMETHOD ClearScalars(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearScalars(); } \
NS_IMETHOD FlushBatchedChildTelemetry(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushBatchedChildTelemetry(); } \
NS_IMETHOD RecordEvent(const nsACString & aCategory, const nsACString & aMethod, const nsACString & aObject, JS::HandleValue aValue, JS::HandleValue extra, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RecordEvent(aCategory, aMethod, aObject, aValue, extra, cx, _argc); } \
NS_IMETHOD SnapshotBuiltinEvents(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SnapshotBuiltinEvents(aDataset, aClear, cx, _argc, _retval); } \
NS_IMETHOD ClearEvents(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearEvents(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTelemetry : public nsITelemetry
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITELEMETRY
nsTelemetry();
private:
~nsTelemetry();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTelemetry, nsITelemetry)
nsTelemetry::nsTelemetry()
{
/* member initializers and constructor code */
}
nsTelemetry::~nsTelemetry()
{
/* destructor code */
}
/* [implicit_jscontext] readonly attribute jsval histogramSnapshots; */
NS_IMETHODIMP nsTelemetry::GetHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aHistogramSnapshots)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval snapshotSubsessionHistograms ([optional] in boolean clear); */
NS_IMETHODIMP nsTelemetry::SnapshotSubsessionHistograms(bool clear, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t lastShutdownDuration; */
NS_IMETHODIMP nsTelemetry::GetLastShutdownDuration(uint32_t *aLastShutdownDuration)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t failedProfileLockCount; */
NS_IMETHODIMP nsTelemetry::GetFailedProfileLockCount(uint32_t *aFailedProfileLockCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval slowSQL; */
NS_IMETHODIMP nsTelemetry::GetSlowSQL(JSContext* cx, JS::MutableHandleValue aSlowSQL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval debugSlowSQL; */
NS_IMETHODIMP nsTelemetry::GetDebugSlowSQL(JSContext* cx, JS::MutableHandleValue aDebugSlowSQL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval webrtcStats; */
NS_IMETHODIMP nsTelemetry::GetWebrtcStats(JSContext* cx, JS::MutableHandleValue aWebrtcStats)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t maximalNumberOfConcurrentThreads; */
NS_IMETHODIMP nsTelemetry::GetMaximalNumberOfConcurrentThreads(uint32_t *aMaximalNumberOfConcurrentThreads)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval chromeHangs; */
NS_IMETHODIMP nsTelemetry::GetChromeHangs(JSContext* cx, JS::MutableHandleValue aChromeHangs)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval threadHangStats; */
NS_IMETHODIMP nsTelemetry::GetThreadHangStats(JSContext* cx, JS::MutableHandleValue aThreadHangStats)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval lateWrites; */
NS_IMETHODIMP nsTelemetry::GetLateWrites(JSContext* cx, JS::MutableHandleValue aLateWrites)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registeredHistograms (in uint32_t dataset, out uint32_t count, [array, size_is (count), retval] out string histograms); */
NS_IMETHODIMP nsTelemetry::RegisteredHistograms(uint32_t dataset, uint32_t *count, char * **histograms)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getHistogramById (in ACString id); */
NS_IMETHODIMP nsTelemetry::GetHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval keyedHistogramSnapshots; */
NS_IMETHODIMP nsTelemetry::GetKeyedHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aKeyedHistogramSnapshots)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registeredKeyedHistograms (in uint32_t dataset, out uint32_t count, [array, size_is (count), retval] out string histograms); */
NS_IMETHODIMP nsTelemetry::RegisteredKeyedHistograms(uint32_t dataset, uint32_t *count, char * **histograms)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getKeyedHistogramById (in ACString id); */
NS_IMETHODIMP nsTelemetry::GetKeyedHistogramById(const nsACString & id, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean canRecordBase; */
NS_IMETHODIMP nsTelemetry::GetCanRecordBase(bool *aCanRecordBase)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTelemetry::SetCanRecordBase(bool aCanRecordBase)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean canRecordExtended; */
NS_IMETHODIMP nsTelemetry::GetCanRecordExtended(bool *aCanRecordExtended)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTelemetry::SetCanRecordExtended(bool aCanRecordExtended)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean isOfficialTelemetry; */
NS_IMETHODIMP nsTelemetry::GetIsOfficialTelemetry(bool *aIsOfficialTelemetry)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [optional_argc] void registerAddonHistogram (in ACString addon_id, in ACString name, in unsigned long histogram_type, [optional] in uint32_t min, [optional] in uint32_t max, [optional] in uint32_t bucket_count); */
NS_IMETHODIMP nsTelemetry::RegisterAddonHistogram(const nsACString & addon_id, const nsACString & name, uint32_t histogram_type, uint32_t min, uint32_t max, uint32_t bucket_count, uint8_t _argc)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] jsval getAddonHistogram (in ACString addon_id, in ACString name); */
NS_IMETHODIMP nsTelemetry::GetAddonHistogram(const nsACString & addon_id, const nsACString & name, JSContext* cx, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterAddonHistograms (in ACString addon_id); */
NS_IMETHODIMP nsTelemetry::UnregisterAddonHistograms(const nsACString & addon_id)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setHistogramRecordingEnabled (in ACString id, in boolean enabled); */
NS_IMETHODIMP nsTelemetry::SetHistogramRecordingEnabled(const nsACString & id, bool enabled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval addonHistogramSnapshots; */
NS_IMETHODIMP nsTelemetry::GetAddonHistogramSnapshots(JSContext* cx, JS::MutableHandleValue aAddonHistogramSnapshots)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void asyncFetchTelemetryData (in nsIFetchTelemetryDataCallback aCallback); */
NS_IMETHODIMP nsTelemetry::AsyncFetchTelemetryData(nsIFetchTelemetryDataCallback *aCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] readonly attribute jsval fileIOReports; */
NS_IMETHODIMP nsTelemetry::GetFileIOReports(JSContext* cx, JS::MutableHandleValue aFileIOReports)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* double msSinceProcessStart (); */
NS_IMETHODIMP nsTelemetry::MsSinceProcessStart(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void scalarAdd (in ACString aName, in jsval aValue); */
NS_IMETHODIMP nsTelemetry::ScalarAdd(const nsACString & aName, JS::HandleValue aValue, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void scalarSet (in ACString aName, in jsval aValue); */
NS_IMETHODIMP nsTelemetry::ScalarSet(const nsACString & aName, JS::HandleValue aValue, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void scalarSetMaximum (in ACString aName, in jsval aValue); */
NS_IMETHODIMP nsTelemetry::ScalarSetMaximum(const nsACString & aName, JS::HandleValue aValue, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] jsval snapshotScalars (in uint32_t aDataset, [optional] in boolean aClear); */
NS_IMETHODIMP nsTelemetry::SnapshotScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void keyedScalarAdd (in ACString aName, in AString aKey, in jsval aValue); */
NS_IMETHODIMP nsTelemetry::KeyedScalarAdd(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void keyedScalarSet (in ACString aName, in AString aKey, in jsval aValue); */
NS_IMETHODIMP nsTelemetry::KeyedScalarSet(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void keyedScalarSetMaximum (in ACString aName, in AString aKey, in jsval aValue); */
NS_IMETHODIMP nsTelemetry::KeyedScalarSetMaximum(const nsACString & aName, const nsAString & aKey, JS::HandleValue aValue, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] jsval snapshotKeyedScalars (in uint32_t aDataset, [optional] in boolean aClear); */
NS_IMETHODIMP nsTelemetry::SnapshotKeyedScalars(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearScalars (); */
NS_IMETHODIMP nsTelemetry::ClearScalars()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void flushBatchedChildTelemetry (); */
NS_IMETHODIMP nsTelemetry::FlushBatchedChildTelemetry()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] void recordEvent (in ACString aCategory, in ACString aMethod, in ACString aObject, [optional] in jsval aValue, [optional] in jsval extra); */
NS_IMETHODIMP nsTelemetry::RecordEvent(const nsACString & aCategory, const nsACString & aMethod, const nsACString & aObject, JS::HandleValue aValue, JS::HandleValue extra, JSContext* cx, uint8_t _argc)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,optional_argc] jsval snapshotBuiltinEvents (in uint32_t aDataset, [optional] in boolean aClear); */
NS_IMETHODIMP nsTelemetry::SnapshotBuiltinEvents(uint32_t aDataset, bool aClear, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearEvents (); */
NS_IMETHODIMP nsTelemetry::ClearEvents()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsITelemetry_h__ */
|