Skip to main content

ohos_web_sys/
lib.rs

1/* automatically generated by rust-bindgen 0.65.1 */
2
3#![allow(non_snake_case)]
4#![allow(non_upper_case_globals)]
5#![allow(non_camel_case_types)]
6#![allow(clippy::missing_safety_doc)]
7// bindgen's bitfield accessors transmute/cast between identical types.
8#![allow(clippy::useless_transmute)]
9#![allow(clippy::unnecessary_cast)]
10
11#[link(name = "ohweb")]
12unsafe extern "C" {}
13
14#[doc = " @error Success."]
15pub const ArkWeb_ErrorCode_ARKWEB_SUCCESS: ArkWeb_ErrorCode = 0;
16#[doc = " @error Init error."]
17pub const ArkWeb_ErrorCode_ARKWEB_INIT_ERROR: ArkWeb_ErrorCode = 17100001;
18#[doc = " @error Unknown error."]
19pub const ArkWeb_ErrorCode_ARKWEB_ERROR_UNKNOWN: ArkWeb_ErrorCode = 17100100;
20#[doc = " @error Invalid param."]
21pub const ArkWeb_ErrorCode_ARKWEB_INVALID_PARAM: ArkWeb_ErrorCode = 17100101;
22#[doc = " @error Register custom schemes should be called before create any ArkWeb."]
23pub const ArkWeb_ErrorCode_ARKWEB_SCHEME_REGISTER_FAILED: ArkWeb_ErrorCode = 17100102;
24#[doc = " @error Invalid url."]
25pub const ArkWeb_ErrorCode_ARKWEB_INVALID_URL: ArkWeb_ErrorCode = 17100103;
26#[doc = " @error Invalid cookie value."]
27pub const ArkWeb_ErrorCode_ARKWEB_INVALID_COOKIE_VALUE: ArkWeb_ErrorCode = 17100104;
28pub const ArkWeb_ErrorCode_ARKWEB_LIBRARY_OPEN_FAILURE: ArkWeb_ErrorCode = 17100105;
29pub const ArkWeb_ErrorCode_ARKWEB_LIBRARY_SYMBOL_NOT_FOUND: ArkWeb_ErrorCode = 17100106;
30#[doc = " @brief The CookieManager is not initialized.\n\n @since 20"]
31#[cfg(feature = "api-20")]
32pub const ArkWeb_ErrorCode_ARKWEB_COOKIE_MANAGER_NOT_INITIALIZED: ArkWeb_ErrorCode = 17100107;
33#[doc = " @brief The CookieManager initialization failed.\n\n @since 20"]
34#[cfg(feature = "api-20")]
35pub const ArkWeb_ErrorCode_ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED: ArkWeb_ErrorCode = 17100108;
36#[doc = " @brief Save cookie failed.\n\n @since 20"]
37#[cfg(feature = "api-20")]
38pub const ArkWeb_ErrorCode_ARKWEB_COOKIE_SAVE_FAILED: ArkWeb_ErrorCode = 17100109;
39pub type ArkWeb_ErrorCode = u32;
40#[doc = " @error The operation is successful."]
41#[cfg(feature = "api-20")]
42pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_SUCCESS: ArkWeb_BlanklessErrorCode = 0;
43#[doc = " @error Unidentified error."]
44#[cfg(feature = "api-20")]
45pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_ERR_UNKNOWN: ArkWeb_BlanklessErrorCode = -1;
46#[doc = " @error Invalid parameter."]
47#[cfg(feature = "api-20")]
48pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_ERR_INVALID_ARGS: ArkWeb_BlanklessErrorCode =
49    -2;
50#[doc = " @error The web controller is not bound to a component."]
51#[cfg(feature = "api-20")]
52pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_ERR_CONTROLLER_NOT_INITED:
53    ArkWeb_BlanklessErrorCode = -3;
54#[doc = " @error The key value is not matched. The OH_NativeArkWeb_SetBlanklessLoadingWithKey\n and OH_NativeArkWeb_GetBlanklessInfoWithKey APIs must be used in pair and use the same key value."]
55#[cfg(feature = "api-20")]
56pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_ERR_KEY_NOT_MATCH: ArkWeb_BlanklessErrorCode =
57    -4;
58#[doc = " @error If the similarity is low, the system determines that the change is too large.\n As a result, the OH_NativeArkWeb_SetBlanklessLoadingWithKey API fails to enable frame interpolation."]
59#[cfg(feature = "api-20")]
60pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_ERR_SIGNIFICANT_CHANGE:
61    ArkWeb_BlanklessErrorCode = -5;
62#[doc = " @error The device does not support this feature."]
63#[cfg(feature = "api-20")]
64pub const ArkWeb_BlanklessErrorCode_ARKWEB_BLANKLESS_ERR_DEVICE_NOT_SUPPORT:
65    ArkWeb_BlanklessErrorCode = 801;
66#[doc = " @brief Defines an enum for the error codes of the white screen optimization solution.\n\n @since 20"]
67#[cfg(feature = "api-20")]
68pub type ArkWeb_BlanklessErrorCode = i32;
69#[doc = " @brief Defines the javascript bridge data type.\n\n @since 12"]
70#[repr(C)]
71#[derive(Debug, Copy, Clone)]
72pub struct ArkWeb_JavaScriptBridgeData {
73    #[doc = " A buffer that contains data."]
74    pub buffer: *const u8,
75    #[doc = " The size of the buffer."]
76    pub size: usize,
77}
78#[doc = " Represent error data"]
79pub const ArkWeb_WebMessageType_ARKWEB_NONE: ArkWeb_WebMessageType = 0;
80#[doc = " The data carried in the ArkWeb_WebMessage is string."]
81pub const ArkWeb_WebMessageType_ARKWEB_STRING: ArkWeb_WebMessageType = 1;
82#[doc = " The data carried in the ArkWeb_WebMessage is buffer(uint8_t)."]
83pub const ArkWeb_WebMessageType_ARKWEB_BUFFER: ArkWeb_WebMessageType = 2;
84#[doc = " @brief Defines the data type carried in an ArkWeb_WebMessage.\n\n @since 12"]
85pub type ArkWeb_WebMessageType = u32;
86#[doc = " Represent error data"]
87#[cfg(feature = "api-18")]
88pub const ArkWeb_JavaScriptValueType_ARKWEB_JAVASCRIPT_NONE: ArkWeb_JavaScriptValueType = 0;
89#[doc = " The data carried in the ArkWeb_JavaScriptValue is string."]
90#[cfg(feature = "api-18")]
91pub const ArkWeb_JavaScriptValueType_ARKWEB_JAVASCRIPT_STRING: ArkWeb_JavaScriptValueType = 1;
92#[doc = " The data carried in the ArkWeb_JavaScriptValue is bool."]
93#[cfg(feature = "api-18")]
94pub const ArkWeb_JavaScriptValueType_ARKWEB_JAVASCRIPT_BOOL: ArkWeb_JavaScriptValueType = 2;
95#[doc = " @brief Defines the data type carried in an ArkWeb_JavaScriptValue.\n\n @since 18"]
96#[cfg(feature = "api-18")]
97pub type ArkWeb_JavaScriptValueType = u32;
98#[repr(C)]
99#[derive(Debug, Copy, Clone)]
100pub struct ArkWeb_WebMessage {
101    _unused: [u8; 0],
102}
103#[doc = " @brief Defines the ArkWeb_WebMessage.\n\n @since 12"]
104pub type ArkWeb_WebMessagePtr = *mut ArkWeb_WebMessage;
105#[repr(C)]
106#[derive(Debug, Copy, Clone)]
107pub struct ArkWeb_JavaScriptValue {
108    _unused: [u8; 0],
109}
110#[doc = " @brief Defines the ArkWeb_JavaScriptValuePtr.\n\n @since 18"]
111#[cfg(feature = "api-18")]
112pub type ArkWeb_JavaScriptValuePtr = *mut ArkWeb_JavaScriptValue;
113#[doc = " @brief Defines the javascript callback of the native ArkWeb.\n\n @since 12"]
114pub type ArkWeb_OnJavaScriptCallback = ::std::option::Option<
115    unsafe extern "C" fn(
116        webTag: *const ::std::os::raw::c_char,
117        data: *const ArkWeb_JavaScriptBridgeData,
118        userData: *mut ::std::os::raw::c_void,
119    ),
120>;
121#[doc = " @brief Defines the javascript proxy callback of the native ArkWeb.\n\n @since 12"]
122pub type ArkWeb_OnJavaScriptProxyCallback = ::std::option::Option<
123    unsafe extern "C" fn(
124        webTag: *const ::std::os::raw::c_char,
125        dataArray: *const ArkWeb_JavaScriptBridgeData,
126        arraySize: usize,
127        userData: *mut ::std::os::raw::c_void,
128    ),
129>;
130#[doc = " @brief Defines the JavaScript proxy callback of the native ArkWeb.\n\n @param webTag The name of the web component.\n @param dataArray The JavaScript bridge data array from HTML.\n @param arraySize The number of elements in the array.\n @param userData The data set by user.\n\n @since 18"]
131#[cfg(feature = "api-18")]
132pub type ArkWeb_OnJavaScriptProxyCallbackWithResult = ::std::option::Option<
133    unsafe extern "C" fn(
134        webTag: *const ::std::os::raw::c_char,
135        dataArray: *const ArkWeb_JavaScriptBridgeData,
136        arraySize: usize,
137        userData: *mut ::std::os::raw::c_void,
138    ) -> ArkWeb_JavaScriptValuePtr,
139>;
140#[doc = " @brief Defines the component callback of the native ArkWeb.\n\n @since 12"]
141pub type ArkWeb_OnComponentCallback = ::std::option::Option<
142    unsafe extern "C" fn(
143        webTag: *const ::std::os::raw::c_char,
144        userData: *mut ::std::os::raw::c_void,
145    ),
146>;
147#[doc = " @brief Defines the scroll callback of the native ArkWeb.\n\n @param webTag The name of the web component.\n @param userData The data set by user.\n @param x X-axis scrolling offset.\n @param y Y-axis scrolling offset.\n\n @since 18"]
148#[cfg(feature = "api-18")]
149pub type ArkWeb_OnScrollCallback = ::std::option::Option<
150    unsafe extern "C" fn(
151        webTag: *const ::std::os::raw::c_char,
152        userData: *mut ::std::os::raw::c_void,
153        x: f64,
154        y: f64,
155    ),
156>;
157#[repr(C)]
158#[derive(Debug, Copy, Clone)]
159pub struct ArkWeb_WebMessagePort {
160    _unused: [u8; 0],
161}
162#[doc = " @brief Defines the ArkWeb_WebMessagePort that represent a HTML5 message port.\n\n @since 12"]
163pub type ArkWeb_WebMessagePortPtr = *mut ArkWeb_WebMessagePort;
164#[doc = " @brief Defines the callback to receive message from HTML.\n\n @param webTag The name of the web component.\n @param port The ArkWeb_WebMessagePort for registering the ArkWeb_OnMessageEventHandler.\n @param message The received ArkWeb_WebMessage.\n @param userData The data set by user.\n\n @since 12"]
165pub type ArkWeb_OnMessageEventHandler = ::std::option::Option<
166    unsafe extern "C" fn(
167        webTag: *const ::std::os::raw::c_char,
168        port: ArkWeb_WebMessagePortPtr,
169        message: ArkWeb_WebMessagePtr,
170        userData: *mut ::std::os::raw::c_void,
171    ),
172>;
173#[doc = " @brief Defines the javascript object.\n\n @since 12"]
174#[repr(C)]
175#[derive(Debug, Copy, Clone)]
176pub struct ArkWeb_JavaScriptObject {
177    #[doc = " A piece of javascript code."]
178    pub buffer: *const u8,
179    #[doc = " The size of the javascript code."]
180    pub size: usize,
181    #[doc = " Callbacks execute JavaScript script results."]
182    pub callback: ArkWeb_OnJavaScriptCallback,
183    #[doc = " The user data to set."]
184    pub userData: *mut ::std::os::raw::c_void,
185}
186#[doc = " @brief Defines the javascript proxy registered method object.\n\n @since 12"]
187#[repr(C)]
188#[derive(Debug, Copy, Clone)]
189pub struct ArkWeb_ProxyMethod {
190    #[doc = " The method of the application side JavaScript object participating in the registration."]
191    pub methodName: *const ::std::os::raw::c_char,
192    #[doc = " The callback function registered by developer is called back when HTML side uses."]
193    pub callback: ArkWeb_OnJavaScriptProxyCallback,
194    #[doc = " The user data to set."]
195    pub userData: *mut ::std::os::raw::c_void,
196}
197#[doc = " @brief Defines the JavaScript proxy method with a return value.\n\n @since 18"]
198#[cfg(feature = "api-18")]
199#[repr(C)]
200#[derive(Debug, Copy, Clone)]
201pub struct ArkWeb_ProxyMethodWithResult {
202    #[doc = " The method of the application side JavaScript object participating in the registration."]
203    pub methodName: *const ::std::os::raw::c_char,
204    #[doc = " The callback function with a return value registered by developer is called back when HTML side uses."]
205    pub callback: ArkWeb_OnJavaScriptProxyCallbackWithResult,
206    #[doc = " The user data to set."]
207    pub userData: *mut ::std::os::raw::c_void,
208}
209#[doc = " @brief Defines the javascript proxy registered object.\n\n @since 12"]
210#[repr(C)]
211#[derive(Debug, Copy, Clone)]
212pub struct ArkWeb_ProxyObject {
213    #[doc = " The name of the registered object."]
214    pub objName: *const ::std::os::raw::c_char,
215    #[doc = " The javascript proxy registered method object list"]
216    pub methodList: *const ArkWeb_ProxyMethod,
217    #[doc = " The size of the methodList."]
218    pub size: usize,
219}
220#[doc = " @brief Defines the JavaScript proxy registered object with methodList that has a return value.\n\n @since 18"]
221#[cfg(feature = "api-18")]
222#[repr(C)]
223#[derive(Debug, Copy, Clone)]
224pub struct ArkWeb_ProxyObjectWithResult {
225    #[doc = " The name of the registered object."]
226    pub objName: *const ::std::os::raw::c_char,
227    #[doc = " The JavaScript proxy registered method object list with a callback function that has a return value"]
228    pub methodList: *const ArkWeb_ProxyMethodWithResult,
229    #[doc = " The size of the methodList."]
230    pub size: usize,
231}
232#[doc = " @brief Defines the controller API for native ArkWeb.\n Before invoking an API, you are advised to use ARKWEB_MEMBER_MISSING to check\n whether the function structure has a corresponding function pointer to avoid crash\n caused by mismatch between the SDK and the device ROM.\n Use OH_ArkWeb_GetNativeAPI in the UI thread to obtain the Controller-related interface cluster.\n\n @since 12"]
233#[repr(C)]
234#[derive(Debug, Copy, Clone)]
235pub struct ArkWeb_ControllerAPI {
236    #[doc = " The ArkWeb_ControllerAPI struct size."]
237    pub size: usize,
238    #[doc = " Load a piece of code and execute JS code in the context of the currently displayed page."]
239    pub runJavaScript: ::std::option::Option<
240        unsafe extern "C" fn(
241            webTag: *const ::std::os::raw::c_char,
242            javascriptObject: *const ArkWeb_JavaScriptObject,
243        ),
244    >,
245    #[doc = " Register the JavaScript object and method list."]
246    pub registerJavaScriptProxy: ::std::option::Option<
247        unsafe extern "C" fn(
248            webTag: *const ::std::os::raw::c_char,
249            proxyObject: *const ArkWeb_ProxyObject,
250        ),
251    >,
252    #[doc = " Deletes the registered object which the given name."]
253    pub deleteJavaScriptRegister: ::std::option::Option<
254        unsafe extern "C" fn(
255            webTag: *const ::std::os::raw::c_char,
256            objName: *const ::std::os::raw::c_char,
257        ),
258    >,
259    #[doc = " Refresh the current web page."]
260    pub refresh: ::std::option::Option<unsafe extern "C" fn(webTag: *const ::std::os::raw::c_char)>,
261    #[doc = " Register the JavaScript object and async method list."]
262    pub registerAsyncJavaScriptProxy: ::std::option::Option<
263        unsafe extern "C" fn(
264            webTag: *const ::std::os::raw::c_char,
265            proxyObject: *const ArkWeb_ProxyObject,
266        ),
267    >,
268    #[doc = " @brief Creates a message channel to communicate with HTML and returns\n        the message ports representing the message channel endpoints.\n\n @param webTag The name of the web component.\n @param size The quantity of message ports."]
269    pub createWebMessagePorts: ::std::option::Option<
270        unsafe extern "C" fn(
271            webTag: *const ::std::os::raw::c_char,
272            size: *mut usize,
273        ) -> *mut ArkWeb_WebMessagePortPtr,
274    >,
275    #[doc = " @brief Destroy message ports.\n\n @param ports Address of the message ports array pointer.\n @param size The quantity of message ports."]
276    pub destroyWebMessagePorts: ::std::option::Option<
277        unsafe extern "C" fn(ports: *mut *mut ArkWeb_WebMessagePortPtr, size: usize),
278    >,
279    #[doc = " @brief Post message ports to main frame.\n\n @param webTag The name of the web component.\n @param name Name of the message to be sent.\n @param size The quantity of message ports.\n @param url Indicates the URI for receiving the message.\n @return Post web message result code.\n         {@link ARKWEB_SUCCESS} post web message success.\n         {@link ARKWEB_INVALID_PARAM} the parameter verification fails.\n         {@link ARKWEB_INIT_ERROR} no web associated with this webTag."]
280    pub postWebMessage: ::std::option::Option<
281        unsafe extern "C" fn(
282            webTag: *const ::std::os::raw::c_char,
283            name: *const ::std::os::raw::c_char,
284            webMessagePorts: *mut ArkWeb_WebMessagePortPtr,
285            size: usize,
286            url: *const ::std::os::raw::c_char,
287        ) -> ArkWeb_ErrorCode,
288    >,
289    #[doc = " @brief Get the url of the last frame that calls the JavaScriptProxy.\n        This should be called on the thread which JavaScriptProxy called.\n\n @return The url of the last frame that calls the JavaScriptProxy.\n @since 14"]
290    #[cfg(feature = "api-14")]
291    pub getLastJavascriptProxyCallingFrameUrl:
292        ::std::option::Option<unsafe extern "C" fn() -> *const ::std::os::raw::c_char>,
293    #[doc = " @brief Register the JavaScript object and method list, the method is callback function that has a return value.\n\n @param webTag The name of the web component.\n @param proxyObject The JavaScript object to register, the object has callback functions with return value.\n @param permission The JSON string, which defaults to null, is used to configure the permission control for\n JSBridge, allowing for the definition of URL whitelists at the object and method levels.\n\n @since 18"]
294    #[cfg(feature = "api-18")]
295    pub registerJavaScriptProxyEx: ::std::option::Option<
296        unsafe extern "C" fn(
297            webTag: *const ::std::os::raw::c_char,
298            proxyObject: *const ArkWeb_ProxyObjectWithResult,
299            permission: *const ::std::os::raw::c_char,
300        ),
301    >,
302    #[doc = " @brief Register the JavaScript object and async method list.\n\n @param webTag The name of the web component.\n @param proxyObject The JavaScript object to register.\n @param permission The JSON string, which defaults to null, is used to configure the permission control\n for JSBridge, allowing for the definition of URL whitelists at the object and method levels.\n\n @since 18"]
303    #[cfg(feature = "api-18")]
304    pub registerAsyncJavaScriptProxyEx: ::std::option::Option<
305        unsafe extern "C" fn(
306            webTag: *const ::std::os::raw::c_char,
307            proxyObject: *const ArkWeb_ProxyObject,
308            permission: *const ::std::os::raw::c_char,
309        ),
310    >,
311}
312#[doc = " @brief Defines the component API for native ArkWeb.\n\n @since 12"]
313#[repr(C)]
314#[derive(Debug, Copy, Clone)]
315pub struct ArkWeb_ComponentAPI {
316    #[doc = " The ArkWeb_ComponentAPI struct size."]
317    pub size: usize,
318    #[doc = " Register the OnControllerAttached callback."]
319    pub onControllerAttached: ::std::option::Option<
320        unsafe extern "C" fn(
321            webTag: *const ::std::os::raw::c_char,
322            callback: ArkWeb_OnComponentCallback,
323            userData: *mut ::std::os::raw::c_void,
324        ),
325    >,
326    #[doc = " Register the OnPageBegin callback."]
327    pub onPageBegin: ::std::option::Option<
328        unsafe extern "C" fn(
329            webTag: *const ::std::os::raw::c_char,
330            callback: ArkWeb_OnComponentCallback,
331            userData: *mut ::std::os::raw::c_void,
332        ),
333    >,
334    #[doc = " Register the OnPageEnd callback."]
335    pub onPageEnd: ::std::option::Option<
336        unsafe extern "C" fn(
337            webTag: *const ::std::os::raw::c_char,
338            callback: ArkWeb_OnComponentCallback,
339            userData: *mut ::std::os::raw::c_void,
340        ),
341    >,
342    #[doc = " Register the OnDestroy callback."]
343    pub onDestroy: ::std::option::Option<
344        unsafe extern "C" fn(
345            webTag: *const ::std::os::raw::c_char,
346            callback: ArkWeb_OnComponentCallback,
347            userData: *mut ::std::os::raw::c_void,
348        ),
349    >,
350}
351#[doc = " @brief Defines the web message API for native ArkWeb.\n Before invoking an API, you are advised to use ARKWEB_MEMBER_MISSING to check\n whether the function structure has a corresponding function pointer to avoid crash\n caused by mismatch between the SDK and the device ROM.\n Use OH_ArkWeb_GetNativeAPI in the UI thread to obtain the WebMessagePort-related interface cluster.\n\n @since 12"]
352#[repr(C)]
353#[derive(Debug, Copy, Clone)]
354pub struct ArkWeb_WebMessagePortAPI {
355    #[doc = " The ArkWeb_WebMessagePortAPI struct size."]
356    pub size: usize,
357    #[doc = " @brief Post message to HTML.\n\n @param webMessagePort The ArkWeb_WebMessagePort.\n @param webTag The name of the web component.\n @param webMessage The ArkWeb_WebMessage to send.\n @return Post message result code.\n         {@link ARKWEB_SUCCESS} post message success.\n         {@link ARKWEB_INVALID_PARAM} the parameter verification fails.\n         {@link ARKWEB_INIT_ERROR} no web associated with this webTag."]
358    pub postMessage: ::std::option::Option<
359        unsafe extern "C" fn(
360            webMessagePort: ArkWeb_WebMessagePortPtr,
361            webTag: *const ::std::os::raw::c_char,
362            webMessage: ArkWeb_WebMessagePtr,
363        ) -> ArkWeb_ErrorCode,
364    >,
365    #[doc = " @brief Close the message port.\n\n @param webMessagePort The ArkWeb_WebMessagePort.\n @param webTag The name of the web component."]
366    pub close: ::std::option::Option<
367        unsafe extern "C" fn(
368            webMessagePort: ArkWeb_WebMessagePortPtr,
369            webTag: *const ::std::os::raw::c_char,
370        ),
371    >,
372    #[doc = " @brief Set a callback to receive message from HTML.\n\n @param webMessagePort The ArkWeb_WebMessagePort.\n @param webTag The name of the web component.\n @param messageEventHandler The handler to receive message from HTML.\n @param userData The data set by user."]
373    pub setMessageEventHandler: ::std::option::Option<
374        unsafe extern "C" fn(
375            webMessagePort: ArkWeb_WebMessagePortPtr,
376            webTag: *const ::std::os::raw::c_char,
377            messageEventHandler: ArkWeb_OnMessageEventHandler,
378            userData: *mut ::std::os::raw::c_void,
379        ),
380    >,
381}
382#[doc = " @brief Defines the web message data API for native ArkWeb.\n Before invoking an API, you are advised to use ARKWEB_MEMBER_MISSING to check\n whether the function structure has a corresponding function pointer to avoid crash\n caused by mismatch between the SDK and the device ROM.\n Use OH_ArkWeb_GetNativeAPI in the UI thread to obtain the WebMessage-related interface cluster.\n\n @since 12"]
383#[repr(C)]
384#[derive(Debug, Copy, Clone)]
385pub struct ArkWeb_WebMessageAPI {
386    #[doc = " The ArkWeb_WebMessageAPI struct size."]
387    pub size: usize,
388    #[doc = "  @brief Used to create a ArkWeb_WebMessage.\n\n  @return The created ArkWeb_WebMessage, destroy it through\n  destroyWebMessage after it is no longer used."]
389    pub createWebMessage: ::std::option::Option<unsafe extern "C" fn() -> ArkWeb_WebMessagePtr>,
390    #[doc = "  @brief Used to destroy a ArkWeb_WebMessage.\n\n  @param webMessage The ArkWeb_WebMessage to destroy."]
391    pub destroyWebMessage:
392        ::std::option::Option<unsafe extern "C" fn(webMessage: *mut ArkWeb_WebMessagePtr)>,
393    #[doc = "  @brief Set the type of ArkWeb_WebMessage.\n\n  @param webMessage The ArkWeb_WebMessage.\n  @param type The type of ArkWeb_WebMessage."]
394    pub setType: ::std::option::Option<
395        unsafe extern "C" fn(webMessage: ArkWeb_WebMessagePtr, type_: ArkWeb_WebMessageType),
396    >,
397    #[doc = "  @brief Get the type of ArkWeb_WebMessage.\n\n  @param webMessage The ArkWeb_WebMessage.\n  @return The type of ArkWeb_WebMessage."]
398    pub getType: ::std::option::Option<
399        unsafe extern "C" fn(webMessage: ArkWeb_WebMessagePtr) -> ArkWeb_WebMessageType,
400    >,
401    #[doc = "  @brief Set the data of ArkWeb_WebMessage.\n\n  @param webMessage The ArkWeb_WebMessage.\n  @param data The data of ArkWeb_WebMessage.\n  @param dataLength The length of data."]
402    pub setData: ::std::option::Option<
403        unsafe extern "C" fn(
404            webMessage: ArkWeb_WebMessagePtr,
405            data: *mut ::std::os::raw::c_void,
406            dataLength: usize,
407        ),
408    >,
409    #[doc = "  @brief Get the data of ArkWeb_WebMessage.\n\n  @param webMessage The ArkWeb_WebMessage.\n  @param dataLength The length of data.\n  @return The data of ArkWeb_WebMessage."]
410    pub getData: ::std::option::Option<
411        unsafe extern "C" fn(
412            webMessage: ArkWeb_WebMessagePtr,
413            dataLength: *mut usize,
414        ) -> *mut ::std::os::raw::c_void,
415    >,
416}
417#[doc = " @brief Defines the native CookieManager API for ArkWeb.\n Before invoking an API, you are advised to use ARKWEB_MEMBER_MISSING to check\n whether the function structure has a corresponding function pointer to avoid crash\n caused by mismatch between the SDK and the device ROM.\n Use OH_ArkWeb_GetNativeAPI in the UI thread to obtain the CookieManager-related interface cluster.\n\n @since 12"]
418#[repr(C)]
419#[derive(Debug, Copy, Clone)]
420pub struct ArkWeb_CookieManagerAPI {
421    #[doc = " The ArkWeb_CookieManagerAPI struct size."]
422    pub size: usize,
423    #[doc = " @brief Obtains the cookie value corresponding to a specified URL.\n\n @param url URL to which the cookie to be obtained belongs. A complete URL is recommended.\n @param incognito True indicates that the memory cookies of the webview in privacy mode are obtained,\n                  and false indicates that cookies in non-privacy mode are obtained.\n @param includeHttpOnly If true HTTP-only cookies will also be included in the cookieValue.\n @param cookieValue Get the cookie value corresponding to the URL.\n @return Fetch cookie result code.\n         {@link ARKWEB_SUCCESS} fetch cookie success.\n         {@link ARKWEB_INVALID_URL} invalid url.\n         {@link ARKWEB_INVALID_PARAM} cookieValue is nullptr."]
424    pub fetchCookieSync: ::std::option::Option<
425        unsafe extern "C" fn(
426            url: *const ::std::os::raw::c_char,
427            incognito: bool,
428            includeHttpOnly: bool,
429            cookieValue: *mut *mut ::std::os::raw::c_char,
430        ) -> ArkWeb_ErrorCode,
431    >,
432    #[doc = " @brief Sets the cookie value for a specified URL.\n\n @param url Specifies the URL to which the cookie belongs. A complete URL is recommended.\n @param cookieValue The value of the cookie to be set.\n @param incognito True indicates that cookies of the corresponding URL are set in privacy mode,\n                  and false indicates that cookies of the corresponding URL are set in non-privacy mode.\n @param includeHttpOnly If true, HTTP-only cookies can also be overwritten.\n @return Config cookie result code.\n         {@link ARKWEB_SUCCESS} config cookie success.\n         {@link ARKWEB_INVALID_URL} invalid url.\n         {@link ARKWEB_INVALID_COOKIE_VALUE} invalid cookie value."]
433    pub configCookieSync: ::std::option::Option<
434        unsafe extern "C" fn(
435            url: *const ::std::os::raw::c_char,
436            cookieValue: *const ::std::os::raw::c_char,
437            incognito: bool,
438            includeHttpOnly: bool,
439        ) -> ArkWeb_ErrorCode,
440    >,
441    #[doc = " @brief Check whether cookies exist.\n\n @param incognito True indicates whether cookies exist in privacy mode,\n                  and false indicates whether cookies exist in non-privacy mode.\n @return True indicates that the cookie exists, and false indicates that the cookie does not exist."]
442    pub existCookies: ::std::option::Option<unsafe extern "C" fn(incognito: bool) -> bool>,
443    #[doc = " @brief Clear all cookies.\n\n @param incognito True indicates that all memory cookies of the webview are cleared in privacy mode,\n                  and false indicates that persistent cookies in non-privacy mode are cleared."]
444    pub clearAllCookiesSync: ::std::option::Option<unsafe extern "C" fn(incognito: bool)>,
445    #[doc = " @brief Clear all session cookies."]
446    pub clearSessionCookiesSync: ::std::option::Option<unsafe extern "C" fn()>,
447}
448#[doc = " @brief Defines the native JavaScriptValue API for ArkWeb.\n Before invoking an API, you are advised to use ARKWEB_MEMBER_MISSING to check\n whether the function structure has a corresponding function pointer to avoid crash\n caused by mismatch between the SDK and the device ROM.\n\n @since 18"]
449#[cfg(feature = "api-18")]
450#[repr(C)]
451#[derive(Debug, Copy, Clone)]
452pub struct ArkWeb_JavaScriptValueAPI {
453    #[doc = " The ArkWeb_JavaScriptValueAPI struct size."]
454    pub size: usize,
455    #[doc = " @brief Create the JavaScript value responding to HTML.\n\n @param type The type of ArkWeb_JavaScriptValue.\n @param data The data buffer of ArkWeb_JavaScriptValue.\n @param dataLength The length of data buffer.\n @return ArkWeb_JavaScriptValuePtr created by ArkWeb, the memory of ArkWeb_JavaScriptValue\n is managed by ArkWeb itself."]
456    pub createJavaScriptValue: ::std::option::Option<
457        unsafe extern "C" fn(
458            type_: ArkWeb_JavaScriptValueType,
459            data: *mut ::std::os::raw::c_void,
460            dataLength: usize,
461        ) -> ArkWeb_JavaScriptValuePtr,
462    >,
463}
464#[doc = " @brief Defines the native API type of any size.\n\n @since 12"]
465#[repr(C)]
466#[derive(Debug, Copy, Clone)]
467pub struct ArkWeb_AnyNativeAPI {
468    #[doc = " Defines the size information of the native API set."]
469    pub size: usize,
470}
471#[doc = " API type related to ArkWeb component."]
472pub const ArkWeb_NativeAPIVariantKind_ARKWEB_NATIVE_COMPONENT: ArkWeb_NativeAPIVariantKind = 0;
473#[doc = " API type related to ArkWeb controller."]
474pub const ArkWeb_NativeAPIVariantKind_ARKWEB_NATIVE_CONTROLLER: ArkWeb_NativeAPIVariantKind = 1;
475#[doc = " API type related to ArkWeb WebMessagePort."]
476pub const ArkWeb_NativeAPIVariantKind_ARKWEB_NATIVE_WEB_MESSAGE_PORT: ArkWeb_NativeAPIVariantKind =
477    2;
478#[doc = " API type related to ArkWeb WebMessage."]
479pub const ArkWeb_NativeAPIVariantKind_ARKWEB_NATIVE_WEB_MESSAGE: ArkWeb_NativeAPIVariantKind = 3;
480#[doc = " API type related to ArkWeb cookie manager."]
481pub const ArkWeb_NativeAPIVariantKind_ARKWEB_NATIVE_COOKIE_MANAGER: ArkWeb_NativeAPIVariantKind = 4;
482#[doc = " @brief API type related to ArkWeb JavaScript value.\n\n @since 18"]
483#[cfg(feature = "api-18")]
484pub const ArkWeb_NativeAPIVariantKind_ARKWEB_NATIVE_JAVASCRIPT_VALUE: ArkWeb_NativeAPIVariantKind =
485    5;
486#[doc = " @brief Defines the native API set type.\n\n @since 12"]
487pub type ArkWeb_NativeAPIVariantKind = u32;
488extern "C" {
489    #[doc = " @brief Obtains the native API set of a specified type.\n @param type Indicates the type of the native API set provided by ArkWeb.\n @return Return the pointer to the native API abstract object that carries the size.\n         If the type is incorrect, a null pointer is returned.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
490    pub fn OH_ArkWeb_GetNativeAPI(type_: ArkWeb_NativeAPIVariantKind) -> *mut ArkWeb_AnyNativeAPI;
491}
492extern "C" {
493    #[doc = " @brief Register a scrolling event callback.\n @param webTag The name of the web component.\n @param callback The ArkWeb scrolling callback.\n @param userData The data set by user.\n @return Returns whether the registration was successful, false indicates failure.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 18"]
494    #[cfg(feature = "api-18")]
495    pub fn OH_ArkWeb_RegisterScrollCallback(
496        webTag: *const ::std::os::raw::c_char,
497        callback: ArkWeb_OnScrollCallback,
498        userData: *mut ::std::os::raw::c_void,
499    ) -> bool;
500}
501#[doc = " @error Normal."]
502pub const ArkWeb_NetError_ARKWEB_NET_OK: ArkWeb_NetError = 0;
503#[doc = " @error An asynchronous IO operation is not yet complete.  This usually does not\n        indicate a fatal error.  Typically this error will be generated as a\n        notification to wait for some external notification that the IO operation\n        finally completed."]
504pub const ArkWeb_NetError_ARKWEB_ERR_IO_PENDING: ArkWeb_NetError = -1;
505#[doc = " @error A generic failure occurred."]
506pub const ArkWeb_NetError_ARKWEB_ERR_FAILED: ArkWeb_NetError = -2;
507#[doc = " @error An operation was aborted."]
508pub const ArkWeb_NetError_ARKWEB_ERR_ABORTED: ArkWeb_NetError = -3;
509#[doc = " @error An argument to the function is incorrect."]
510pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_ARGUMENT: ArkWeb_NetError = -4;
511#[doc = " @error The handle or file descriptor is invalid."]
512pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_HANDLE: ArkWeb_NetError = -5;
513#[doc = " @error The file or directory cannot be found."]
514pub const ArkWeb_NetError_ARKWEB_ERR_FILE_NOT_FOUND: ArkWeb_NetError = -6;
515#[doc = " @error An operation timed out."]
516pub const ArkWeb_NetError_ARKWEB_ERR_TIMED_OUT: ArkWeb_NetError = -7;
517#[doc = " @error The file is too large."]
518pub const ArkWeb_NetError_ARKWEB_ERR_FILE_TOO_LARGE: ArkWeb_NetError = -8;
519#[doc = " @error An unexpected error.  This may be caused by a programming mistake or an\n        invalid assumption."]
520pub const ArkWeb_NetError_ARKWEB_ERR_UNEXPECTED: ArkWeb_NetError = -9;
521#[doc = " @error Permission to access a resource, other than the network, was denied."]
522pub const ArkWeb_NetError_ARKWEB_ERR_ACCESS_DENIED: ArkWeb_NetError = -10;
523#[doc = " @error The operation failed because of unimplemented functionality."]
524pub const ArkWeb_NetError_ARKWEB_ERR_NOT_IMPLEMENTED: ArkWeb_NetError = -11;
525#[doc = " @error There were not enough resources to complete the operation."]
526pub const ArkWeb_NetError_ARKWEB_ERR_INSUFFICIENT_RESOURCES: ArkWeb_NetError = -12;
527#[doc = " @error Memory allocation failed."]
528pub const ArkWeb_NetError_ARKWEB_ERR_OUT_OF_MEMORY: ArkWeb_NetError = -13;
529#[doc = " @error The file upload failed because the file's modification time was different\n        from the expectation."]
530pub const ArkWeb_NetError_ARKWEB_ERR_UPLOAD_FILE_CHANGED: ArkWeb_NetError = -14;
531#[doc = " @error The socket is not connected."]
532pub const ArkWeb_NetError_ARKWEB_ERR_SOCKET_NOT_CONNECTED: ArkWeb_NetError = -15;
533#[doc = " @error The file already exists."]
534pub const ArkWeb_NetError_ARKWEB_ERR_FILE_EXISTS: ArkWeb_NetError = -16;
535#[doc = " @error The path or file name is too long."]
536pub const ArkWeb_NetError_ARKWEB_ERR_FILE_PATH_TOO_LONG: ArkWeb_NetError = -17;
537#[doc = " @error Not enough room left on the disk."]
538pub const ArkWeb_NetError_ARKWEB_ERR_FILE_NO_SPACE: ArkWeb_NetError = -18;
539#[doc = " @error The file has a virus."]
540pub const ArkWeb_NetError_ARKWEB_ERR_FILE_VIRUS_INFECTED: ArkWeb_NetError = -19;
541#[doc = " @error The client chose to block the request."]
542pub const ArkWeb_NetError_ARKWEB_ERR_BLOCKED_BY_CLIENT: ArkWeb_NetError = -20;
543#[doc = " @error The network changed."]
544pub const ArkWeb_NetError_ARKWEB_ERR_NETWORK_CHANGED: ArkWeb_NetError = -21;
545#[doc = " @error The request was blocked by the URL block list configured by the domain\n        administrator."]
546pub const ArkWeb_NetError_ARKWEB_ERR_BLOCKED_BY_ADMINISTRATOR: ArkWeb_NetError = -22;
547#[doc = " @error The socket is already connected."]
548pub const ArkWeb_NetError_ARKWEB_ERR_SOCKET_CONNECTED: ArkWeb_NetError = -23;
549#[doc = " @error The upload failed because the upload stream needed to be re-read, due to a\n        retry or a redirect, but the upload stream doesn't support that operation."]
550pub const ArkWeb_NetError_ARKWEB_ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED: ArkWeb_NetError = -25;
551#[doc = " @error The request failed because the URLRequestContext is shutting down, or has\n        been shut down."]
552pub const ArkWeb_NetError_ARKWEB_ERR_CONTEXT_SHUT_DOWN: ArkWeb_NetError = -26;
553#[doc = " @error The request failed because the response was delivered along with requirements\n        which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor\n        checks and 'Cross-Origin-Resource-Policy' for instance)."]
554pub const ArkWeb_NetError_ARKWEB_ERR_BLOCKED_BY_RESPONSE: ArkWeb_NetError = -27;
555#[doc = " @error The request was blocked by system policy disallowing some or all cleartext\n        requests."]
556pub const ArkWeb_NetError_ARKWEB_ERR_CLEARTEXT_NOT_PERMITTED: ArkWeb_NetError = -29;
557#[doc = " @error The request was blocked by a Content Security Policy."]
558pub const ArkWeb_NetError_ARKWEB_ERR_BLOCKED_BY_CSP: ArkWeb_NetError = -30;
559#[doc = " @error The request was blocked because of no H/2 or QUIC session."]
560pub const ArkWeb_NetError_ARKWEB_ERR_H2_OR_QUIC_REQUIRED: ArkWeb_NetError = -31;
561#[doc = " @error The request was blocked by CORB or ORB."]
562pub const ArkWeb_NetError_ARKWEB_ERR_BLOCKED_BY_ORB: ArkWeb_NetError = -32;
563#[doc = " @error A connection was closed (corresponding to a TCP FIN)."]
564pub const ArkWeb_NetError_ARKWEB_ERR_CONNECTION_CLOSED: ArkWeb_NetError = -100;
565#[doc = " @error A connection was reset (corresponding to a TCP RST)."]
566pub const ArkWeb_NetError_ARKWEB_ERR_CONNECTION_RESET: ArkWeb_NetError = -101;
567#[doc = " @error A connection attempt was refused."]
568pub const ArkWeb_NetError_ARKWEB_ERR_CONNECTION_REFUSED: ArkWeb_NetError = -102;
569#[doc = " @error A connection timed out as a result of not receiving an ACK for data sent.\n        This can include a FIN packet that did not get ACK'd."]
570pub const ArkWeb_NetError_ARKWEB_ERR_CONNECTION_ABORTED: ArkWeb_NetError = -103;
571#[doc = " @error A connection attempt failed."]
572pub const ArkWeb_NetError_ARKWEB_ERR_CONNECTION_FAILED: ArkWeb_NetError = -104;
573#[doc = " @error The host name could not be resolved."]
574pub const ArkWeb_NetError_ARKWEB_ERR_NAME_NOT_RESOLVED: ArkWeb_NetError = -105;
575#[doc = " @error The Internet connection has been lost."]
576pub const ArkWeb_NetError_ARKWEB_ERR_INTERNET_DISCONNECTED: ArkWeb_NetError = -106;
577#[doc = " @error An SSL protocol error occurred."]
578pub const ArkWeb_NetError_ARKWEB_ERR_SSL_PROTOCOL_ERROR: ArkWeb_NetError = -107;
579#[doc = " @error The IP address or port number is invalid (e.g., cannot connect to the IP\n        address 0 or the port 0)."]
580pub const ArkWeb_NetError_ARKWEB_ERR_ADDRESS_INVALID: ArkWeb_NetError = -108;
581#[doc = " @error The IP address is unreachable.  This usually means that there is no route to\n        the specified host or network."]
582pub const ArkWeb_NetError_ARKWEB_ERR_ADDRESS_UNREACHABLE: ArkWeb_NetError = -109;
583#[doc = " @error The server requested a client certificate for SSL client authentication."]
584pub const ArkWeb_NetError_ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_NEEDED: ArkWeb_NetError = -110;
585#[doc = " @error A tunnel connection through the proxy could not be established."]
586pub const ArkWeb_NetError_ARKWEB_ERR_TUNNEL_CONNECTION_FAILED: ArkWeb_NetError = -111;
587#[doc = " @error No SSL protocol versions are enabled."]
588pub const ArkWeb_NetError_ARKWEB_ERR_NO_SSL_VERSIONS_ENABLED: ArkWeb_NetError = -112;
589#[doc = " @error The client and server don't support a common SSL protocol version or\n        cipher suite."]
590pub const ArkWeb_NetError_ARKWEB_ERR_SSL_VERSION_OR_CIPHER_MISMATCH: ArkWeb_NetError = -113;
591#[doc = " @error The server requested a renegotiation (rehandshake)."]
592pub const ArkWeb_NetError_ARKWEB_ERR_SSL_RENEGOTIATION_REQUESTED: ArkWeb_NetError = -114;
593#[doc = " @error The proxy requested authentication (for tunnel establishment, with an\n        unsupported method."]
594pub const ArkWeb_NetError_ARKWEB_ERR_PROXY_AUTH_UNSUPPORTED: ArkWeb_NetError = -115;
595#[doc = " @error The SSL handshake failed because of a bad or missing client certificate."]
596pub const ArkWeb_NetError_ARKWEB_ERR_BAD_SSL_CLIENT_AUTH_CERT: ArkWeb_NetError = -117;
597#[doc = " @error A connection attempt timed out."]
598pub const ArkWeb_NetError_ARKWEB_ERR_CONNECTION_TIMED_OUT: ArkWeb_NetError = -118;
599#[doc = " @error There are too many pending DNS resolves, so a request in the queue was\n        aborted."]
600pub const ArkWeb_NetError_ARKWEB_ERR_HOST_RESOLVER_QUEUE_TOO_LARGE: ArkWeb_NetError = -119;
601#[doc = " @error Failed establishing a connection to the SOCKS proxy server for a target host."]
602pub const ArkWeb_NetError_ARKWEB_ERR_SOCKS_CONNECTION_FAILED: ArkWeb_NetError = -120;
603#[doc = " @error The SOCKS proxy server failed establishing connection to the target host\n        because that host is unreachable."]
604pub const ArkWeb_NetError_ARKWEB_ERR_SOCKS_CONNECTION_HOST_UNREACHABLE: ArkWeb_NetError = -121;
605#[doc = " @error The request to negotiate an alternate protocol failed."]
606pub const ArkWeb_NetError_ARKWEB_ERR_ALPN_NEGOTIATION_FAILED: ArkWeb_NetError = -122;
607#[doc = " @error The peer sent an SSL no_renegotiation alert message."]
608pub const ArkWeb_NetError_ARKWEB_ERR_SSL_NO_RENEGOTIATION: ArkWeb_NetError = -123;
609#[doc = " @error Winsock sometimes reports more data written than passed.  This is probably\n        due to a broken LSP."]
610pub const ArkWeb_NetError_ARKWEB_ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES: ArkWeb_NetError = -124;
611#[doc = " @error An SSL peer sent us a fatal decompression_failure alert. This typically\n        occurs when a peer selects DEFLATE compression in the mistaken belief that\n        it supports it."]
612pub const ArkWeb_NetError_ARKWEB_ERR_SSL_DECOMPRESSION_FAILURE_ALERT: ArkWeb_NetError = -125;
613#[doc = " @error An SSL peer sent us a fatal bad_record_mac alert. This has been observed\n        from servers with buggy DEFLATE support."]
614pub const ArkWeb_NetError_ARKWEB_ERR_SSL_BAD_RECORD_MAC_ALERT: ArkWeb_NetError = -126;
615#[doc = " @error The proxy requested authentication (for tunnel establishment)."]
616pub const ArkWeb_NetError_ARKWEB_ERR_PROXY_AUTH_REQUESTED: ArkWeb_NetError = -127;
617#[doc = " @error Could not create a connection to the proxy server. An error occurred\n        either in resolving its name, or in connecting a socket to it.\n        Note that this does NOT include failures during the actual \"CONNECT\" method\n        of an HTTP proxy."]
618pub const ArkWeb_NetError_ARKWEB_ERR_PROXY_CONNECTION_FAILED: ArkWeb_NetError = -130;
619#[doc = " @error A mandatory proxy configuration could not be used. Currently this means\n        that a mandatory PAC script could not be fetched, parsed or executed."]
620pub const ArkWeb_NetError_ARKWEB_ERR_MANDATORY_PROXY_CONFIGURATION_FAILED: ArkWeb_NetError = -131;
621#[doc = " @error We've hit the max socket limit for the socket pool while preconnecting.  We\n        don't bother trying to preconnect more sockets."]
622pub const ArkWeb_NetError_ARKWEB_ERR_PRECONNECT_MAX_SOCKET_LIMIT: ArkWeb_NetError = -133;
623#[doc = " @error The permission to use the SSL client certificate's private key was denied."]
624pub const ArkWeb_NetError_ARKWEB_ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED: ArkWeb_NetError =
625    -134;
626#[doc = " @error The SSL client certificate has no private key."]
627pub const ArkWeb_NetError_ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY: ArkWeb_NetError = -135;
628#[doc = " @error The certificate presented by the HTTPS Proxy was invalid."]
629pub const ArkWeb_NetError_ARKWEB_ERR_PROXY_CERTIFICATE_INVALID: ArkWeb_NetError = -136;
630#[doc = " @error An error occurred when trying to do a name resolution (DNS)."]
631pub const ArkWeb_NetError_ARKWEB_ERR_NAME_RESOLUTION_FAILED: ArkWeb_NetError = -137;
632#[doc = " @error Permission to access the network was denied. This is used to distinguish\n        errors that were most likely caused by a firewall from other access denied\n        errors. See also ERR_ACCESS_DENIED."]
633pub const ArkWeb_NetError_ARKWEB_ERR_NETWORK_ACCESS_DENIED: ArkWeb_NetError = -138;
634#[doc = " @error The request throttler module cancelled this request to avoid DDOS."]
635pub const ArkWeb_NetError_ARKWEB_ERR_TEMPORARILY_THROTTLED: ArkWeb_NetError = -139;
636#[doc = " @error A request to create an SSL tunnel connection through the HTTPS proxy\n        received a 302 (temporary redirect, response.  The response body might\n        include a description of why the request failed."]
637pub const ArkWeb_NetError_ARKWEB_ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT: ArkWeb_NetError = -140;
638#[doc = " @error We were unable to sign the CertificateVerify data of an SSL client auth\n        handshake with the client certificate's private key.\n        Possible causes for this include the user implicitly or explicitly\n        denying access to the private key, the private key may not be valid for\n        signing, the key may be relying on a cached handle which is no longer\n        valid, or the CSP won't allow arbitrary data to be signed."]
639pub const ArkWeb_NetError_ARKWEB_ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED: ArkWeb_NetError = -141;
640#[doc = " @error The message was too large for the transport. (for example a UDP message\n        which exceeds size threshold)."]
641pub const ArkWeb_NetError_ARKWEB_ERR_MSG_TOO_BIG: ArkWeb_NetError = -142;
642#[doc = " @error Websocket protocol error. Indicates that we are terminating the connection\n        due to a malformed frame or other protocol violation."]
643pub const ArkWeb_NetError_ARKWEB_ERR_WS_PROTOCOL_ERROR: ArkWeb_NetError = -145;
644#[doc = " @error Returned when attempting to bind an address that is already in use."]
645pub const ArkWeb_NetError_ARKWEB_ERR_ADDRESS_IN_USE: ArkWeb_NetError = -147;
646#[doc = " @error An operation failed because the SSL handshake has not completed."]
647pub const ArkWeb_NetError_ARKWEB_ERR_SSL_HANDSHAKE_NOT_COMPLETED: ArkWeb_NetError = -148;
648#[doc = " @error SSL peer's public key is invalid."]
649pub const ArkWeb_NetError_ARKWEB_ERR_SSL_BAD_PEER_PUBLIC_KEY: ArkWeb_NetError = -149;
650#[doc = " @error The certificate didn't match the built-in public key pins for the host name.\n        The pins are set in net/http/transport_security_state.cc and require that\n        one of a set of public keys exist on the path from the leaf to the root."]
651pub const ArkWeb_NetError_ARKWEB_ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN: ArkWeb_NetError = -150;
652#[doc = " @error Server request for client certificate did not contain any types we support."]
653pub const ArkWeb_NetError_ARKWEB_ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED: ArkWeb_NetError = -151;
654#[doc = " @error An SSL peer sent us a fatal decrypt_error alert. This typically occurs when\n        a peer could not correctly verify a signature (in CertificateVerify or\n        ServerKeyExchange, or validate a Finished message."]
655pub const ArkWeb_NetError_ARKWEB_ERR_SSL_DECRYPT_ERROR_ALERT: ArkWeb_NetError = -153;
656#[doc = " @error There are too many pending WebSocketJob instances, so the new job was not\n        pushed to the queue."]
657pub const ArkWeb_NetError_ARKWEB_ERR_WS_THROTTLE_QUEUE_TOO_LARGE: ArkWeb_NetError = -154;
658#[doc = " @error The SSL server certificate changed in a renegotiation."]
659pub const ArkWeb_NetError_ARKWEB_ERR_SSL_SERVER_CERT_CHANGED: ArkWeb_NetError = -156;
660#[doc = " @error The SSL server sent us a fatal unrecognized_name alert."]
661pub const ArkWeb_NetError_ARKWEB_ERR_SSL_UNRECOGNIZED_NAME_ALERT: ArkWeb_NetError = -159;
662#[doc = " @error Failed to set the socket's receive buffer size as requested."]
663pub const ArkWeb_NetError_ARKWEB_ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR: ArkWeb_NetError = -160;
664#[doc = " @error Failed to set the socket's send buffer size as requested."]
665pub const ArkWeb_NetError_ARKWEB_ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR: ArkWeb_NetError = -161;
666#[doc = " @error Failed to set the socket's receive buffer size as requested, despite success\n        return code from setsockopt."]
667pub const ArkWeb_NetError_ARKWEB_ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE: ArkWeb_NetError =
668    -162;
669#[doc = " @error Failed to set the socket's send buffer size as requested, despite success\n        return code from setsockopt."]
670pub const ArkWeb_NetError_ARKWEB_ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE: ArkWeb_NetError = -163;
671#[doc = " @error Failed to import a client certificate from the platform store into the SSL\n        library."]
672pub const ArkWeb_NetError_ARKWEB_ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT: ArkWeb_NetError = -164;
673#[doc = " @error Resolving a hostname to an IP address list included the IPv4 address\n        \"127.0.53.53\". This is a special IP address which ICANN has recommended to\n        indicate there was a name collision, and alert admins to a potential\n        problem."]
674pub const ArkWeb_NetError_ARKWEB_ERR_ICANN_NAME_COLLISION: ArkWeb_NetError = -166;
675#[doc = " @error The SSL server presented a certificate which could not be decoded. This is\n        not a certificate error code as no X509Certificate object is available. This\n        error is fatal."]
676pub const ArkWeb_NetError_ARKWEB_ERR_SSL_SERVER_CERT_BAD_FORMAT: ArkWeb_NetError = -167;
677#[doc = " @error Certificate Transparency: Received a signed tree head that failed to parse."]
678pub const ArkWeb_NetError_ARKWEB_ERR_CT_STH_PARSING_FAILED: ArkWeb_NetError = -168;
679#[doc = " @error Certificate Transparency: Received a signed tree head whose JSON parsing was\n        OK but was missing some of the fields."]
680pub const ArkWeb_NetError_ARKWEB_ERR_CT_STH_INCOMPLETE: ArkWeb_NetError = -169;
681#[doc = " @error The attempt to reuse a connection to send proxy auth credentials failed\n        before the AuthController was used to generate credentials. The caller should\n        reuse the controller with a new connection. This error is only used\n        internally by the network stack."]
682pub const ArkWeb_NetError_ARKWEB_ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH: ArkWeb_NetError =
683    -170;
684#[doc = " @error Certificate Transparency: Failed to parse the received consistency proof."]
685pub const ArkWeb_NetError_ARKWEB_ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED: ArkWeb_NetError = -171;
686#[doc = " @error The SSL server required an unsupported cipher suite that has since been\n        removed. This error will temporarily be signaled on a fallback for one or two\n        releases immediately following a cipher suite's removal, after which the\n        fallback will be removed."]
687pub const ArkWeb_NetError_ARKWEB_ERR_SSL_OBSOLETE_CIPHER: ArkWeb_NetError = -172;
688#[doc = " @error When a WebSocket handshake is done successfully and the connection has been\n        upgraded, the URLRequest is cancelled with this error code."]
689pub const ArkWeb_NetError_ARKWEB_ERR_WS_UPGRADE: ArkWeb_NetError = -173;
690#[doc = " @error Socket ReadIfReady support is not implemented. This error should not be user\n        visible, because the normal Read(, method is used as a fallback."]
691pub const ArkWeb_NetError_ARKWEB_ERR_READ_IF_READY_NOT_IMPLEMENTED: ArkWeb_NetError = -174;
692#[doc = " @error No socket buffer space is available."]
693pub const ArkWeb_NetError_ARKWEB_ERR_NO_BUFFER_SPACE: ArkWeb_NetError = -176;
694#[doc = " @error There were no common signature algorithms between our client certificate\n        private key and the server's preferences."]
695pub const ArkWeb_NetError_ARKWEB_ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS: ArkWeb_NetError = -177;
696#[doc = " @error TLS 1.3 early data was rejected by the server. This will be received before\n        any data is returned from the socket. The request should be retried with\n        early data disabled."]
697pub const ArkWeb_NetError_ARKWEB_ERR_EARLY_DATA_REJECTED: ArkWeb_NetError = -178;
698#[doc = " @error TLS 1.3 early data was offered, but the server responded with TLS 1.2 or\n        earlier. This is an internal error code to account for a\n        backwards-compatibility issue with early data and TLS 1.2. It will be\n        received before any data is returned from the socket. The request should be\n        retried with early data disabled.\n        See https://tools.ietf.org/html/rfc8446#appendix-D.3 for details."]
699pub const ArkWeb_NetError_ARKWEB_ERR_WRONG_VERSION_ON_EARLY_DATA: ArkWeb_NetError = -179;
700#[doc = " @error TLS 1.3 was enabled, but a lower version was negotiated and the server\n        returned a value indicating it supported TLS 1.3. This is part of a security\n        check in TLS 1.3, but it may also indicate the user is behind a buggy\n        TLS-terminating proxy which implemented TLS 1.2 incorrectly. (See\n        rhttps://crbug.com/boringssl/226.,"]
701pub const ArkWeb_NetError_ARKWEB_ERR_TLS13_DOWNGRADE_DETECTED: ArkWeb_NetError = -180;
702#[doc = " @error The server's certificate has a keyUsage extension incompatible with the\n        negotiated TLS key exchange method."]
703pub const ArkWeb_NetError_ARKWEB_ERR_SSL_KEY_USAGE_INCOMPATIBLE: ArkWeb_NetError = -181;
704#[doc = " @error The ECHConfigList fetched over DNS cannot be parsed."]
705pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_ECH_CONFIG_LIST: ArkWeb_NetError = -182;
706#[doc = " @error ECH was enabled, but the server was unable to decrypt the encrypted\n        ClientHello."]
707pub const ArkWeb_NetError_ARKWEB_ERR_ECH_NOT_NEGOTIATED: ArkWeb_NetError = -183;
708#[doc = " @error ECH was enabled, the server was unable to decrypt the encrypted ClientHello,\n        and additionally did not present a certificate valid for the public name."]
709pub const ArkWeb_NetError_ARKWEB_ERR_ECH_FALLBACK_CERTIFICATE_INVALID: ArkWeb_NetError = -184;
710#[doc = " @error The server responded with a certificate whose common name did not match\n        the host name.  This could mean:\n        1. An attacker has redirected our traffic to their server and is\n           presenting a certificate for which they know the private key.\n        2. The server is misconfigured and responding with the wrong cert.\n        3. The user is on a wireless network and is being redirected to the\n           network's login page.\n        4. The OS has used a DNS search suffix and the server doesn't have\n           a certificate for the abbreviated name in the address bar."]
711pub const ArkWeb_NetError_ARKWEB_ERR_CERT_COMMON_NAME_INVALID: ArkWeb_NetError = -200;
712#[doc = " @error The server responded with a certificate that, by our clock, appears to\n        either not yet be valid or to have expired.  This could mean:\n        1. An attacker is presenting an old certificate for which they have\n           managed to obtain the private key.\n        2. The server is misconfigured and is not presenting a valid cert.\n        3. Our clock is wrong."]
713pub const ArkWeb_NetError_ARKWEB_ERR_CERT_DATE_INVALID: ArkWeb_NetError = -201;
714#[doc = " @error The server responded with a certificate that is signed by an authority\n        we don't trust.  The could mean:\n        1. An attacker has substituted the real certificate for a cert that\n           contains their public key and is signed by their cousin.\n        2. The server operator has a legitimate certificate from a CA we don't\n           know about, but should trust.\n        3. The server is presenting a self-signed certificate, providing no\n           defense against active attackers (but foiling passive attackers)."]
715pub const ArkWeb_NetError_ARKWEB_ERR_CERT_AUTHORITY_INVALID: ArkWeb_NetError = -202;
716#[doc = " @error The server responded with a certificate that contains errors.\n        This error is not recoverable.\n        MSDN describes this error as follows:\n           \"The SSL certificate contains errors.\"\n        NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency,\n        use that code instead of this one from now on."]
717pub const ArkWeb_NetError_ARKWEB_ERR_CERT_CONTAINS_ERRORS: ArkWeb_NetError = -203;
718#[doc = " @error The certificate has no mechanism for determining if it is revoked.  In\n        effect, this certificate cannot be revoked."]
719pub const ArkWeb_NetError_ARKWEB_ERR_CERT_NO_REVOCATION_MECHANISM: ArkWeb_NetError = -204;
720#[doc = " @error Revocation information for the security certificate for this site is not\n        available.  This could mean:\n        1. An attacker has compromised the private key in the certificate and is\n           blocking our attempt to find out that the cert was revoked.\n        2. The certificate is unrevoked, but the revocation server is busy or\n           unavailable."]
721pub const ArkWeb_NetError_ARKWEB_ERR_CERT_UNABLE_TO_CHECK_REVOCATION: ArkWeb_NetError = -205;
722#[doc = " @error The server responded with a certificate has been revoked.\n        We have the capability to ignore this error, but it is probably not the\n        thing to do."]
723pub const ArkWeb_NetError_ARKWEB_ERR_CERT_REVOKED: ArkWeb_NetError = -206;
724#[doc = " @error The server responded with a certificate that is invalid.\n        This error is not recoverable.\n        MSDN describes this error as follows:\n           \"The SSL certificate is invalid.\""]
725pub const ArkWeb_NetError_ARKWEB_ERR_CERT_INVALID: ArkWeb_NetError = -207;
726#[doc = " @error The server responded with a certificate that is signed using a weak\n        signature algorithm."]
727pub const ArkWeb_NetError_ARKWEB_ERR_CERT_WEAK_SIGNATURE_ALGORITHM: ArkWeb_NetError = -208;
728#[doc = " @error The host name specified in the certificate is not unique."]
729pub const ArkWeb_NetError_ARKWEB_ERR_CERT_NON_UNIQUE_NAME: ArkWeb_NetError = -210;
730#[doc = " @error The server responded with a certificate that contains a weak key (e.g.\n        a too-small RSA key)."]
731pub const ArkWeb_NetError_ARKWEB_ERR_CERT_WEAK_KEY: ArkWeb_NetError = -211;
732#[doc = " @error The certificate claimed DNS names that are in violation of name constraints."]
733pub const ArkWeb_NetError_ARKWEB_ERR_CERT_NAME_CONSTRAINT_VIOLATION: ArkWeb_NetError = -212;
734#[doc = " @error The certificate's validity period is too long."]
735pub const ArkWeb_NetError_ARKWEB_ERR_CERT_VALIDITY_TOO_LONG: ArkWeb_NetError = -213;
736#[doc = " @error Certificate Transparency was required for this connection, but the server\n        did not provide CT information that complied with the policy."]
737pub const ArkWeb_NetError_ARKWEB_ERR_CERTIFICATE_TRANSPARENCY_REQUIRED: ArkWeb_NetError = -214;
738#[doc = " @error The certificate chained to a legacy Symantec root that is no longer trusted."]
739pub const ArkWeb_NetError_ARKWEB_ERR_CERT_SYMANTEC_LEGACY: ArkWeb_NetError = -215;
740#[doc = " @error The certificate is known to be used for interception by an entity other\n        the device owner."]
741pub const ArkWeb_NetError_ARKWEB_ERR_CERT_KNOWN_INTERCEPTION_BLOCKED: ArkWeb_NetError = -217;
742#[doc = " @error The connection uses an obsolete version of SSL/TLS or cipher."]
743pub const ArkWeb_NetError_ARKWEB_ERR_SSL_OBSOLETE_VERSION_OR_CIPHER: ArkWeb_NetError = -218;
744#[doc = " @error The value immediately past the last certificate error code."]
745pub const ArkWeb_NetError_ARKWEB_ERR_CERT_END: ArkWeb_NetError = -219;
746#[doc = " @error The URL is invalid."]
747pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_URL: ArkWeb_NetError = -300;
748#[doc = " @error The scheme of the URL is disallowed."]
749pub const ArkWeb_NetError_ARKWEB_ERR_DISALLOWED_URL_SCHEME: ArkWeb_NetError = -301;
750#[doc = " @error The scheme of the URL is unknown."]
751pub const ArkWeb_NetError_ARKWEB_ERR_UNKNOWN_URL_SCHEME: ArkWeb_NetError = -302;
752#[doc = " @error Attempting to load an URL resulted in a redirect to an invalid URL."]
753pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_REDIRECT: ArkWeb_NetError = -303;
754#[doc = " @error Attempting to load an URL resulted in too many redirects."]
755pub const ArkWeb_NetError_ARKWEB_ERR_TOO_MANY_REDIRECTS: ArkWeb_NetError = -310;
756#[doc = " @error Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect\n        to file:// is considered unsafe)."]
757pub const ArkWeb_NetError_ARKWEB_ERR_UNSAFE_REDIRECT: ArkWeb_NetError = -311;
758#[doc = " @error Attempting to load an URL with an unsafe port number."]
759pub const ArkWeb_NetError_ARKWEB_ERR_UNSAFE_PORT: ArkWeb_NetError = -312;
760#[doc = " @error The server's response was invalid."]
761pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_RESPONSE: ArkWeb_NetError = -320;
762#[doc = " @error Error in chunked transfer encoding."]
763pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_CHUNKED_ENCODING: ArkWeb_NetError = -321;
764#[doc = " @error The server did not support the request method."]
765pub const ArkWeb_NetError_ARKWEB_ERR_METHOD_UNSUPPORTED: ArkWeb_NetError = -322;
766#[doc = " @error The response was 407 (Proxy Authentication Required,, yet we did not send\n        the request to a proxy."]
767pub const ArkWeb_NetError_ARKWEB_ERR_UNEXPECTED_PROXY_AUTH: ArkWeb_NetError = -323;
768#[doc = " @error The server closed the connection without sending any data."]
769pub const ArkWeb_NetError_ARKWEB_ERR_EMPTY_RESPONSE: ArkWeb_NetError = -324;
770#[doc = " @error The headers section of the response is too large."]
771pub const ArkWeb_NetError_ARKWEB_ERR_RESPONSE_HEADERS_TOO_BIG: ArkWeb_NetError = -325;
772#[doc = " @error The evaluation of the PAC script failed."]
773pub const ArkWeb_NetError_ARKWEB_ERR_PAC_SCRIPT_FAILED: ArkWeb_NetError = -327;
774#[doc = " @error The response was 416 (Requested range not satisfiable, and the server cannot\n        satisfy the range requested."]
775pub const ArkWeb_NetError_ARKWEB_ERR_REQUEST_RANGE_NOT_SATISFIABLE: ArkWeb_NetError = -328;
776#[doc = " @error The identity used for authentication is invalid."]
777pub const ArkWeb_NetError_ARKWEB_ERR_MALFORMED_IDENTITY: ArkWeb_NetError = -329;
778#[doc = " @error Content decoding of the response body failed."]
779pub const ArkWeb_NetError_ARKWEB_ERR_CONTENT_DECODING_FAILED: ArkWeb_NetError = -330;
780#[doc = " @error An operation could not be completed because all network IO\n        is suspended."]
781pub const ArkWeb_NetError_ARKWEB_ERR_NETWORK_IO_SUSPENDED: ArkWeb_NetError = -331;
782#[doc = " @error FLIP data received without receiving a SYN_REPLY on the stream."]
783pub const ArkWeb_NetError_ARKWEB_ERR_SYN_REPLY_NOT_RECEIVED: ArkWeb_NetError = -332;
784#[doc = " @error Converting the response to target encoding failed."]
785pub const ArkWeb_NetError_ARKWEB_ERR_ENCODING_CONVERSION_FAILED: ArkWeb_NetError = -333;
786#[doc = " @error The server sent an FTP directory listing in a format we do not understand."]
787pub const ArkWeb_NetError_ARKWEB_ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT: ArkWeb_NetError =
788    -334;
789#[doc = " @error There are no supported proxies in the provided list."]
790pub const ArkWeb_NetError_ARKWEB_ERR_NO_SUPPORTED_PROXIES: ArkWeb_NetError = -336;
791#[doc = " @error There is an HTTP/2 protocol error."]
792pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_PROTOCOL_ERROR: ArkWeb_NetError = -337;
793#[doc = " @error Credentials could not be established during HTTP Authentication."]
794pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_AUTH_CREDENTIALS: ArkWeb_NetError = -338;
795#[doc = " @error An HTTP Authentication scheme was tried which is not supported on this\n        machine."]
796pub const ArkWeb_NetError_ARKWEB_ERR_UNSUPPORTED_AUTH_SCHEME: ArkWeb_NetError = -339;
797#[doc = " @error Detecting the encoding of the response failed."]
798pub const ArkWeb_NetError_ARKWEB_ERR_ENCODING_DETECTION_FAILED: ArkWeb_NetError = -340;
799#[doc = " @error (GSSAPI, No Kerberos credentials were available during HTTP Authentication."]
800pub const ArkWeb_NetError_ARKWEB_ERR_MISSING_AUTH_CREDENTIALS: ArkWeb_NetError = -341;
801#[doc = " @error An unexpected, but documented, SSPI or GSSAPI status code was returned."]
802pub const ArkWeb_NetError_ARKWEB_ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS: ArkWeb_NetError = -342;
803#[doc = " @error The environment was not set up correctly for authentication (for\n        example, no KDC could be found or the principal is unknown."]
804pub const ArkWeb_NetError_ARKWEB_ERR_MISCONFIGURED_AUTH_ENVIRONMENT: ArkWeb_NetError = -343;
805#[doc = " @error An undocumented SSPI or GSSAPI status code was returned."]
806pub const ArkWeb_NetError_ARKWEB_ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS: ArkWeb_NetError = -344;
807#[doc = " @error The HTTP response was too big to drain."]
808pub const ArkWeb_NetError_ARKWEB_ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN: ArkWeb_NetError = -345;
809#[doc = " @error The HTTP response contained multiple distinct Content-Length headers."]
810pub const ArkWeb_NetError_ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH: ArkWeb_NetError =
811    -346;
812#[doc = " @error HTTP/2 headers have been received, but not all of them - status or version\n        headers are missing, so we're expecting additional frames to complete them."]
813pub const ArkWeb_NetError_ARKWEB_ERR_INCOMPLETE_HTTP2_HEADERS: ArkWeb_NetError = -347;
814#[doc = " @error No PAC URL configuration could be retrieved from DHCP. This can indicate\n        either a failure to retrieve the DHCP configuration, or that there was no\n        PAC URL configured in DHCP."]
815pub const ArkWeb_NetError_ARKWEB_ERR_PAC_NOT_IN_DHCP: ArkWeb_NetError = -348;
816#[doc = " @error The HTTP response contained multiple Content-Disposition headers."]
817pub const ArkWeb_NetError_ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION:
818    ArkWeb_NetError = -349;
819#[doc = " @error The HTTP response contained multiple Location headers."]
820pub const ArkWeb_NetError_ARKWEB_ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION: ArkWeb_NetError = -350;
821#[doc = " @error HTTP/2 server refused the request without processing, and sent either a\n        GOAWAY frame with error code NO_ERROR and Last-Stream-ID lower than the\n        stream id corresponding to the request indicating that this request has not\n        been processed yet, or a RST_STREAM frame with error code REFUSED_STREAM.\n        Client MAY retry (on a different connection).  See RFC7540 Section 8.1.4."]
822pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_SERVER_REFUSED_STREAM: ArkWeb_NetError = -351;
823#[doc = " @error HTTP/2 server didn't respond to the PING message."]
824pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_PING_FAILED: ArkWeb_NetError = -352;
825#[doc = " @error The HTTP response body transferred fewer bytes than were advertised by the\n        Content-Length header when the connection is closed."]
826pub const ArkWeb_NetError_ARKWEB_ERR_CONTENT_LENGTH_MISMATCH: ArkWeb_NetError = -354;
827#[doc = " @error The HTTP response body is transferred with Chunked-Encoding, but the\n        terminating zero-length chunk was never sent when the connection is closed."]
828pub const ArkWeb_NetError_ARKWEB_ERR_INCOMPLETE_CHUNKED_ENCODING: ArkWeb_NetError = -355;
829#[doc = " @error There is a QUIC protocol error."]
830pub const ArkWeb_NetError_ARKWEB_ERR_QUIC_PROTOCOL_ERROR: ArkWeb_NetError = -356;
831#[doc = " @error The HTTP headers were truncated by an EOF."]
832pub const ArkWeb_NetError_ARKWEB_ERR_RESPONSE_HEADERS_TRUNCATED: ArkWeb_NetError = -357;
833#[doc = " @error The QUIC crypto handshake failed.  This means that the server was unable\n        to read any requests sent, so they may be resent."]
834pub const ArkWeb_NetError_ARKWEB_ERR_QUIC_HANDSHAKE_FAILED: ArkWeb_NetError = -358;
835#[doc = " @error Transport security is inadequate for the HTTP/2 version."]
836pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY: ArkWeb_NetError = -360;
837#[doc = " @error The peer violated HTTP/2 flow control."]
838pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_FLOW_CONTROL_ERROR: ArkWeb_NetError = -361;
839#[doc = " @error The peer sent an improperly sized HTTP/2 frame."]
840pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_FRAME_SIZE_ERROR: ArkWeb_NetError = -362;
841#[doc = " @error Decoding or encoding of compressed HTTP/2 headers failed."]
842pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_COMPRESSION_ERROR: ArkWeb_NetError = -363;
843#[doc = " @error Proxy Auth Requested without a valid Client Socket Handle."]
844pub const ArkWeb_NetError_ARKWEB_ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION: ArkWeb_NetError =
845    -364;
846#[doc = " @error HTTP_1_1_REQUIRED error code received on HTTP/2 session."]
847pub const ArkWeb_NetError_ARKWEB_ERR_HTTP_1_1_REQUIRED: ArkWeb_NetError = -365;
848#[doc = " @error HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy."]
849pub const ArkWeb_NetError_ARKWEB_ERR_PROXY_HTTP_1_1_REQUIRED: ArkWeb_NetError = -366;
850#[doc = " @error The PAC script terminated fatally and must be reloaded."]
851pub const ArkWeb_NetError_ARKWEB_ERR_PAC_SCRIPT_TERMINATED: ArkWeb_NetError = -367;
852#[doc = " @error The server was expected to return an HTTP/1.x response, but did not. Rather\n        than treat it as HTTP/0.9, this error is returned."]
853pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_HTTP_RESPONSE: ArkWeb_NetError = -370;
854#[doc = " @error Initializing content decoding failed."]
855pub const ArkWeb_NetError_ARKWEB_ERR_CONTENT_DECODING_INIT_FAILED: ArkWeb_NetError = -371;
856#[doc = " @error Received HTTP/2 RST_STREAM frame with NO_ERROR error code.  This error should\n        be handled internally by HTTP/2 code, and should not make it above the\n        SpdyStream layer."]
857pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED: ArkWeb_NetError = -372;
858#[doc = " @error The pushed stream claimed by the request is no longer available."]
859pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_PUSHED_STREAM_NOT_AVAILABLE: ArkWeb_NetError = -373;
860#[doc = " @error A pushed stream was claimed and later reset by the server. When this happens,\n        the request should be retried."]
861pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER: ArkWeb_NetError =
862    -374;
863#[doc = " @error An HTTP transaction was retried too many times due for authentication or\n        invalid certificates."]
864pub const ArkWeb_NetError_ARKWEB_ERR_TOO_MANY_RETRIES: ArkWeb_NetError = -375;
865#[doc = " @error Received an HTTP/2 frame on a closed stream."]
866pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_STREAM_CLOSED: ArkWeb_NetError = -376;
867#[doc = " @error Client is refusing an HTTP/2 stream."]
868pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_CLIENT_REFUSED_STREAM: ArkWeb_NetError = -377;
869#[doc = " @error A pushed HTTP/2 stream was claimed by a request based on matching URL and\n        request headers, but the pushed response headers do not match the request."]
870pub const ArkWeb_NetError_ARKWEB_ERR_HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH: ArkWeb_NetError = -378;
871#[doc = " @error The server returned a non-2xx HTTP response code."]
872pub const ArkWeb_NetError_ARKWEB_ERR_HTTP_RESPONSE_CODE_FAILURE: ArkWeb_NetError = -379;
873#[doc = " @error The certificate presented on a QUIC connection does not chain to a known root\n        and the origin connected to is not on a list of domains where unknown roots\n        are allowed."]
874pub const ArkWeb_NetError_ARKWEB_ERR_QUIC_UNKNOWN_CERT_ROOT: ArkWeb_NetError = -380;
875#[doc = " @error A GOAWAY frame has been received indicating that the request has not been\n        processed and is therefore safe to retry on a different connection."]
876pub const ArkWeb_NetError_ARKWEB_ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED: ArkWeb_NetError = -381;
877#[doc = " @error The ACCEPT_CH restart has been triggered too many times."]
878pub const ArkWeb_NetError_ARKWEB_ERR_TOO_MANY_ACCEPT_CH_RESTARTS: ArkWeb_NetError = -382;
879#[doc = " @error The IP address space of the remote endpoint differed from the previous\n        observed value during the same request. Any cache entry for the affected\n        request should be invalidated."]
880pub const ArkWeb_NetError_ARKWEB_ERR_INCONSISTENT_IP_ADDRESS_SPACE: ArkWeb_NetError = -383;
881#[doc = " @error The IP address space of the cached remote endpoint is blocked by local\n        network access check."]
882pub const ArkWeb_NetError_ARKWEB_ERR_CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY : ArkWeb_NetError = - 384 ;
883#[doc = " @error The cache does not have the requested entry."]
884pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_MISS: ArkWeb_NetError = -400;
885#[doc = " @error Unable to read from the disk cache."]
886pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_READ_FAILURE: ArkWeb_NetError = -401;
887#[doc = " @error Unable to write to the disk cache."]
888pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_WRITE_FAILURE: ArkWeb_NetError = -402;
889#[doc = " @error The operation is not supported for this entry."]
890pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_OPERATION_UNSUPPORTED: ArkWeb_NetError = -403;
891#[doc = " @error The disk cache is unable to open this entry."]
892pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_OPEN_FAILURE: ArkWeb_NetError = -404;
893#[doc = " @error The disk cache is unable to create this entry."]
894pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_CREATE_FAILURE: ArkWeb_NetError = -405;
895#[doc = " @error Multiple transactions are racing to create disk cache entries."]
896pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_RACE: ArkWeb_NetError = -406;
897#[doc = " @error The cache was unable to read a checksum record on an entry."]
898pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_CHECKSUM_READ_FAILURE: ArkWeb_NetError = -407;
899#[doc = " @error The cache found an entry with an invalid checksum."]
900pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_CHECKSUM_MISMATCH: ArkWeb_NetError = -408;
901#[doc = " @error Internal error code for the HTTP cache."]
902pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_LOCK_TIMEOUT: ArkWeb_NetError = -409;
903#[doc = " @error Received a challenge after the transaction has read some data, and the\n        credentials aren't available."]
904pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_AUTH_FAILURE_AFTER_READ: ArkWeb_NetError = -410;
905#[doc = " @error Internal not-quite error code for the HTTP cache."]
906pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_ENTRY_NOT_SUITABLE: ArkWeb_NetError = -411;
907#[doc = " @error The disk cache is unable to doom this entry."]
908pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_DOOM_FAILURE: ArkWeb_NetError = -412;
909#[doc = " @error The disk cache is unable to open or create this entry."]
910pub const ArkWeb_NetError_ARKWEB_ERR_CACHE_OPEN_OR_CREATE_FAILURE: ArkWeb_NetError = -413;
911#[doc = " @error The server's response was insecure (e.g. there was a cert error)."]
912pub const ArkWeb_NetError_ARKWEB_ERR_INSECURE_RESPONSE: ArkWeb_NetError = -501;
913#[doc = " @error An attempt to import a client certificate failed, as the user's key\n        database lacked a corresponding private key."]
914pub const ArkWeb_NetError_ARKWEB_ERR_NO_PRIVATE_KEY_FOR_CERT: ArkWeb_NetError = -502;
915#[doc = " @error An error adding a certificate to the OS certificate database."]
916pub const ArkWeb_NetError_ARKWEB_ERR_ADD_USER_CERT_FAILED: ArkWeb_NetError = -503;
917#[doc = " @error An error occurred while handling a signed exchange."]
918pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_SIGNED_EXCHANGE: ArkWeb_NetError = -504;
919#[doc = " @error An error occurred while handling a Web Bundle source."]
920pub const ArkWeb_NetError_ARKWEB_ERR_INVALID_WEB_BUNDLE: ArkWeb_NetError = -505;
921#[doc = " @error A Trust Tokens protocol operation-executing request failed for one of a\n        number of reasons (precondition failure, internal error, bad response)."]
922pub const ArkWeb_NetError_ARKWEB_ERR_TRUST_TOKEN_OPERATION_FAILED: ArkWeb_NetError = -506;
923#[doc = " @error When handling a Trust Tokens protocol operation-executing request, the system\n        was able to execute the request's Trust Tokens operation without sending the\n        request to its destination."]
924pub const ArkWeb_NetError_ARKWEB_ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST:
925    ArkWeb_NetError = -507;
926#[doc = " @error A generic error for failed FTP control connection command.\n        If possible, please use or add a more specific error code."]
927pub const ArkWeb_NetError_ARKWEB_ERR_FTP_FAILED: ArkWeb_NetError = -601;
928#[doc = " @error The server cannot fulfill the request at this point. This is a temporary error.\n        FTP response code 421."]
929pub const ArkWeb_NetError_ARKWEB_ERR_FTP_SERVICE_UNAVAILABLE: ArkWeb_NetError = -602;
930#[doc = " @error The server has aborted the transfer.\n        FTP response code 426."]
931pub const ArkWeb_NetError_ARKWEB_ERR_FTP_TRANSFER_ABORTED: ArkWeb_NetError = -603;
932#[doc = " @error The file is busy, or some other temporary error condition on opening the file.\n        FTP response code 450."]
933pub const ArkWeb_NetError_ARKWEB_ERR_FTP_FILE_BUSY: ArkWeb_NetError = -604;
934#[doc = " @error Server rejected our command because of syntax errors.\n        FTP response codes 500, 501."]
935pub const ArkWeb_NetError_ARKWEB_ERR_FTP_SYNTAX_ERROR: ArkWeb_NetError = -605;
936#[doc = " @error Server does not support the command we issued.\n        FTP response codes 502, 504."]
937pub const ArkWeb_NetError_ARKWEB_ERR_FTP_COMMAND_UNSUPPORTED: ArkWeb_NetError = -606;
938#[doc = " @error Server rejected our command because we didn't issue the commands in right order.\n        FTP response code 503."]
939pub const ArkWeb_NetError_ARKWEB_ERR_FTP_BAD_COMMAND_SEQUENCE: ArkWeb_NetError = -607;
940#[doc = " @error PKCS #12 import failed due to incorrect password."]
941pub const ArkWeb_NetError_ARKWEB_ERR_PKCS12_IMPORT_BAD_PASSWORD: ArkWeb_NetError = -701;
942#[doc = " @error PKCS #12 import failed due to other error."]
943pub const ArkWeb_NetError_ARKWEB_ERR_PKCS12_IMPORT_FAILED: ArkWeb_NetError = -702;
944#[doc = " @error CA import failed - not a CA cert."]
945pub const ArkWeb_NetError_ARKWEB_ERR_IMPORT_CA_CERT_NOT_CA: ArkWeb_NetError = -703;
946#[doc = " @error Import failed - certificate already exists in database."]
947pub const ArkWeb_NetError_ARKWEB_ERR_IMPORT_CERT_ALREADY_EXISTS: ArkWeb_NetError = -704;
948#[doc = " @error CA import failed due to some other error."]
949pub const ArkWeb_NetError_ARKWEB_ERR_IMPORT_CA_CERT_FAILED: ArkWeb_NetError = -705;
950#[doc = " @error Server certificate import failed due to some internal error."]
951pub const ArkWeb_NetError_ARKWEB_ERR_IMPORT_SERVER_CERT_FAILED: ArkWeb_NetError = -706;
952#[doc = " @error PKCS #12 import failed due to invalid MAC."]
953pub const ArkWeb_NetError_ARKWEB_ERR_PKCS12_IMPORT_INVALID_MAC: ArkWeb_NetError = -707;
954#[doc = " @error PKCS #12 import failed due to invalid/corrupt file."]
955pub const ArkWeb_NetError_ARKWEB_ERR_PKCS12_IMPORT_INVALID_FILE: ArkWeb_NetError = -708;
956#[doc = " @error PKCS #12 import failed due to unsupported features."]
957pub const ArkWeb_NetError_ARKWEB_ERR_PKCS12_IMPORT_UNSUPPORTED: ArkWeb_NetError = -709;
958#[doc = " @error Key generation failed."]
959pub const ArkWeb_NetError_ARKWEB_ERR_KEY_GENERATION_FAILED: ArkWeb_NetError = -710;
960#[doc = " @error Failure to export private key."]
961pub const ArkWeb_NetError_ARKWEB_ERR_PRIVATE_KEY_EXPORT_FAILED: ArkWeb_NetError = -712;
962#[doc = " @error Self-signed certificate generation failed."]
963pub const ArkWeb_NetError_ARKWEB_ERR_SELF_SIGNED_CERT_GENERATION_FAILED: ArkWeb_NetError = -713;
964#[doc = " @error The certificate database changed in some way."]
965pub const ArkWeb_NetError_ARKWEB_ERR_CERT_DATABASE_CHANGED: ArkWeb_NetError = -714;
966#[doc = " @error The certificate verifier configuration changed in some way."]
967pub const ArkWeb_NetError_ARKWEB_ERR_CERT_VERIFIER_CHANGED: ArkWeb_NetError = -716;
968#[doc = " @error DNS resolver received a malformed response."]
969pub const ArkWeb_NetError_ARKWEB_ERR_DNS_MALFORMED_RESPONSE: ArkWeb_NetError = -800;
970#[doc = " @error DNS server requires TCP."]
971pub const ArkWeb_NetError_ARKWEB_ERR_DNS_SERVER_REQUIRES_TCP: ArkWeb_NetError = -801;
972#[doc = " @error DNS server failed.  This error is returned for all of the following\n        error conditions:\n        1 - Format error - The name server was unable to interpret the query.\n        2 - Server failure - The name server was unable to process this query\n            due to a problem with the name server.\n        4 - Not Implemented - The name server does not support the requested\n            kind of query.\n        5 - Refused - The name server refuses to perform the specified\n            operation for policy reasons."]
973pub const ArkWeb_NetError_ARKWEB_ERR_DNS_SERVER_FAILED: ArkWeb_NetError = -802;
974#[doc = " @error DNS transaction timed out."]
975pub const ArkWeb_NetError_ARKWEB_ERR_DNS_TIMED_OUT: ArkWeb_NetError = -803;
976#[doc = " @error The entry was not found in cache or other local sources, for lookups where\n        only local sources were queried."]
977pub const ArkWeb_NetError_ARKWEB_ERR_DNS_CACHE_MISS: ArkWeb_NetError = -804;
978#[doc = " @error Suffix search list rules prevent resolution of the given host name."]
979pub const ArkWeb_NetError_ARKWEB_ERR_DNS_SEARCH_EMPTY: ArkWeb_NetError = -805;
980#[doc = " @error Failed to sort addresses according to RFC3484."]
981pub const ArkWeb_NetError_ARKWEB_ERR_DNS_SORT_ERROR: ArkWeb_NetError = -806;
982#[doc = " @error Failed to resolve the hostname of a DNS-over-HTTPS server."]
983pub const ArkWeb_NetError_ARKWEB_ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED:
984    ArkWeb_NetError = -808;
985#[doc = " @error DNS identified the request as disallowed for insecure connection (http/ws).\n        Error should be handled as if an HTTP redirect was received to redirect to\n        https or wss."]
986pub const ArkWeb_NetError_ARKWEB_ERR_DNS_NAME_HTTPS_ONLY: ArkWeb_NetError = -809;
987#[doc = " @error All DNS requests associated with this job have been cancelled."]
988pub const ArkWeb_NetError_ARKWEB_ERR_DNS_REQUEST_CANCELED: ArkWeb_NetError = -810;
989#[doc = " @error The hostname resolution of HTTPS record was expected to be resolved with\n        alpn values of supported protocols, but did not."]
990pub const ArkWeb_NetError_ARKWEB_ERR_DNS_NO_MATCHING_SUPPORTED_ALPN: ArkWeb_NetError = -811;
991pub type ArkWeb_NetError = i32;
992pub const ArkWeb_CustomSchemeOption_OH_ARKWEB_SCHEME_OPTION_NONE: ArkWeb_CustomSchemeOption = 0;
993#[doc = " If ARKWEB_SCHEME_OPTION_STANDARD is set, the scheme will be handled as a standard scheme. The standard\n  schemes need to comply with the URL normalization and parsing rules defined in Section 3.1 of RFC 1738,\n  which can be found in the http://www.ietf.org/rfc/rfc1738.txt."]
994pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_STANDARD: ArkWeb_CustomSchemeOption = 1;
995#[doc = " If ARKWEB_SCHEME_OPTION_LOCAL is set, the same security rules as those applied to the \"file\" URL will be\n  used to handle the scheme."]
996pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_LOCAL: ArkWeb_CustomSchemeOption = 2;
997#[doc = " If ARKWEB_SCHEME_OPTION_DISPLAY_ISOLATED is set, then the scheme can only be displayed from other content\n  hosted using the same scheme."]
998pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_DISPLAY_ISOLATED:
999    ArkWeb_CustomSchemeOption = 4;
1000#[doc = " If ARKWEB_SCHEME_OPTION_SECURE is set, the same security rules as those applied to the \"https\" URL will be\n  used to handle the scheme."]
1001pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_SECURE: ArkWeb_CustomSchemeOption = 8;
1002#[doc = " If ARKWEB_SCHEME_OPTION_CORS_ENABLED is set, then the scheme can be sent CORS requests. In most cases this\n  value should be set when ARKWEB_SCHEME_OPTION_STANDARD is set."]
1003pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_CORS_ENABLED: ArkWeb_CustomSchemeOption =
1004    16;
1005#[doc = " If ARKWEB_SCHEME_OPTION_CSP_BYPASSING is set, then this scheme can bypass Content Security Policy (CSP)\n  checks. In most cases, this value should not be set when ARKWEB_SCHEME_OPTION_STANDARD is set."]
1006pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_CSP_BYPASSING: ArkWeb_CustomSchemeOption =
1007    32;
1008#[doc = " If ARKWEB_SCHEME_OPTION_FETCH_ENABLED is set, then this scheme can perform FETCH API requests."]
1009pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_FETCH_ENABLED: ArkWeb_CustomSchemeOption =
1010    64;
1011#[doc = " If ARKWEB_SCHEME_OPTION_CODE_CACHE_ENABLED is set, then the js of this scheme can generate code cache."]
1012pub const ArkWeb_CustomSchemeOption_ARKWEB_SCHEME_OPTION_CODE_CACHE_ENABLED:
1013    ArkWeb_CustomSchemeOption = 128;
1014#[doc = " @brief Configuration information for custom schemes.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1015pub type ArkWeb_CustomSchemeOption = u32;
1016#[doc = " Top level page."]
1017pub const ArkWeb_ResourceType_MAIN_FRAME: ArkWeb_ResourceType = 0;
1018#[doc = " Frame or Iframe."]
1019pub const ArkWeb_ResourceType_SUB_FRAME: ArkWeb_ResourceType = 1;
1020#[doc = " CSS stylesheet."]
1021pub const ArkWeb_ResourceType_STYLE_SHEET: ArkWeb_ResourceType = 2;
1022#[doc = " External script."]
1023pub const ArkWeb_ResourceType_SCRIPT: ArkWeb_ResourceType = 3;
1024#[doc = " Image(jpg/gif/png/etc)."]
1025pub const ArkWeb_ResourceType_IMAGE: ArkWeb_ResourceType = 4;
1026#[doc = " Font."]
1027pub const ArkWeb_ResourceType_FONT_RESOURCE: ArkWeb_ResourceType = 5;
1028#[doc = " Some other subresource. This is the default type if the actual type is unknown."]
1029pub const ArkWeb_ResourceType_SUB_RESOURCE: ArkWeb_ResourceType = 6;
1030#[doc = " Object (or embed) tag for a plugin, or a resource that a plugin requested."]
1031pub const ArkWeb_ResourceType_OBJECT: ArkWeb_ResourceType = 7;
1032#[doc = " Media resource."]
1033pub const ArkWeb_ResourceType_MEDIA: ArkWeb_ResourceType = 8;
1034#[doc = " Main resource of a dedicated worker."]
1035pub const ArkWeb_ResourceType_WORKER: ArkWeb_ResourceType = 9;
1036#[doc = " Main resource of a shared worker."]
1037pub const ArkWeb_ResourceType_SHARED_WORKER: ArkWeb_ResourceType = 10;
1038#[doc = " Explicitly requested prefetch."]
1039pub const ArkWeb_ResourceType_PREFETCH: ArkWeb_ResourceType = 11;
1040#[doc = " Favicon."]
1041pub const ArkWeb_ResourceType_FAVICON: ArkWeb_ResourceType = 12;
1042#[doc = " XMLHttpRequest."]
1043pub const ArkWeb_ResourceType_XHR: ArkWeb_ResourceType = 13;
1044#[doc = " Ping request for <a ping>/sendBeacon."]
1045pub const ArkWeb_ResourceType_PING: ArkWeb_ResourceType = 14;
1046#[doc = " The main resource of a service worker."]
1047pub const ArkWeb_ResourceType_SERVICE_WORKER: ArkWeb_ResourceType = 15;
1048#[doc = " Report of Content Security Policy violations."]
1049pub const ArkWeb_ResourceType_CSP_REPORT: ArkWeb_ResourceType = 16;
1050#[doc = " Resource that a plugin requested."]
1051pub const ArkWeb_ResourceType_PLUGIN_RESOURCE: ArkWeb_ResourceType = 17;
1052#[doc = " A main-frame service worker navigation preload request."]
1053pub const ArkWeb_ResourceType_NAVIGATION_PRELOAD_MAIN_FRAME: ArkWeb_ResourceType = 19;
1054#[doc = " A sub-frame service worker navigation preload request."]
1055pub const ArkWeb_ResourceType_NAVIGATION_PRELOAD_SUB_FRAME: ArkWeb_ResourceType = 20;
1056#[doc = " @brief Resource type for a request.\n\n These constants match their equivalents in Chromium's ResourceType and should not be renumbered.\\n\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1057pub type ArkWeb_ResourceType = u32;
1058#[repr(C)]
1059#[derive(Debug, Copy, Clone)]
1060pub struct ArkWeb_SchemeHandler_ {
1061    _unused: [u8; 0],
1062}
1063#[doc = " @brief This class is used to intercept requests for a specified scheme.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1064pub type ArkWeb_SchemeHandler = ArkWeb_SchemeHandler_;
1065#[repr(C)]
1066#[derive(Debug, Copy, Clone)]
1067pub struct ArkWeb_ResourceHandler_ {
1068    _unused: [u8; 0],
1069}
1070#[doc = " @brief Used to intercept url requests.\n\n Response headers and body can be sent through ArkWeb_ResourceHandler.\\n\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1071pub type ArkWeb_ResourceHandler = ArkWeb_ResourceHandler_;
1072#[repr(C)]
1073#[derive(Debug, Copy, Clone)]
1074pub struct ArkWeb_Response_ {
1075    _unused: [u8; 0],
1076}
1077#[doc = " @brief The response of the intercepted request.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1078pub type ArkWeb_Response = ArkWeb_Response_;
1079#[repr(C)]
1080#[derive(Debug, Copy, Clone)]
1081pub struct ArkWeb_ResourceRequest_ {
1082    _unused: [u8; 0],
1083}
1084#[doc = " @brief The info of the request.\n\n You can obtain the requested URL, method, post data, and other information through OH_ArkWeb_ResourceRequest.\\n\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1085pub type ArkWeb_ResourceRequest = ArkWeb_ResourceRequest_;
1086#[repr(C)]
1087#[derive(Debug, Copy, Clone)]
1088pub struct ArkWeb_RequestHeaderList_ {
1089    _unused: [u8; 0],
1090}
1091#[doc = " @brief The request headers of the request.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1092pub type ArkWeb_RequestHeaderList = ArkWeb_RequestHeaderList_;
1093#[repr(C)]
1094#[derive(Debug, Copy, Clone)]
1095pub struct ArkWeb_HttpBodyStream_ {
1096    _unused: [u8; 0],
1097}
1098#[doc = " @brief The http body of the request.\n\n Use OH_ArkWebHttpBodyStream_* interface to read the body.\\n\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1099pub type ArkWeb_HttpBodyStream = ArkWeb_HttpBodyStream_;
1100#[doc = " @brief Callback for handling the request.\n\n This will be called on the IO thread.\\n\n\n @param schemeHandler The ArkWeb_SchemeHandler.\n @param resourceRequest Obtain request's information through this.\n @param resourceHandler The ArkWeb_ResourceHandler for the request. It should not be used if intercept is set to\n                        false.\n @param intercept If true will intercept the request, if false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1101pub type ArkWeb_OnRequestStart = ::std::option::Option<
1102    unsafe extern "C" fn(
1103        schemeHandler: *const ArkWeb_SchemeHandler,
1104        resourceRequest: *mut ArkWeb_ResourceRequest,
1105        resourceHandler: *const ArkWeb_ResourceHandler,
1106        intercept: *mut bool,
1107    ),
1108>;
1109#[doc = " @brief Callback when the request is completed.\n\n This will be called on the IO thread.\\n\n Should destroy the resourceRequest by ArkWeb_ResourceRequest_Destroy and use ArkWeb_ResourceHandler_Destroy\\n\n destroy the ArkWeb_ResourceHandler received in ArkWeb_OnRequestStart.\\n\n\n @param schemeHandler The ArkWeb_SchemeHandler.\n @param resourceRequest The ArkWeb_ResourceRequest.\n\n @since 12"]
1110pub type ArkWeb_OnRequestStop = ::std::option::Option<
1111    unsafe extern "C" fn(
1112        schemeHandler: *const ArkWeb_SchemeHandler,
1113        resourceRequest: *const ArkWeb_ResourceRequest,
1114    ),
1115>;
1116#[doc = " @brief Callback when the read operation done.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param buffer The buffer to receive data.\n @param bytesRead Callback after OH_ArkWebHttpBodyStream_Read. bytesRead greater than 0 means that the buffer is\n                  filled with data of bytesRead size. Caller can read from the buffer, and if\n                  OH_ArkWebHttpBodyStream_IsEOF is false, caller can continue to read the remaining data.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1117pub type ArkWeb_HttpBodyStreamReadCallback = ::std::option::Option<
1118    unsafe extern "C" fn(
1119        httpBodyStream: *const ArkWeb_HttpBodyStream,
1120        buffer: *mut u8,
1121        bytesRead: ::std::os::raw::c_int,
1122    ),
1123>;
1124#[doc = " @brief Callback when the read operation done.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param buffer The buffer to receive data.\n @param bytesRead Callback after OH_ArkWebHttpBodyStream_AsyncRead. bytesRead greater than 0 means that\n                  the buffer is filled with data of bytesRead size. Caller can read from the buffer, and if\n                  OH_ArkWebHttpBodyStream_IsEOF is false, caller can continue to read the remaining data.\n\n @since 20"]
1125#[cfg(feature = "api-20")]
1126pub type ArkWeb_HttpBodyStreamAsyncReadCallback = ::std::option::Option<
1127    unsafe extern "C" fn(
1128        httpBodyStream: *const ArkWeb_HttpBodyStream,
1129        buffer: *mut u8,
1130        bytesRead: ::std::os::raw::c_int,
1131    ),
1132>;
1133#[doc = " @brief  Callback when the init operation done.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param result {@link ARKWEB_NET_OK} on success otherwise refer to arkweb_net_error_list.h.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1134pub type ArkWeb_HttpBodyStreamInitCallback = ::std::option::Option<
1135    unsafe extern "C" fn(httpBodyStream: *const ArkWeb_HttpBodyStream, result: ArkWeb_NetError),
1136>;
1137extern "C" {
1138    #[doc = " @brief Destroy the ArkWeb_RequestHeaderList.\n @param requestHeaderList The ArkWeb_RequestHeaderList to be destroyed.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1139    pub fn OH_ArkWebRequestHeaderList_Destroy(requestHeaderList: *mut ArkWeb_RequestHeaderList);
1140}
1141extern "C" {
1142    #[doc = " @brief Get the request headers size.\n @param requestHeaderList The list of request header.\n @return The size of request headers. -1 if requestHeaderList is invalid.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1143    pub fn OH_ArkWebRequestHeaderList_GetSize(
1144        requestHeaderList: *const ArkWeb_RequestHeaderList,
1145    ) -> i32;
1146}
1147extern "C" {
1148    #[doc = " @brief Get the specified request header.\n @param requestHeaderList The list of request header.\n @param index The index of request header.\n @param key The header key. Caller must release the string by OH_ArkWeb_ReleaseString.\n @param value The header value. Caller must release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1149    pub fn OH_ArkWebRequestHeaderList_GetHeader(
1150        requestHeaderList: *const ArkWeb_RequestHeaderList,
1151        index: i32,
1152        key: *mut *mut ::std::os::raw::c_char,
1153        value: *mut *mut ::std::os::raw::c_char,
1154    );
1155}
1156extern "C" {
1157    #[doc = " @brief Set a user data to ArkWeb_ResourceRequest.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param userData The user data to set.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1158    pub fn OH_ArkWebResourceRequest_SetUserData(
1159        resourceRequest: *mut ArkWeb_ResourceRequest,
1160        userData: *mut ::std::os::raw::c_void,
1161    ) -> i32;
1162}
1163extern "C" {
1164    #[doc = " @brief Get the user data from ArkWeb_ResourceRequest.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @return The set user data.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1165    pub fn OH_ArkWebResourceRequest_GetUserData(
1166        resourceRequest: *const ArkWeb_ResourceRequest,
1167    ) -> *mut ::std::os::raw::c_void;
1168}
1169extern "C" {
1170    #[doc = " @brief Get the method of request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param method The request's http method. This function will allocate memory for the method string and caller must\n               release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1171    pub fn OH_ArkWebResourceRequest_GetMethod(
1172        resourceRequest: *const ArkWeb_ResourceRequest,
1173        method: *mut *mut ::std::os::raw::c_char,
1174    );
1175}
1176extern "C" {
1177    #[doc = " @brief Get the url of request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param url The request's url. This function will allocate memory for the url string and caller must release the\n            string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1178    pub fn OH_ArkWebResourceRequest_GetUrl(
1179        resourceRequest: *const ArkWeb_ResourceRequest,
1180        url: *mut *mut ::std::os::raw::c_char,
1181    );
1182}
1183extern "C" {
1184    #[doc = " @brief Create a ArkWeb_HttpBodyStream which used to read the http body.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param httpBodyStream The request's http body. This function will allocate memory for the http body stream and\n                       caller must release the httpBodyStream by OH_ArkWebResourceRequest_DestroyHttpBodyStream.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1185    pub fn OH_ArkWebResourceRequest_GetHttpBodyStream(
1186        resourceRequest: *const ArkWeb_ResourceRequest,
1187        httpBodyStream: *mut *mut ArkWeb_HttpBodyStream,
1188    );
1189}
1190extern "C" {
1191    #[doc = " @brief Destroy the http body stream.\n @param httpBodyStream The httpBodyStream to be destroyed.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1192    pub fn OH_ArkWebResourceRequest_DestroyHttpBodyStream(
1193        httpBodyStream: *mut ArkWeb_HttpBodyStream,
1194    );
1195}
1196extern "C" {
1197    #[doc = " @brief Get the resource type of request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @return The resource type of request. -1 if resourceRequest is invalid.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1198    pub fn OH_ArkWebResourceRequest_GetResourceType(
1199        resourceRequest: *const ArkWeb_ResourceRequest,
1200    ) -> i32;
1201}
1202extern "C" {
1203    #[doc = " @brief Get the url of frame which trigger this request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param frameUrl The url of frame which trigger this request. This function will allocate memory for the url string\n            and caller must release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1204    pub fn OH_ArkWebResourceRequest_GetFrameUrl(
1205        resourceRequest: *const ArkWeb_ResourceRequest,
1206        frameUrl: *mut *mut ::std::os::raw::c_char,
1207    );
1208}
1209extern "C" {
1210    #[doc = " @brief Set a user data to ArkWeb_HttpBodyStream.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param userData The user data to set.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1211    pub fn OH_ArkWebHttpBodyStream_SetUserData(
1212        httpBodyStream: *mut ArkWeb_HttpBodyStream,
1213        userData: *mut ::std::os::raw::c_void,
1214    ) -> i32;
1215}
1216extern "C" {
1217    #[doc = " @brief Get the user data from ArkWeb_HttpBodyStream.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @return The set user data.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1218    pub fn OH_ArkWebHttpBodyStream_GetUserData(
1219        httpBodyStream: *const ArkWeb_HttpBodyStream,
1220    ) -> *mut ::std::os::raw::c_void;
1221}
1222extern "C" {
1223    #[doc = " @brief Set the callback for OH_ArkWebHttpBodyStream_Read.\n\n The result of OH_ArkWebHttpBodyStream_Read will be notified to caller through the readCallback.\\n\n The callback will run in the same thread as OH_ArkWebHttpBodyStream_Read.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param readCallback The callback of read function.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1224    pub fn OH_ArkWebHttpBodyStream_SetReadCallback(
1225        httpBodyStream: *mut ArkWeb_HttpBodyStream,
1226        readCallback: ArkWeb_HttpBodyStreamReadCallback,
1227    ) -> i32;
1228}
1229extern "C" {
1230    #[doc = " @brief Set the callback for OH_ArkWebHttpBodyStream_AsyncRead.\n\n The result of OH_ArkWebHttpBodyStream_AsyncRead will be notified to caller through the\\n\n readCallback. The callback will runs in the ArkWeb worker thread.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param readCallback The callback of read function.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @since 20"]
1231    #[cfg(feature = "api-20")]
1232    pub fn OH_ArkWebHttpBodyStream_SetAsyncReadCallback(
1233        httpBodyStream: *mut ArkWeb_HttpBodyStream,
1234        readCallback: ArkWeb_HttpBodyStreamAsyncReadCallback,
1235    ) -> i32;
1236}
1237extern "C" {
1238    #[doc = " @brief Init the http body stream.\n\n This function must be called before calling any other functions.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param initCallback The callback of init.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1239    pub fn OH_ArkWebHttpBodyStream_Init(
1240        httpBodyStream: *mut ArkWeb_HttpBodyStream,
1241        initCallback: ArkWeb_HttpBodyStreamInitCallback,
1242    ) -> i32;
1243}
1244extern "C" {
1245    #[doc = " @brief Read the http body to the buffer.\n\n The buffer must be larger than the bufLen. We will be reading data from a worker thread to the buffer,\\n\n so should not use the buffer in other threads before the callback to avoid concurrency issues.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param buffer The buffer to receive data.\n @param bufLen The size of bytes to read.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1246    pub fn OH_ArkWebHttpBodyStream_Read(
1247        httpBodyStream: *const ArkWeb_HttpBodyStream,
1248        buffer: *mut u8,
1249        bufLen: ::std::os::raw::c_int,
1250    );
1251}
1252extern "C" {
1253    #[doc = " @brief Read the http body to the buffer.\n\n The buffer must be larger than the bufLen. We will read data from a worker thread to the buffer,\\n\n so should not use the buffer in other threads before the callback to avoid concurrency issues.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @param buffer The buffer to receive data.\n @param bufLen The size of bytes to read.\n\n @since 20"]
1254    #[cfg(feature = "api-20")]
1255    pub fn OH_ArkWebHttpBodyStream_AsyncRead(
1256        httpBodyStream: *const ArkWeb_HttpBodyStream,
1257        buffer: *mut u8,
1258        bufLen: ::std::os::raw::c_int,
1259    );
1260}
1261extern "C" {
1262    #[doc = " @brief Get the total size of the data stream.\n\n When data is chunked or httpBodyStream is invalid, always return zero.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @return The size of data stream.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1263    pub fn OH_ArkWebHttpBodyStream_GetSize(httpBodyStream: *const ArkWeb_HttpBodyStream) -> u64;
1264}
1265extern "C" {
1266    #[doc = " @brief Get the current position of the data stream.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @return The current position of data stream. 0 if httpBodyStream is invalid.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1267    pub fn OH_ArkWebHttpBodyStream_GetPosition(httpBodyStream: *const ArkWeb_HttpBodyStream)
1268        -> u64;
1269}
1270extern "C" {
1271    #[doc = " @brief Get if the data stream is chunked.\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @return True if is chunked; false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1272    pub fn OH_ArkWebHttpBodyStream_IsChunked(httpBodyStream: *const ArkWeb_HttpBodyStream) -> bool;
1273}
1274extern "C" {
1275    #[doc = " @brief Returns true if all data has been consumed from this upload data stream.\n\n For chunked uploads, returns false until the first read attempt.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @return True if all data has been consumed; false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1276    pub fn OH_ArkWebHttpBodyStream_IsEof(httpBodyStream: *const ArkWeb_HttpBodyStream) -> bool;
1277}
1278extern "C" {
1279    #[doc = " @brief Returns true if the upload data in the stream is entirely in memory,\n        and all read requests will succeed synchronously.\n\n Expected to return false for chunked requests.\\n\n\n @param httpBodyStream The ArkWeb_HttpBodyStream.\n @return True if the upload data is in memory; false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1280    pub fn OH_ArkWebHttpBodyStream_IsInMemory(httpBodyStream: *const ArkWeb_HttpBodyStream)
1281        -> bool;
1282}
1283extern "C" {
1284    #[doc = " @brief Destroy the ArkWeb_ResourceRequest.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1285    pub fn OH_ArkWebResourceRequest_Destroy(resourceRequest: *const ArkWeb_ResourceRequest) -> i32;
1286}
1287extern "C" {
1288    #[doc = " @brief Get the referrer of request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param referrer The request's referrer. This function will allocate memory for the post data string and caller\n                 must release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1289    pub fn OH_ArkWebResourceRequest_GetReferrer(
1290        resourceRequest: *const ArkWeb_ResourceRequest,
1291        referrer: *mut *mut ::std::os::raw::c_char,
1292    );
1293}
1294extern "C" {
1295    #[doc = " @brief Get the OH_ArkWeb_RequestHeaderList of the request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @param requestHeaderList The RequestHeaderList of request.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1296    pub fn OH_ArkWebResourceRequest_GetRequestHeaders(
1297        resourceRequest: *const ArkWeb_ResourceRequest,
1298        requestHeaderList: *mut *mut ArkWeb_RequestHeaderList,
1299    );
1300}
1301extern "C" {
1302    #[doc = " @brief Get if this is a redirect request.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @return True if this is a redirect; false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1303    pub fn OH_ArkWebResourceRequest_IsRedirect(
1304        resourceRequest: *const ArkWeb_ResourceRequest,
1305    ) -> bool;
1306}
1307extern "C" {
1308    #[doc = " @brief Get if this is a request from main frame.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @return True if this is from main frame; false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1309    pub fn OH_ArkWebResourceRequest_IsMainFrame(
1310        resourceRequest: *const ArkWeb_ResourceRequest,
1311    ) -> bool;
1312}
1313extern "C" {
1314    #[doc = " @brief Get if this is a request is triggered by user gesture.\n @param resourceRequest The ArkWeb_ResourceRequest.\n @return True if this is triggered by user gesture; false otherwise.\n\n @since 12"]
1315    pub fn OH_ArkWebResourceRequest_HasGesture(
1316        resourceRequest: *const ArkWeb_ResourceRequest,
1317    ) -> bool;
1318}
1319extern "C" {
1320    #[doc = " @brief Register custom scheme to the ArkWeb.\n\n Should not be called for built-in HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.\\n\n This function should be called on main thread.\\n\n\n @param scheme The scheme to regist.\n @param option The configuration of the scheme.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_ERROR_UNKNOWN} 17100100 - Unknown error.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n         {@link ARKWEB_SCHEME_REGISTER_FAILED} 17100102 - Register custom schemes should be called\n                                                          before create any ArkWeb.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1321    pub fn OH_ArkWeb_RegisterCustomSchemes(
1322        scheme: *const ::std::os::raw::c_char,
1323        option: i32,
1324    ) -> i32;
1325}
1326extern "C" {
1327    #[doc = " @brief Set a ArkWeb_SchemeHandler for a specific scheme to intercept requests of that scheme type.\n\n SchemeHandler should be set after the BrowserContext created.\\n\n Use WebviewController.initializeWebEngine to initialize the BrowserContext without create a ArkWeb.\\n\n\n @param scheme Scheme that need to be intercepted.\n @param schemeHandler The SchemeHandler for the scheme. Only requests triggered by ServiceWorker will be notified\n                      through this handler.\n @return Return true if set SchemeHandler for specific scheme successful, return false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1328    pub fn OH_ArkWebServiceWorker_SetSchemeHandler(
1329        scheme: *const ::std::os::raw::c_char,
1330        schemeHandler: *mut ArkWeb_SchemeHandler,
1331    ) -> bool;
1332}
1333extern "C" {
1334    #[doc = " @brief Set a ArkWeb_SchemeHandler for a specific scheme to intercept requests of that scheme type.\n\n SchemeHandler should be set after the BrowserContext created.\\n\n Use WebviewController.initializeWebEngine to initialize the BrowserContext without create a ArkWeb.\\n\n\n @param scheme Scheme that need to be intercepted.\n @param webTag The name of the web component.\n @param schemeHandler The SchemeHandler for the scheme. Only requests triggered from the specified web will be\n                      notified through this handler.\n @return Return true if set SchemeHandler for specific scheme successful, return false otherwise.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1335    pub fn OH_ArkWeb_SetSchemeHandler(
1336        scheme: *const ::std::os::raw::c_char,
1337        webTag: *const ::std::os::raw::c_char,
1338        schemeHandler: *mut ArkWeb_SchemeHandler,
1339    ) -> bool;
1340}
1341extern "C" {
1342    #[doc = " @brief Clear the handler registered on the specified web for service worker.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1343    pub fn OH_ArkWebServiceWorker_ClearSchemeHandlers() -> i32;
1344}
1345extern "C" {
1346    #[doc = " @brief Clear the handler registered on the specified web.\n @param webTag The name of the web component.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1347    pub fn OH_ArkWeb_ClearSchemeHandlers(webTag: *const ::std::os::raw::c_char) -> i32;
1348}
1349extern "C" {
1350    #[doc = " @brief Create a SchemeHandler.\n @param schemeHandler Return the created SchemeHandler. Use OH_ArkWeb_DestroySchemeHandler destroy it when don't\n                      need it.\n\n @since 12"]
1351    pub fn OH_ArkWeb_CreateSchemeHandler(schemeHandler: *mut *mut ArkWeb_SchemeHandler);
1352}
1353extern "C" {
1354    #[doc = " @brief Destroy a SchemeHandler.\n @param schemeHandler The ArkWeb_SchemeHandler to be destroy.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1355    pub fn OH_ArkWeb_DestroySchemeHandler(schemeHandler: *mut ArkWeb_SchemeHandler);
1356}
1357extern "C" {
1358    #[doc = " @brief Set a user data to ArkWeb_SchemeHandler.\n @param schemeHandler The ArkWeb_SchemeHandler.\n @param userData The user data to set.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1359    pub fn OH_ArkWebSchemeHandler_SetUserData(
1360        schemeHandler: *mut ArkWeb_SchemeHandler,
1361        userData: *mut ::std::os::raw::c_void,
1362    ) -> i32;
1363}
1364extern "C" {
1365    #[doc = " @brief Get the user data from ArkWeb_SchemeHandler.\n @param schemeHandler The ArkWeb_SchemeHandler.\n @return The set user data.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1366    pub fn OH_ArkWebSchemeHandler_GetUserData(
1367        schemeHandler: *const ArkWeb_SchemeHandler,
1368    ) -> *mut ::std::os::raw::c_void;
1369}
1370extern "C" {
1371    #[doc = " @brief Set the OnRequestStart callback for SchemeHandler.\n @param schemeHandler The SchemeHandler for the scheme.\n @param onRequestStart The OnRequestStart callback.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1372    pub fn OH_ArkWebSchemeHandler_SetOnRequestStart(
1373        schemeHandler: *mut ArkWeb_SchemeHandler,
1374        onRequestStart: ArkWeb_OnRequestStart,
1375    ) -> i32;
1376}
1377extern "C" {
1378    #[doc = " @brief Set the OnRequestStop callback for SchemeHandler.\n @param schemeHandler The SchemeHandler for the scheme.\n @param onRequestStop The OnRequestStop callback.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1379    pub fn OH_ArkWebSchemeHandler_SetOnRequestStop(
1380        schemeHandler: *mut ArkWeb_SchemeHandler,
1381        onRequestStop: ArkWeb_OnRequestStop,
1382    ) -> i32;
1383}
1384extern "C" {
1385    #[doc = " @brief Create a Response for a request.\n @param response The created Response. Use OH_ArkWeb_DestroyResponse to destroy when don't need it.\n\n @since 12"]
1386    pub fn OH_ArkWeb_CreateResponse(response: *mut *mut ArkWeb_Response);
1387}
1388extern "C" {
1389    #[doc = " @brief Destroy the Reponse.\n @param response The Response needs destroy.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1390    pub fn OH_ArkWeb_DestroyResponse(response: *mut ArkWeb_Response);
1391}
1392extern "C" {
1393    #[doc = " @brief Set the resolved URL after redirects or changed as a result of HSTS.\n @param response The ArkWeb_Response.\n @param url The resolved URL.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1394    pub fn OH_ArkWebResponse_SetUrl(
1395        response: *mut ArkWeb_Response,
1396        url: *const ::std::os::raw::c_char,
1397    ) -> i32;
1398}
1399extern "C" {
1400    #[doc = " @brief Get the resolved URL after redirects or changed as a result of HSTS.\n @param response The ArkWeb_Response.\n @param url The resolved URL.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1401    pub fn OH_ArkWebResponse_GetUrl(
1402        response: *const ArkWeb_Response,
1403        url: *mut *mut ::std::os::raw::c_char,
1404    );
1405}
1406extern "C" {
1407    #[doc = " @brief Set a error code to ArkWeb_Response.\n @param response The ArkWeb_Response.\n @param errorCode The error code for the failed request.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1408    pub fn OH_ArkWebResponse_SetError(
1409        response: *mut ArkWeb_Response,
1410        errorCode: ArkWeb_NetError,
1411    ) -> i32;
1412}
1413extern "C" {
1414    #[doc = " @brief Get the response's error code.\n @param response The ArkWeb_Response.\n @return The response's error code.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1415    pub fn OH_ArkWebResponse_GetError(response: *const ArkWeb_Response) -> ArkWeb_NetError;
1416}
1417extern "C" {
1418    #[doc = " @brief Set a status code to ArkWebResponse.\n @param response The ArkWeb_Response.\n @param status The http status code for the request.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1419    pub fn OH_ArkWebResponse_SetStatus(
1420        response: *mut ArkWeb_Response,
1421        status: ::std::os::raw::c_int,
1422    ) -> i32;
1423}
1424extern "C" {
1425    #[doc = " @brief Get the response's status code.\n @param response The ArkWeb_Response.\n @return The response's http status code. -1 if response is invalid.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1426    pub fn OH_ArkWebResponse_GetStatus(response: *const ArkWeb_Response) -> ::std::os::raw::c_int;
1427}
1428extern "C" {
1429    #[doc = " @brief Set a status text to ArkWebResponse.\n @param response The ArkWeb_Response.\n @param statusText The status text for the request.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1430    pub fn OH_ArkWebResponse_SetStatusText(
1431        response: *mut ArkWeb_Response,
1432        statusText: *const ::std::os::raw::c_char,
1433    ) -> i32;
1434}
1435extern "C" {
1436    #[doc = " @brief Get the response's status text.\n @param response The ArkWeb_Response.\n @param statusText Return the response's statusText. This function will allocate memory for the statusText string and\n                   caller must release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1437    pub fn OH_ArkWebResponse_GetStatusText(
1438        response: *const ArkWeb_Response,
1439        statusText: *mut *mut ::std::os::raw::c_char,
1440    );
1441}
1442extern "C" {
1443    #[doc = " @brief Set mime type to ArkWebResponse.\n @param response The ArkWeb_Response.\n @param mimeType The mime type for the request.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1444    pub fn OH_ArkWebResponse_SetMimeType(
1445        response: *mut ArkWeb_Response,
1446        mimeType: *const ::std::os::raw::c_char,
1447    ) -> i32;
1448}
1449extern "C" {
1450    #[doc = " @brief Get the response's mime type.\n @param response The ArkWeb_Response.\n @param mimeType Return the response's mime type. This function will allocate memory for the mime type string and\n                 caller must release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1451    pub fn OH_ArkWebResponse_GetMimeType(
1452        response: *const ArkWeb_Response,
1453        mimeType: *mut *mut ::std::os::raw::c_char,
1454    );
1455}
1456extern "C" {
1457    #[doc = " @brief Set charset to ArkWeb_Response.\n @param response The ArkWeb_Response.\n @param charset The charset for the request.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1458    pub fn OH_ArkWebResponse_SetCharset(
1459        response: *mut ArkWeb_Response,
1460        charset: *const ::std::os::raw::c_char,
1461    ) -> i32;
1462}
1463extern "C" {
1464    #[doc = " @brief Get the response's charset.\n @param response The ArkWeb_Response.\n @param charset Return the response's charset. This function will allocate memory for the charset string and caller\n                must release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1465    pub fn OH_ArkWebResponse_GetCharset(
1466        response: *const ArkWeb_Response,
1467        charset: *mut *mut ::std::os::raw::c_char,
1468    );
1469}
1470extern "C" {
1471    #[doc = " @brief Set a header to ArkWeb_Response.\n @param response The ArkWeb_Response.\n @param name The name of the header.\n @param value The value of the header.\n @param overwirte If true will overwrite the exsits header, if false otherwise.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1472    pub fn OH_ArkWebResponse_SetHeaderByName(
1473        response: *mut ArkWeb_Response,
1474        name: *const ::std::os::raw::c_char,
1475        value: *const ::std::os::raw::c_char,
1476        overwrite: bool,
1477    ) -> i32;
1478}
1479extern "C" {
1480    #[doc = " @brief Get the header from the response.\n @param response The ArkWeb_Response.\n @param name The name of the header.\n @param value Return the header's value. This function will allocate memory for the value string and caller must\n              release the string by OH_ArkWeb_ReleaseString.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1481    pub fn OH_ArkWebResponse_GetHeaderByName(
1482        response: *const ArkWeb_Response,
1483        name: *const ::std::os::raw::c_char,
1484        value: *mut *mut ::std::os::raw::c_char,
1485    );
1486}
1487extern "C" {
1488    #[doc = " @brief Destroy the ArkWeb_ResourceHandler.\n @param resourceHandler The ArkWeb_ResourceHandler.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1489    pub fn OH_ArkWebResourceHandler_Destroy(resourceHandler: *const ArkWeb_ResourceHandler) -> i32;
1490}
1491extern "C" {
1492    #[doc = " @brief Pass response headers to intercepted requests.\n @param resourceHandler The ArkWeb_ResourceHandler for the request.\n @param response The ArkWeb_Response for the intercepting requests.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1493    pub fn OH_ArkWebResourceHandler_DidReceiveResponse(
1494        resourceHandler: *const ArkWeb_ResourceHandler,
1495        response: *const ArkWeb_Response,
1496    ) -> i32;
1497}
1498extern "C" {
1499    #[doc = " @brief Pass response body data to intercepted requests.\n @param resourceHandler The ArkWeb_ResourceHandler for the request.\n @param buffer Buffer data to send.\n @param bufLen The size of buffer.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1500    pub fn OH_ArkWebResourceHandler_DidReceiveData(
1501        resourceHandler: *const ArkWeb_ResourceHandler,
1502        buffer: *const u8,
1503        bufLen: i64,
1504    ) -> i32;
1505}
1506extern "C" {
1507    #[doc = " @brief Notify the ArkWeb that this request should be finished and there is no more data available.\n @param resourceHandler The ArkWeb_ResourceHandler for the request.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1508    pub fn OH_ArkWebResourceHandler_DidFinish(
1509        resourceHandler: *const ArkWeb_ResourceHandler,
1510    ) -> i32;
1511}
1512extern "C" {
1513    #[doc = " @brief Notify the ArkWeb that this request should be failed.\n @param resourceHandler The ArkWeb_ResourceHandler for the request.\n @param errorCode The error code for this request. Refer to arkweb_net_error_list.h.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1514    pub fn OH_ArkWebResourceHandler_DidFailWithError(
1515        resourceHandler: *const ArkWeb_ResourceHandler,
1516        errorCode: ArkWeb_NetError,
1517    ) -> i32;
1518}
1519extern "C" {
1520    #[doc = " @brief Notify the ArkWeb that this request should be failed.\n @param resourceHandler The ArkWeb_ResourceHandler for the request.\n @param errorCode The error code for this request. Refer to arkweb_net_error_list.h.\n @param completeIfNoResponse If completeIfNoResponse is true, when DidFailWithErrorV2 is called,\n        if DidReceiveResponse has not been called,\n        a response is automatically constructed and the current request is terminated.\n @return {@link ARKWEB_NET_OK} 0 - Success.\n         {@link ARKWEB_INVALID_PARAM} 17100101 - Invalid param, the resourceHandler is nullptr.\n @since 20"]
1521    #[cfg(feature = "api-20")]
1522    pub fn OH_ArkWebResourceHandler_DidFailWithErrorV2(
1523        resourceHandler: *const ArkWeb_ResourceHandler,
1524        errorCode: ArkWeb_NetError,
1525        completeIfNoResponse: bool,
1526    ) -> i32;
1527}
1528extern "C" {
1529    #[doc = " @brief Release the string acquired by native function.\n @param string The string to be released.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1530    pub fn OH_ArkWeb_ReleaseString(string: *mut ::std::os::raw::c_char);
1531}
1532extern "C" {
1533    #[doc = " @brief Release the byte array acquired by native function.\n @param byteArray The byte array to be released.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 12"]
1534    pub fn OH_ArkWeb_ReleaseByteArray(byteArray: *mut u8);
1535}
1536#[doc = " @brief Defines the javascript callback of the web component.\n\n @since 11"]
1537pub type NativeArkWeb_OnJavaScriptCallback =
1538    ::std::option::Option<unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char)>;
1539#[doc = " @brief Defines the javascript proxy callback of the web component.\n\n @since 11"]
1540pub type NativeArkWeb_OnJavaScriptProxyCallback = ::std::option::Option<
1541    unsafe extern "C" fn(
1542        argv: *mut *const ::std::os::raw::c_char,
1543        argc: i32,
1544    ) -> *mut ::std::os::raw::c_char,
1545>;
1546#[doc = " @brief Defines the valid callback of the web component.\n\n @since 11"]
1547pub type NativeArkWeb_OnValidCallback =
1548    ::std::option::Option<unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char)>;
1549#[doc = " @brief Defines the destroy callback of the web component.\n\n @since 11"]
1550pub type NativeArkWeb_OnDestroyCallback =
1551    ::std::option::Option<unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char)>;
1552#[doc = " @brief Defines the callback of save cookie.\n @param errorCode {@link ARKWEB_SUCCESS} Save cookie success.\n                  {@link ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED} Cookie manager initialize failed.\n                  {@link ARKWEB_COOKIE_SAVE_FAILED} Save cookie failed.\n @since 20"]
1553#[cfg(feature = "api-20")]
1554pub type OH_ArkWeb_OnCookieSaveCallback =
1555    ::std::option::Option<unsafe extern "C" fn(errorCode: ArkWeb_ErrorCode)>;
1556#[doc = " @brief Defines the blankless information.\n\n @since 20"]
1557#[cfg(feature = "api-20")]
1558#[repr(C)]
1559#[derive(Debug, Copy, Clone)]
1560pub struct ArkWeb_BlanklessInfo {
1561    #[doc = " The errCode of the blankless."]
1562    pub errCode: ArkWeb_BlanklessErrorCode,
1563    #[doc = " The estimated similarity of the history snapshots."]
1564    pub similarity: f64,
1565    #[doc = " The loadingTime of the history loading."]
1566    pub loadingTime: i32,
1567}
1568#[doc = " the system default ArkWeb engine.\n @since 20"]
1569#[cfg(feature = "api-20")]
1570pub const ArkWebEngineVersion_SYSTEM_DEFAULT: ArkWebEngineVersion = 0;
1571#[doc = " ArkWeb M114 version.\n @since 20"]
1572#[cfg(feature = "api-20")]
1573pub const ArkWebEngineVersion_ARKWEB_M114: ArkWebEngineVersion = 1;
1574#[doc = " ArkWeb M132 version.\n @since 20"]
1575#[cfg(feature = "api-20")]
1576pub const ArkWebEngineVersion_ARKWEB_M132: ArkWebEngineVersion = 2;
1577#[doc = " ArkWeb auto use the newest ArkWeb Engine version.\n Evergreen Web Engine.\n @since 23"]
1578#[cfg(feature = "api-23")]
1579pub const ArkWebEngineVersion_ARKWEB_EVERGREEN: ArkWebEngineVersion = 99999;
1580#[doc = " @brief ArkWeb Engine Version.\n\n <strong>ArkWeb Dual Web Engine Versioning Convention</strong>:\n <p>See [ArkWeb Dual Web Engine Versioning Convention] for switching between Legacy and Evergreen Web Engine.\n\n @since 20"]
1581#[cfg(feature = "api-20")]
1582pub type ArkWebEngineVersion = u32;
1583extern "C" {
1584    #[doc = " @brief Loads a piece of code and execute JS code in the context of the currently displayed page.\n\n @param webTag The name of the web component.\n @param jsCode a piece of javascript code.\n @param callback Callbacks execute JavaScript script results.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1585    pub fn OH_NativeArkWeb_RunJavaScript(
1586        webTag: *const ::std::os::raw::c_char,
1587        jsCode: *const ::std::os::raw::c_char,
1588        callback: NativeArkWeb_OnJavaScriptCallback,
1589    );
1590}
1591extern "C" {
1592    #[doc = " @brief Registers the JavaScript object and method list.\n\n @param webTag The name of the web component.\n @param objName The name of the registered object.\n @param methodList The method of the application side JavaScript object participating in the registration.\n @param callback The callback function registered by developer is called back when HTML side uses.\n @param size The size of the callback.\n @param needRefresh if web need refresh.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1593    pub fn OH_NativeArkWeb_RegisterJavaScriptProxy(
1594        webTag: *const ::std::os::raw::c_char,
1595        objName: *const ::std::os::raw::c_char,
1596        methodList: *mut *const ::std::os::raw::c_char,
1597        callback: *mut NativeArkWeb_OnJavaScriptProxyCallback,
1598        size: i32,
1599        needRefresh: bool,
1600    );
1601}
1602extern "C" {
1603    #[doc = " @brief Deletes the registered object which th given name.\n\n @param webTag The name of the web component.\n @param objName The name of the registered object.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1604    pub fn OH_NativeArkWeb_UnregisterJavaScriptProxy(
1605        webTag: *const ::std::os::raw::c_char,
1606        objName: *const ::std::os::raw::c_char,
1607    );
1608}
1609extern "C" {
1610    #[doc = " @brief Registers the valid callback.\n\n @param webTag The name of the web component.\n @param callback The callback in which we can register object.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1611    pub fn OH_NativeArkWeb_SetJavaScriptProxyValidCallback(
1612        webTag: *const ::std::os::raw::c_char,
1613        callback: NativeArkWeb_OnValidCallback,
1614    );
1615}
1616extern "C" {
1617    #[doc = " @brief Get the valid callback.\n\n @param webTag The name of the web component.\n @return Return the valid callback function registered. If the valid callback function\n         specified by the parameter webTag is not set, a null pointer is returned.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1618    pub fn OH_NativeArkWeb_GetJavaScriptProxyValidCallback(
1619        webTag: *const ::std::os::raw::c_char,
1620    ) -> NativeArkWeb_OnValidCallback;
1621}
1622extern "C" {
1623    #[doc = " @brief Registers the destroy callback.\n\n @param webTag The name of the web component.\n @param callback the destroy callback.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1624    pub fn OH_NativeArkWeb_SetDestroyCallback(
1625        webTag: *const ::std::os::raw::c_char,
1626        callback: NativeArkWeb_OnDestroyCallback,
1627    );
1628}
1629extern "C" {
1630    #[doc = " @brief Get the destroy callback.\n\n @param webTag The name of the web component.\n @return Return the destroy callback function registered. If the destroy callback\n         function specified by the parameter webTag is not set,\n         a null pointer is returned.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 11"]
1631    pub fn OH_NativeArkWeb_GetDestroyCallback(
1632        webTag: *const ::std::os::raw::c_char,
1633    ) -> NativeArkWeb_OnDestroyCallback;
1634}
1635extern "C" {
1636    #[doc = " @brief Loads the data or URL.\n        This function should be called on main thread.\n\n @param webTag The name of the web component.\n @param data A string encoded according to \"Base64\" or \"URL\", should not be NULL.\n @param mimeType Media type. For example: \"text/html\", should not be NULL.\n @param encoding Encoding type. For example: \"UTF-8\", should not be NULL.\n @param baseUrl A specified URL path (\"http\"/\"https\"/\"data\" protocol),\n                which is assigned to window.origin by the Web component.\n @param historyUrl History URL. When it is not empty, it can be managed by\n                   history records to realize the back and forth function.\n @return LoadData result code.\n         {@link ARKWEB_SUCCESS} load data success.\n         {@link ARKWEB_INVALID_PARAM} Mandatory parameters are left unspecified or\n                                      Incorrect parameter types or Parameter verification failed.\n         {@link ARKWEB_INIT_ERROR} Initialization error, can't get a valid Web for the webTag.\n         {@link ARKWEB_LIBRARY_OPEN_FAILURE} Failed to open the library.\n         {@link ARKWEB_LIBRARY_SYMBOL_NOT_FOUND} The required symbol was not found in the library.\n\n @syscap SystemCapability.Web.Webview.Core\n @since 15"]
1637    #[cfg(feature = "api-15")]
1638    pub fn OH_NativeArkWeb_LoadData(
1639        webTag: *const ::std::os::raw::c_char,
1640        data: *const ::std::os::raw::c_char,
1641        mimeType: *const ::std::os::raw::c_char,
1642        encoding: *const ::std::os::raw::c_char,
1643        baseUrl: *const ::std::os::raw::c_char,
1644        historyUrl: *const ::std::os::raw::c_char,
1645    ) -> ArkWeb_ErrorCode;
1646}
1647extern "C" {
1648    #[doc = " @brief Registers a JavaScript object with callback methods, which may return values. This object will be injected\n        into all frames of the current page, including all iframes, and will be accessible using the specified\n        name in ArkWeb_ProxyObjectWithResult. The object will only be available in JavaScript after the next\n        load or reload.\n        These methods will be executed in the ArkWeb worker thread.\n\n @param webTag Name of the web component.\n @param proxyObject JavaScript object to register, the object has callback functions with return value.\n @param permission Optional JSON string(default is null) for JSBridge permission control,\n                   allowing URL whitelist configuration at object-level and method-level.\n @syscap SystemCapability.Web.Webview.Core\n @since 20"]
1649    #[cfg(feature = "api-20")]
1650    pub fn OH_NativeArkWeb_RegisterAsyncThreadJavaScriptProxy(
1651        webTag: *const ::std::os::raw::c_char,
1652        proxyObject: *const ArkWeb_ProxyObjectWithResult,
1653        permission: *const ::std::os::raw::c_char,
1654    );
1655}
1656extern "C" {
1657    #[doc = " @brief Sets whether to enable blankless page loading. This API must be used in pair with the\n OH_NativeArkWeb_GetBlanklessInfoWithKey API.\n\n @permission ohos.permission.INTERNET and ohos.permission.GET_NETWORK_INFO\n @param webTag webTag used when the webviewController is created.\n @param key Key value that uniquely identifies the current page. It must be the same as the key value of the\n OH_NativeArkWeb_GetBlanklessInfoWithKey API.\n @param isStarted Whether to enable frame interpolation. The value true indicates to enable frame\n interpolation, and the value false indicates the opposite.\n The default value is false.\n The value can be true or false.\n Action for setting an invalid value: N/A.\n @return Whether the API is successfully called. For details, see ArkWeb_BlanklessErrorCode.\n @since 20"]
1658    #[cfg(feature = "api-20")]
1659    pub fn OH_NativeArkWeb_SetBlanklessLoadingWithKey(
1660        webTag: *const ::std::os::raw::c_char,
1661        key: *const ::std::os::raw::c_char,
1662        isStarted: bool,
1663    ) -> ArkWeb_BlanklessErrorCode;
1664}
1665extern "C" {
1666    #[doc = " @brief Clears the blankless loading cache of the page with a specified key value.\n\n @param key The list of key values of pages cached in the blankless loading solution. These key values are\n specified in OH_NativeArkWeb_GetBlanklessInfoWithKey.\n The default value is the list of key values of all pages cached in the blankless loading solution.\n The key length cannot exceed 2048 characters, and the number of keys must be less than or equal to 100. The\n URL is the same as that input to the Web component during page loading.\n When the key length exceeds 2048 characters, the key does not take effect. When the number of keys exceeds\n 100, the first 100 keys are used. If this parameter is set to NULL, the default value is used.\n @param size Size of the key list.\n @since 20"]
1667    #[cfg(feature = "api-20")]
1668    pub fn OH_NativeArkWeb_ClearBlanklessLoadingCache(
1669        key: *mut *const ::std::os::raw::c_char,
1670        size: u32,
1671    );
1672}
1673extern "C" {
1674    #[doc = " @brief Obtains the prediction information about the blankless loading solution and enables the generation\n of the transition frame for the current loading. The application determines whether to enable the blankless\n loading solution based on the information.\n This API applies to pages in an applet or web application whose URLs are not fixed or cannot be uniquely\n identified.\n\n @permission ohos.permission.INTERNET and ohos.permission.GET_NETWORK_INFO\n @param webTag webTag used when the webviewController is created.\n Default value: N/A.\n The value cannot be empty.\n When an invalid value is set, the error code is returned, and the API does not take effect.\n @param key Key value that uniquely identifies the current page.\n @return Return value of the ArkWeb_BlanklessInfo type.\n @since 20"]
1675    #[cfg(feature = "api-20")]
1676    pub fn OH_NativeArkWeb_GetBlanklessInfoWithKey(
1677        webTag: *const ::std::os::raw::c_char,
1678        key: *const ::std::os::raw::c_char,
1679    ) -> ArkWeb_BlanklessInfo;
1680}
1681extern "C" {
1682    #[doc = " @brief Sets the cache capacity of the blankless loading solution and returns the value that takes effect.\n\n @param capacity Cache capacity, in MB. The maximum value is 100 MB.\n The default value is 30 MB.\n The value ranges from 0 to 100. If this parameter is set to 0, no cache capacity is available and the\n functionality is disabled globally.\n When the value is set to a number smaller than 0, the value 0 takes effect. When the value is set to a\n number greater than 100, the value 100 takes effect.\n @return The effective value that ranges from 0 MB to 100 MB.\n @since 20"]
1683    #[cfg(feature = "api-20")]
1684    pub fn OH_NativeArkWeb_SetBlanklessLoadingCacheCapacity(capacity: u32) -> u32;
1685}
1686extern "C" {
1687    #[doc = " @brief Ensure that all cookies currently accessible via the CookieManager API have been persisted to disk.\n        If you want to use this interface in a non-UI thread, you need to initialize the CookieManager interface\n        using OH_ArkWeb_GetNativeAPI first.\n @return Save cookie result code.\n         {@link ARKWEB_SUCCESS} Save cookie success.\n         {@link ARKWEB_COOKIE_SAVE_FAILED} Save cookie failed.\n         {@link ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED} The CookieManager initialize failed.\n         {@link ARKWEB_COOKIE_MANAGER_NOT_INITIALIZED} It is not allowed to call on a non-UI thread without\n                                                       initializing the CookieManager interface. please\n   \t\t\t\t\t\t\t\t\t\t\t\t\t initialize the CookieManager interface using\n  \t\t\t\t\t\t\t\t\t\t\t\t\t OH_ArkWeb_GetNativeAPI first.\n @since 20"]
1688    #[cfg(feature = "api-20")]
1689    pub fn OH_ArkWebCookieManager_SaveCookieSync() -> ArkWeb_ErrorCode;
1690}
1691extern "C" {
1692    #[doc = " @brief Ensure that all cookies currently accessible via the CookieManager API have been persisted to disk.\n        Without initializing the CookieManager interface, this call will automatically be executed on the UI thread.\n @param callback Callback execute when save cookie done.\n @since 20"]
1693    #[cfg(feature = "api-20")]
1694    pub fn OH_ArkWebCookieManager_SaveCookieAsync(callback: OH_ArkWeb_OnCookieSaveCallback);
1695}
1696extern "C" {
1697    #[doc = " Set active ArkWeb engine version.\n If the system does not support the specified version, it will not take effect.\n\n This is a global static API that must be called before initializeWebEngine, and it will have no effect if any\n Web components are loaded.\n\n <strong>Legacy Web Engine Compatibility Note</strong>:\n <p>When using legacy ArkWeb Engine, some ArkWeb newly created API will not take effect,<br>\n see [Compatible with Legacy Web Engine in release note] for compatibility guidelines.\n </p>\n\n @param { ArkWebEngineVersion } webEngineVersion - the ArkWebEngineVersion\n @since 20"]
1698    #[cfg(feature = "api-20")]
1699    pub fn OH_NativeArkWeb_SetActiveWebEngineVersion(webEngineVersion: ArkWebEngineVersion);
1700}
1701extern "C" {
1702    #[doc = " Get currently active ArkWeb engine version.\n @return { ArkWebEngineVersion } Active ArkWeb Engine version as defined by ArkWebEngineVersion\n @since 20"]
1703    #[cfg(feature = "api-20")]
1704    pub fn OH_NativeArkWeb_GetActiveWebEngineVersion() -> ArkWebEngineVersion;
1705}
1706extern "C" {
1707    #[doc = " Delays the initialization of the web engine. By default, the web engine is initialized when the CookieManager\n interface is called. By setting the 'lazy' parameter to true, the web engine will not be initialized when the\n CookieManager interface is called. Instead, the web engine will be initialized either when the web component is\n created or when initializeWebEngine is called.\n @param { bool } lazy - Controls whether to delay the initialization of the web engine.\n @since 22"]
1708    #[cfg(feature = "api-22")]
1709    pub fn OH_NativeArkWeb_LazyInitializeWebEngineInCookieManager(lazy: bool);
1710}
1711extern "C" {
1712    #[doc = " Check if the currently active ArkWeb engine is Evergreen.\n @return { bool } true means the application is using the Evergreen Web Engine, false means not.\n @since 23"]
1713    #[cfg(feature = "api-23")]
1714    pub fn OH_NativeArkWeb_IsActiveWebEngineEvergreen() -> bool;
1715}