Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/resistfingerprinting/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  nsRFPIPCUtils.h

  Sprache: C
 

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

#include "ipc/IPCMessageUtils.h"
#include "ipc/EnumSerializer.h"
#include "nsRFPService.h"

namespace IPC {

// CanvasFingerprinterAlias
template <>
struct ParamTraits<mozilla::CanvasFingerprinterAlias>
    : public ContiguousEnumSerializerInclusive<
          mozilla::CanvasFingerprinterAlias,
          mozilla::CanvasFingerprinterAlias::eNoneIdentified,
          mozilla::CanvasFingerprinterAlias::eLastAlias> {};

// CanvasFingerprintingEvent
template <>
struct ParamTraits<mozilla::CanvasFingerprintingEvent> {
  typedef mozilla::CanvasFingerprintingEvent paramType;

  static void Write(MessageWriter* aWriter, const paramType& aParam) {
    WriteParam(aWriter, aParam.alias);
    WriteParam(aWriter, aParam.knownTextBitmask);
    WriteParam(aWriter, aParam.sourcesBitmask);
  }

  static bool Read(MessageReader* aReader, paramType* aResult) {
    mozilla::CanvasFingerprinterAlias alias;
    uint32_t knownTextBitmask;
    uint64_t sourcesBitmask;

    if (!ReadParam(aReader, &alias) || !ReadParam(aReader, &knownTextBitmask) ||
        !ReadParam(aReader, &sourcesBitmask)) {
      return false;
    }

    *aResult = mozilla::CanvasFingerprintingEvent(alias, knownTextBitmask,
                                                  sourcesBitmask);
    return true;
  }
};

}  // namespace IPC

#endif  // mozilla_resistfingerprinting_nsRFPIPCUtils_h

Messung V0.5 in Prozent
C=93 H=81 G=86

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.