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

Quelle  PageLoadEventUtils.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_dom_page_load_event_utils_h_
#define mozilla_dom_page_load_event_utils_h_

#include "ipc/IPCMessageUtils.h"
#include "mozilla/PageloadEvent.h"

namespace IPC {

// Helper functions for serializing the parts of PageLoadExtra that come from
// the content process before we send it over to the parent process.
template <>
struct ParamTraits<mozilla::performance::pageload_event::PageloadEventData> {
  typedef mozilla::performance::pageload_event::PageloadEventData paramType;

  static void Write(MessageWriter* aWriter, const paramType& aParam) {
#define WRITE_METRIC_PARAM(name, type) WriteParam(aWriter, aParam.name);
    FOR_EACH_PAGELOAD_METRIC(WRITE_METRIC_PARAM)
#undef WRITE_METRIC_PARAM
    WriteParam(aWriter, aParam.mDomain);
  }

  static bool Read(MessageReader* aReader, paramType* aResult) {
    bool ok = true;
#define READ_METRIC_PARAM(name, type) \
  ok = ok && ReadParam(aReader, &aResult->name);
    FOR_EACH_PAGELOAD_METRIC(READ_METRIC_PARAM)
#undef READ_METRIC_PARAM
    ok = ok && ReadParam(aReader, &aResult->mDomain);
    return ok;
  }
};

}  // namespace IPC

#endif  // mozilla_dom_page_load_event_utils_h_

Messung V0.5 in Prozent
C=88 H=100 G=94

¤ Dauer der Verarbeitung: 0.17 Sekunden  (vorverarbeitet am  2026-08-24) ¤

*© 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.