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;
|
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
|
|
|
|
2018-07-30 16:24:50 +03:00
|
|
|
async PaintWhileInterruptingJS(TabId tabId, bool forceRepaint, 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
|