2019-01-11 21:57:23 +03:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
2019-01-11 23:52:39 +03:00
|
|
|
include MemoryReportTypes;
|
2019-01-11 23:55:07 +03:00
|
|
|
include protocol PSocketProcessBridge;
|
2019-01-11 23:58:18 +03:00
|
|
|
include protocol PProfiler;
|
2019-01-11 21:57:23 +03:00
|
|
|
include PrefsTypes;
|
|
|
|
|
2019-01-11 21:48:25 +03:00
|
|
|
using mozilla::dom::NativeThreadId from "mozilla/dom/TabMessageUtils.h";
|
2019-01-11 23:55:07 +03:00
|
|
|
using base::ProcessId from "base/process.h";
|
2019-01-11 21:48:25 +03:00
|
|
|
|
2019-01-11 21:57:23 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
protocol PSocketProcess
|
|
|
|
{
|
2019-01-11 21:48:25 +03:00
|
|
|
parent:
|
|
|
|
async InitCrashReporter(Shmem shmem, NativeThreadId threadId);
|
2019-01-11 23:52:39 +03:00
|
|
|
async AddMemoryReport(MemoryReport aReport);
|
|
|
|
async FinishMemoryReport(uint32_t aGeneration);
|
2019-01-11 21:48:25 +03:00
|
|
|
|
2019-01-11 21:57:23 +03:00
|
|
|
child:
|
|
|
|
async PreferenceUpdate(Pref pref);
|
2019-01-11 23:52:39 +03:00
|
|
|
async RequestMemoryReport(uint32_t generation,
|
|
|
|
bool anonymize,
|
|
|
|
bool minimizeMemoryUsage,
|
|
|
|
MaybeFileDesc DMDFile);
|
2019-01-11 23:54:06 +03:00
|
|
|
async SetOffline(bool offline);
|
2019-01-11 23:55:07 +03:00
|
|
|
async InitSocketProcessBridgeParent(ProcessId processId, Endpoint<PSocketProcessBridgeParent> endpoint);
|
2019-01-11 23:58:18 +03:00
|
|
|
async InitProfiler(Endpoint<PProfilerChild> aEndpoint);
|
2019-01-11 21:57:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|