Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL FirstInitializationAttemptsImpl.h  Interaktion und
Portierbarkeitunbekannt

 
/* 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 DOM_QUOTA_FIRSTINITIALIZATIONATTEMPTSIMPL_H_
#define DOM_QUOTA_FIRSTINITIALIZATIONATTEMPTSIMPL_H_

#include "FirstInitializationAttempts.h"
#include "mozilla/Assertions.h"
#include "mozilla/TelemetryHistogramEnums.h"
#include "mozilla/glean/DomQuotaMetrics.h"
#include "nsError.h"

namespace mozilla::dom::quota {

template <typename Initialization, typename StringGenerator>
void FirstInitializationAttempts<Initialization, StringGenerator>::
    RecordFirstInitializationAttempt(const Initialization aInitialization,
                                     const nsresult aRv) {
  MOZ_ASSERT(!FirstInitializationAttemptRecorded(aInitialization));

  mFirstInitializationAttempts |= aInitialization;

  if constexpr (!std::is_same_v<StringGenerator, Nothing>) {
    glean::dom_quota::first_initialization_attempt
        .Get(StringGenerator::GetString(aInitialization),
             NS_SUCCEEDED(aRv) ? "true"_ns : "false"_ns)
        .Add();
  }
}

}  // namespace mozilla::dom::quota

#endif  // DOM_QUOTA_FIRSTINITIALIZATIONATTEMPTSIMPL_H_

Messung
CHZG
1001009899

[Verzeichnis aufwärts0.81unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-11-24]

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,189,127
#Domains=945,868