mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
fd880e95f8
Differential Revision: https://phabricator.services.mozilla.com/D28239 --HG-- extra : moz-landing-system : lando
59 lines
2.3 KiB
Plaintext
59 lines
2.3 KiB
Plaintext
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
include protocol PSocketProcessBridge;
|
|
include protocol PProfiler;
|
|
include protocol PWebrtcProxyChannel;
|
|
|
|
include MemoryReportTypes;
|
|
include PBrowserOrId;
|
|
include PrefsTypes;
|
|
|
|
using mozilla::dom::NativeThreadId from "mozilla/dom/TabMessageUtils.h";
|
|
using mozilla::Telemetry::HistogramAccumulation from "mozilla/TelemetryComms.h";
|
|
using mozilla::Telemetry::KeyedHistogramAccumulation from "mozilla/TelemetryComms.h";
|
|
using mozilla::Telemetry::ScalarAction from "mozilla/TelemetryComms.h";
|
|
using mozilla::Telemetry::KeyedScalarAction from "mozilla/TelemetryComms.h";
|
|
using mozilla::Telemetry::ChildEventData from "mozilla/TelemetryComms.h";
|
|
using mozilla::Telemetry::DiscardedData from "mozilla/TelemetryComms.h";
|
|
using base::ProcessId from "base/process.h";
|
|
|
|
namespace mozilla {
|
|
namespace net {
|
|
|
|
protocol PSocketProcess
|
|
{
|
|
manages PWebrtcProxyChannel;
|
|
|
|
parent:
|
|
async InitCrashReporter(Shmem shmem, NativeThreadId threadId);
|
|
async AddMemoryReport(MemoryReport aReport);
|
|
async FinishMemoryReport(uint32_t aGeneration);
|
|
// Messages for sending telemetry to parent process.
|
|
async AccumulateChildHistograms(HistogramAccumulation[] accumulations);
|
|
async AccumulateChildKeyedHistograms(KeyedHistogramAccumulation[] accumulations);
|
|
async UpdateChildScalars(ScalarAction[] actions);
|
|
async UpdateChildKeyedScalars(KeyedScalarAction[] actions);
|
|
async RecordChildEvents(ChildEventData[] events);
|
|
async RecordDiscardedData(DiscardedData data);
|
|
|
|
async PWebrtcProxyChannel(TabId tabId);
|
|
|
|
child:
|
|
async PreferenceUpdate(Pref pref);
|
|
async RequestMemoryReport(uint32_t generation,
|
|
bool anonymize,
|
|
bool minimizeMemoryUsage,
|
|
FileDescriptor? DMDFile);
|
|
async SetOffline(bool offline);
|
|
async InitSocketProcessBridgeParent(ProcessId processId, Endpoint<PSocketProcessBridgeParent> endpoint);
|
|
async InitProfiler(Endpoint<PProfilerChild> aEndpoint);
|
|
// test-only
|
|
async SocketProcessTelemetryPing();
|
|
};
|
|
|
|
} // namespace net
|
|
} // namespace mozilla
|