crash_report_private.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This file was generated by:
  5. // tools/json_schema_compiler/compiler.py.
  6. // NOTE: The format of types has changed. 'FooType' is now
  7. // 'chrome.crashReportPrivate.FooType'.
  8. // Please run the closure compiler before committing changes.
  9. // See
  10. // https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
  11. /** @fileoverview Externs generated from namespace: crashReportPrivate */
  12. /** @const */
  13. chrome.crashReportPrivate = {};
  14. /**
  15. * @typedef {{
  16. * message: string,
  17. * url: string,
  18. * product: (string|undefined),
  19. * version: (string|undefined),
  20. * lineNumber: (number|undefined),
  21. * columnNumber: (number|undefined),
  22. * debugId: (string|undefined),
  23. * stackTrace: (string|undefined)
  24. * }}
  25. */
  26. chrome.crashReportPrivate.ErrorInfo;
  27. /**
  28. * Report and upload an error to Crash.
  29. * @param {!chrome.crashReportPrivate.ErrorInfo} info Information about the
  30. * error.
  31. * @param {function(): void} callback Called when the error has been uploaded.
  32. */
  33. chrome.crashReportPrivate.reportError = function(info, callback) {};