tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsDocShellTelemetryUtils.h (793B)


      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/. */
      5 
      6 #ifndef nsDocShellTelemetryUtils_h__
      7 #define nsDocShellTelemetryUtils_h__
      8 
      9 #include "nsLiteralString.h"
     10 
     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.
     18 */
     19 nsLiteralCString LoadErrorToTelemetryLabel(nsresult aRv);
     20 }  // namespace dom
     21 }  // namespace mozilla
     22 #endif  // nsDocShellTelemetryUtils_h__