2023-08-20 16:14:31 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-04-15 17:39:48 -06:00
|
|
|
#include <AK/Error.h>
|
|
|
|
|
#include <AK/Vector.h>
|
2024-04-17 18:44:39 -06:00
|
|
|
#include <LibIPC/Forward.h>
|
2024-04-15 17:39:48 -06:00
|
|
|
#include <LibWebView/Forward.h>
|
|
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
#import <System/Cocoa.h>
|
|
|
|
|
|
2024-04-15 17:39:48 -06:00
|
|
|
namespace Ladybird {
|
|
|
|
|
class WebViewBridge;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
@interface Application : NSApplication
|
|
|
|
|
|
2024-04-15 17:39:48 -06:00
|
|
|
- (instancetype)init;
|
|
|
|
|
|
|
|
|
|
- (ErrorOr<void>)launchRequestServer:(Vector<ByteString> const&)certificates;
|
|
|
|
|
- (ErrorOr<NonnullRefPtr<WebView::WebContentClient>>)launchWebContent:(Ladybird::WebViewBridge&)web_view_bridge;
|
2024-04-17 18:44:39 -06:00
|
|
|
- (ErrorOr<IPC::File>)launchWebWorker;
|
2024-04-15 17:39:48 -06:00
|
|
|
|
2023-08-20 16:14:31 -04:00
|
|
|
@end
|