mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
On Serenity, it's not trivial to extract the peer pid from a socket that is created by SystemServer and then passed to a forked service process. This patch adds an API to let the WebContent process notify the UI directly, which makes the WebContent process show up in the Serenity port's TaskManagerWidget. It seems that we will need to do something of this sort in order to properly gather metrics on macOS as well, due to the way that self mach ports work.
35 lines
512 B
C++
35 lines
512 B
C++
/*
|
|
* Copyright (c) 2022, The SerenityOS developers
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Traits.h>
|
|
|
|
namespace WebView {
|
|
|
|
class CookieJar;
|
|
class Database;
|
|
class History;
|
|
class InspectorClient;
|
|
class OutOfProcessWebView;
|
|
class ProcessManager;
|
|
class ViewImplementation;
|
|
class WebContentClient;
|
|
|
|
struct Attribute;
|
|
struct CookieStorageKey;
|
|
struct ProcessHandle;
|
|
struct SearchEngine;
|
|
struct SocketPair;
|
|
|
|
}
|
|
|
|
namespace AK {
|
|
|
|
template<>
|
|
struct Traits<WebView::CookieStorageKey>;
|
|
|
|
}
|