2015-01-17 05:34:47 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
|
|
|
/* 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/. */
|
|
|
|
|
2016-03-03 10:24:36 +03:00
|
|
|
using base::ProcessId from "base/process.h";
|
2015-01-17 05:34:47 +03:00
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
struct SlowScriptData
|
|
|
|
{
|
|
|
|
TabId tabId;
|
|
|
|
nsCString filename;
|
2017-08-18 06:17:51 +03:00
|
|
|
nsString addonId;
|
2015-01-17 05:34:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PluginHangData
|
|
|
|
{
|
|
|
|
uint32_t pluginId;
|
2016-03-03 10:24:36 +03:00
|
|
|
ProcessId contentProcessId;
|
2015-01-17 05:34:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
union HangData
|
|
|
|
{
|
|
|
|
SlowScriptData;
|
|
|
|
PluginHangData;
|
|
|
|
};
|
|
|
|
|
|
|
|
protocol PProcessHangMonitor
|
|
|
|
{
|
|
|
|
parent:
|
|
|
|
async HangEvidence(HangData data);
|
2016-04-02 02:54:25 +03:00
|
|
|
async ClearHang();
|
2015-01-17 05:34:47 +03:00
|
|
|
|
|
|
|
child:
|
2017-04-17 00:01:16 +03:00
|
|
|
async TerminateScript(bool aTerminateGlobal);
|
2015-01-17 05:34:47 +03:00
|
|
|
|
|
|
|
async BeginStartingDebugger();
|
|
|
|
async EndStartingDebugger();
|
2016-07-23 02:36:45 +03:00
|
|
|
|
|
|
|
async ForcePaint(TabId tabId, uint64_t aLayerObserverEpoch);
|
2015-01-17 05:34:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|