mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 21:52:53 +00:00
33 lines
551 B
C++
33 lines
551 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/JsonValue.h>
|
|
#include <AK/Time.h>
|
|
#include <AK/Vector.h>
|
|
#include <LibIPC/Forward.h>
|
|
#include <LibJS/Console.h>
|
|
|
|
namespace WebView {
|
|
|
|
struct ConsoleOutput {
|
|
JS::Console::LogLevel level;
|
|
UnixDateTime timestamp;
|
|
Vector<JsonValue> arguments;
|
|
};
|
|
|
|
}
|
|
|
|
namespace IPC {
|
|
|
|
template<>
|
|
ErrorOr<void> encode(Encoder&, WebView::ConsoleOutput const&);
|
|
|
|
template<>
|
|
ErrorOr<WebView::ConsoleOutput> decode(Decoder&);
|
|
|
|
}
|