Add CefResolveURL function (fixes issue #3402)

This commit is contained in:
Jelle Bleyaert
2022-10-03 17:46:50 +00:00
committed by Marshall Greenblatt
parent 5433d9fe5c
commit e0c878df5f
8 changed files with 114 additions and 8 deletions

View File

@@ -33,7 +33,7 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=a6cb0abd77320cfd9ddfa3f16ca0a6ff3987521a$
// $hash=f6dfdfa5b8c77931d8e083a66f5a9445a2fdbf45$
//
#ifndef CEF_INCLUDE_CAPI_CEF_PARSER_CAPI_H_
@@ -46,6 +46,14 @@
extern "C" {
#endif
///
/// Combines specified |base_url| and |relative_url| into |resolved_url|.
/// Returns false (0) if one of the URLs is NULL or invalid.
///
CEF_EXPORT int cef_resolve_url(const cef_string_t* base_url,
const cef_string_t* relative_url,
cef_string_t* resolved_url);
///
/// Parse the specified |url| into its component parts. Returns false (0) if the
/// URL is NULL or invalid.