scheme handler网络拦截新增OH_ArkWebResourceRequest_GetFrameUrl接口

Signed-off-by: xiyupeng <xiyupeng@huawei.com>
This commit is contained in:
xiyupeng 2024-05-15 10:38:48 +08:00
parent 7ff3bde14e
commit d4d7266711
2 changed files with 15 additions and 0 deletions

View File

@ -503,6 +503,17 @@ void OH_ArkWebResourceRequest_DestroyHttpBodyStream(ArkWeb_HttpBodyStream* httpB
*/
int32_t OH_ArkWebResourceRequest_GetResourceType(const ArkWeb_ResourceRequest* resourceRequest);
/*
* @brief Get the url of frame which trigger this request.
* @param resourceRequest The ArkWeb_ResourceRequest.
* @param frameUrl The url of frame which trigger this request. This function will allocate memory for the url string
* and caller must release the string by OH_ArkWeb_ReleaseString.
*
* @syscap SystemCapability.Web.Webview.Core
* @since 12
*/
void OH_ArkWebResourceRequest_GetFrameUrl(const ArkWeb_ResourceRequest* resourceRequest, char** frameUrl);
/*
* @brief Set a user data to ArkWeb_HttpBodyStream.
* @param httpBodyStream The ArkWeb_HttpBodyStream.

View File

@ -95,6 +95,10 @@
"first_introduced": "12",
"name": "OH_ArkWebResourceRequest_GetResourceType"
},
{
"first_introduced": "12",
"name": "OH_ArkWebResourceRequest_GetFrameUrl"
},
{
"first_introduced": "12",
"name": "OH_ArkWebHttpBodyStream_SetReadCallback"