Bug 1807268 - Fix verifyOpenAllInNewTabsOptionTest UI test r=ohorvath
[gecko.git] / docshell / base / nsDocShellTelemetryUtils.h
blob4e0097caecea75fc7145a3add2a2ecf1e657f67b
1 //* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsDocShellTelemetryUtils_h__
7 #define nsDocShellTelemetryUtils_h__
9 #include "mozilla/Telemetry.h"
11 namespace mozilla {
12 namespace dom {
13 /**
14 * Convert page load errors to telemetry labels
15 * Only select nsresults are converted, otherwise this function
16 * will return "errorOther", view the list of errors at
17 * docshell/base/nsDocShellTelemetryUtils.cpp.
19 Telemetry::LABELS_PAGE_LOAD_ERROR LoadErrorToTelemetryLabel(nsresult aRv);
20 } // namespace dom
21 } // namespace mozilla
22 #endif // nsDocShellTelemetryUtils_h__