mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Ladybird/Android: Move common service functionality to a base class
Create LadybirdServiceBase to hold the standard "set resource dir" and "init ipc sockets" service functionality that will be common between the WebContent, RequestServer, and WebSocket services. Refactor the handler class slightly to avoid the HandlerLeak lint by making the class a static class inside the companion object and use a WeakReference to the service instead of a strong one.
This commit is contained in:
parent
315ad2d391
commit
da8f450335
Notes:
sideshowbarker
2024-07-16 20:44:03 +09:00
Author: https://github.com/ADKaster
Commit: da8f450335
Pull-request: https://github.com/SerenityOS/serenity/pull/21100
8 changed files with 117 additions and 91 deletions
|
|
@ -1,11 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Error.h>
|
||||
|
||||
ErrorOr<int> web_content_main(int ipc_socket, int fd_passing_socket);
|
||||
Loading…
Add table
Add a link
Reference in a new issue