icecat: add release icecat-140.9.0-1gnu1 for ecne
This commit is contained in:
parent
8eb1f1732f
commit
a5f93cb214
1197 changed files with 30593 additions and 15344 deletions
|
|
@ -6,10 +6,12 @@
|
|||
#ifndef Telemetry_Comms_h__
|
||||
#define Telemetry_Comms_h__
|
||||
|
||||
#include <type_traits>
|
||||
#include "ipc/IPCMessageUtils.h"
|
||||
#include "ipc/IPCMessageUtilsSpecializations.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/TelemetryProcessEnums.h"
|
||||
#include "mozilla/TelemetryHistogramEnums.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/Variant.h"
|
||||
#include "mozilla/ParamTraits_TiedFields.h"
|
||||
|
|
@ -18,9 +20,6 @@
|
|||
namespace mozilla {
|
||||
namespace Telemetry {
|
||||
|
||||
// Histogram accumulation types.
|
||||
enum HistogramID : uint32_t;
|
||||
|
||||
struct HistogramAccumulation {
|
||||
mozilla::Telemetry::HistogramID mId;
|
||||
uint32_t mSample;
|
||||
|
|
@ -100,18 +99,37 @@ struct DiscardedData {
|
|||
|
||||
namespace IPC {
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::Telemetry::HistogramID>
|
||||
: public ContiguousEnumSerializer<
|
||||
mozilla::Telemetry::HistogramID,
|
||||
mozilla::Telemetry::HistogramID::A11Y_CONSUMERS,
|
||||
mozilla::Telemetry::HistogramID::HistogramCount> {};
|
||||
|
||||
static_assert(
|
||||
static_cast<std::underlying_type_t<mozilla::Telemetry::HistogramID>>(
|
||||
mozilla::Telemetry::HistogramID::A11Y_CONSUMERS) == 0,
|
||||
"Update ParamTraits<HistogramID> implementation");
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::Telemetry::ScalarActionType>
|
||||
: public ContiguousEnumSerializerInclusive<
|
||||
mozilla::Telemetry::ScalarActionType,
|
||||
mozilla::Telemetry::ScalarActionType::eSet,
|
||||
mozilla::Telemetry::ScalarActionType::eSetMaximum> {};
|
||||
|
||||
template <>
|
||||
struct ParamTraits<mozilla::Telemetry::HistogramAccumulation> {
|
||||
typedef mozilla::Telemetry::HistogramAccumulation paramType;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
aWriter->WriteUInt32(aParam.mId);
|
||||
WriteParam(aWriter, aParam.mId);
|
||||
WriteParam(aWriter, aParam.mSample);
|
||||
}
|
||||
|
||||
static bool Read(MessageReader* aReader, paramType* aResult) {
|
||||
if (!aReader->ReadUInt32(reinterpret_cast<uint32_t*>(&(aResult->mId))) ||
|
||||
!ReadParam(aReader, &(aResult->mSample))) {
|
||||
if (!ReadParam(aReader, &aResult->mId) ||
|
||||
!ReadParam(aReader, &aResult->mSample)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -124,15 +142,15 @@ struct ParamTraits<mozilla::Telemetry::KeyedHistogramAccumulation> {
|
|||
typedef mozilla::Telemetry::KeyedHistogramAccumulation paramType;
|
||||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
aWriter->WriteUInt32(aParam.mId);
|
||||
WriteParam(aWriter, aParam.mId);
|
||||
WriteParam(aWriter, aParam.mSample);
|
||||
WriteParam(aWriter, aParam.mKey);
|
||||
}
|
||||
|
||||
static bool Read(MessageReader* aReader, paramType* aResult) {
|
||||
if (!aReader->ReadUInt32(reinterpret_cast<uint32_t*>(&(aResult->mId))) ||
|
||||
!ReadParam(aReader, &(aResult->mSample)) ||
|
||||
!ReadParam(aReader, &(aResult->mKey))) {
|
||||
if (!ReadParam(aReader, &aResult->mId) ||
|
||||
!ReadParam(aReader, &aResult->mSample) ||
|
||||
!ReadParam(aReader, &aResult->mKey)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -149,9 +167,9 @@ struct ParamTraits<mozilla::Telemetry::ScalarAction> {
|
|||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
// Write the message type
|
||||
aWriter->WriteUInt32(aParam.mId);
|
||||
WriteParam(aWriter, aParam.mId);
|
||||
WriteParam(aWriter, aParam.mDynamic);
|
||||
WriteParam(aWriter, static_cast<uint32_t>(aParam.mActionType));
|
||||
WriteParam(aWriter, aParam.mActionType);
|
||||
|
||||
if (aParam.mData.isNothing()) {
|
||||
MOZ_CRASH("There is no data in the ScalarAction.");
|
||||
|
|
@ -181,10 +199,9 @@ struct ParamTraits<mozilla::Telemetry::ScalarAction> {
|
|||
static bool Read(MessageReader* aReader, paramType* aResult) {
|
||||
// Read the scalar ID and the scalar type.
|
||||
uint32_t scalarType = 0;
|
||||
if (!aReader->ReadUInt32(reinterpret_cast<uint32_t*>(&(aResult->mId))) ||
|
||||
!ReadParam(aReader, reinterpret_cast<bool*>(&(aResult->mDynamic))) ||
|
||||
!ReadParam(aReader,
|
||||
reinterpret_cast<uint32_t*>(&(aResult->mActionType))) ||
|
||||
if (!ReadParam(aReader, &aResult->mId) ||
|
||||
!ReadParam(aReader, &aResult->mDynamic) ||
|
||||
!ReadParam(aReader, &aResult->mActionType) ||
|
||||
!ReadParam(aReader, &scalarType)) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -236,9 +253,9 @@ struct ParamTraits<mozilla::Telemetry::KeyedScalarAction> {
|
|||
|
||||
static void Write(MessageWriter* aWriter, const paramType& aParam) {
|
||||
// Write the message type
|
||||
aWriter->WriteUInt32(static_cast<uint32_t>(aParam.mId));
|
||||
WriteParam(aWriter, aParam.mId);
|
||||
WriteParam(aWriter, aParam.mDynamic);
|
||||
WriteParam(aWriter, static_cast<uint32_t>(aParam.mActionType));
|
||||
WriteParam(aWriter, aParam.mActionType);
|
||||
WriteParam(aWriter, aParam.mKey);
|
||||
|
||||
if (aParam.mData.isNothing()) {
|
||||
|
|
@ -270,11 +287,10 @@ struct ParamTraits<mozilla::Telemetry::KeyedScalarAction> {
|
|||
static bool Read(MessageReader* aReader, paramType* aResult) {
|
||||
// Read the scalar ID and the scalar type.
|
||||
uint32_t scalarType = 0;
|
||||
if (!aReader->ReadUInt32(reinterpret_cast<uint32_t*>(&(aResult->mId))) ||
|
||||
!ReadParam(aReader, reinterpret_cast<bool*>(&(aResult->mDynamic))) ||
|
||||
!ReadParam(aReader,
|
||||
reinterpret_cast<uint32_t*>(&(aResult->mActionType))) ||
|
||||
!ReadParam(aReader, &(aResult->mKey)) ||
|
||||
if (!ReadParam(aReader, &aResult->mId) ||
|
||||
!ReadParam(aReader, &aResult->mDynamic) ||
|
||||
!ReadParam(aReader, &aResult->mActionType) ||
|
||||
!ReadParam(aReader, &aResult->mKey) ||
|
||||
!ReadParam(aReader, &scalarType)) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -329,11 +345,11 @@ struct ParamTraits<mozilla::Telemetry::DynamicScalarDefinition> {
|
|||
}
|
||||
|
||||
static bool Read(MessageReader* aReader, paramType* aResult) {
|
||||
if (!ReadParam(aReader, reinterpret_cast<uint32_t*>(&(aResult->type))) ||
|
||||
!ReadParam(aReader, reinterpret_cast<uint32_t*>(&(aResult->dataset))) ||
|
||||
!ReadParam(aReader, reinterpret_cast<bool*>(&(aResult->expired))) ||
|
||||
!ReadParam(aReader, reinterpret_cast<bool*>(&(aResult->keyed))) ||
|
||||
!ReadParam(aReader, &(aResult->name))) {
|
||||
if (!ReadParam(aReader, &aResult->type) ||
|
||||
!ReadParam(aReader, &aResult->dataset) ||
|
||||
!ReadParam(aReader, &aResult->expired) ||
|
||||
!ReadParam(aReader, &aResult->keyed) ||
|
||||
!ReadParam(aReader, &aResult->name)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue