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/. */
|
|
|
|
|
2019-05-01 02:31:36 +03:00
|
|
|
// ParamTraits stuff for nsIRemoteTab::NavigationType
|
|
|
|
include "mozilla/dom/TabMessageUtils.h";
|
|
|
|
using nsIRemoteTab::NavigationType from "nsIRemoteTab.h";
|
|
|
|
|
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";
|
2018-07-30 16:24:50 +03:00
|
|
|
using mozilla::layers::LayersObserverEpoch from "mozilla/layers/LayersTypes.h";
|
2015-01-17 05:34:47 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
struct SlowScriptData
|
|
|
|
{
|
|
|
|
TabId tabId;
|
|
|
|
nsCString filename;
|
2017-08-18 06:17:51 +03:00
|
|
|
nsString addonId;
|
2020-07-24 03:01:57 +03:00
|
|
|
double duration;
|
2015-01-17 05:34:47 +03:00
|
|
|
};
|
|
|
|
|
2022-02-09 20:29:47 +03:00
|
|
|
[ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
|
2015-01-17 05:34:47 +03:00
|
|
|
protocol PProcessHangMonitor
|
|
|
|
{
|
|
|
|
parent:
|
2021-05-01 04:12:46 +03:00
|
|
|
async HangEvidence(SlowScriptData data);
|
2016-04-02 02:54:25 +03:00
|
|
|
async ClearHang();
|
2015-01-17 05:34:47 +03:00
|
|
|
|
|
|
|
child:
|
2021-04-05 19:00:09 +03:00
|
|
|
async TerminateScript();
|
2015-01-17 05:34:47 +03:00
|
|
|
|
|
|
|
async BeginStartingDebugger();
|
|
|
|
async EndStartingDebugger();
|
2016-07-23 02:36:45 +03:00
|
|
|
|
2019-09-27 01:11:17 +03:00
|
|
|
async PaintWhileInterruptingJS(TabId tabId, LayersObserverEpoch aEpoch);
|
2019-05-01 02:56:17 +03:00
|
|
|
|
2019-05-01 02:31:36 +03:00
|
|
|
async CancelContentJSExecutionIfRunning(
|
|
|
|
TabId tabId, NavigationType aNavigationType,
|
2019-05-01 02:31:46 +03:00
|
|
|
int32_t aNavigationIndex, nsCString? aNavigationURI, int32_t aEpoch);
|
2015-01-17 05:34:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|