forked from mirrors/gecko-dev
The module argument in LogError is redundant: the module information can already be determined from the source file path. Indeed, reporting the module separately in the telemetry events seems unnecessary. Instead, the relative path is now reported. This is what the analysis of the telemetry data did reconstruct anyway. As a consequence, it's no longer necessary to define module-specific HandleError functions, and therefore it's also unnecessary to define module-specific TRY macros. These are retained as simple aliases for now, but can be removed in a later patch entirely. This also avoids misuses of a TRY macros in the wrong module, which were happening a few times before, resulting in confusing output or telemetry events. Since Bug 1686191 will add some more TRY macro variants that warn, so simplifying the module-specific aspects will simplify that task. Furthermore, this is in preparation of moving the TRY macro extensions to MFBT. Differential Revision: https://phabricator.services.mozilla.com/D102767
31 lines
1 KiB
C++
31 lines
1 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_dom_indexeddb_IndexedDBCommon_h
|
|
#define mozilla_dom_indexeddb_IndexedDBCommon_h
|
|
|
|
#include "mozilla/dom/quota/QuotaCommon.h"
|
|
|
|
class JSStructuredCloneData;
|
|
class nsIInputStream;
|
|
|
|
// XXX Replace all uses by the QM_* variants and remove these aliases
|
|
#define IDB_TRY QM_TRY
|
|
#define IDB_TRY_UNWRAP QM_TRY_UNWRAP
|
|
#define IDB_TRY_INSPECT QM_TRY_INSPECT
|
|
#define IDB_TRY_RETURN QM_TRY_RETURN
|
|
#define IDB_FAIL QM_FAIL
|
|
|
|
namespace mozilla::dom::indexedDB {
|
|
|
|
static constexpr uint32_t kFileCopyBufferSize = 32768;
|
|
|
|
nsresult SnappyUncompressStructuredCloneData(
|
|
nsIInputStream& aInputStream, JSStructuredCloneData& aStructuredCloneData);
|
|
|
|
} // namespace mozilla::dom::indexedDB
|
|
|
|
#endif // mozilla_dom_indexeddb_IndexedDBCommon_h
|