mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-02 14:20:58 +00:00
23 lines
375 B
C
23 lines
375 B
C
|
|
/*
|
||
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <AK/Optional.h>
|
||
|
|
#include <AK/StringView.h>
|
||
|
|
#include <AK/URL.h>
|
||
|
|
|
||
|
|
namespace WebView {
|
||
|
|
|
||
|
|
enum class AppendTLD {
|
||
|
|
No,
|
||
|
|
Yes,
|
||
|
|
};
|
||
|
|
|
||
|
|
Optional<URL> sanitize_url(StringView, Optional<StringView> search_engine = {}, AppendTLD = AppendTLD::No);
|
||
|
|
|
||
|
|
}
|