/base/web/webview/ohos_adapter/res_sched_adapter/src/ |
H A D | res_sched_client_adapter_impl.cpp | 199 bool IsSameSourceWebSiteActive(ResSchedStatusAdapter statusAdapter, pid_t pid, int32_t nwebId) in IsSameSourceWebSiteActive() argument 201 g_pidNwebMap[pid][nwebId] = statusAdapter; in IsSameSourceWebSiteActive() 206 WVLOG_D("IsSameSourceWebSiteActive, current nwebId: %{public}d, active nwebId: %{public}d, " in IsSameSourceWebSiteActive() 207 "pid: %{public}d", nwebId, it.first, pid); in IsSameSourceWebSiteActive() 217 pid_t pid, uint32_t windowId, int32_t nwebId, bool isSiteManage) in ReportStatusData() 222 if (g_nwebSet.find(nwebId) == g_nwebSet.end() || pid == 0) { in ReportStatusData() 223 WVLOG_D("Don't report window status, nwebId: %{public}d, pid: %{public}d", nwebId, pid); in ReportStatusData() 234 if (isSiteManage && IsSameSourceWebSiteActive(statusAdapter, pid, nwebId)) { in ReportStatusData() 216 ReportStatusData(ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId, bool isSiteManage) ReportStatusData() argument 330 int32_t nwebId = g_nwebId; ReportProcessInUse() local 353 ReportWindowStatus( ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) ReportWindowStatus() argument 380 ReportScene( ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId) ReportScene() argument 394 ReportWindowId(int32_t windowId, int32_t nwebId) ReportWindowId() argument 402 ReportNWebInit(ResSchedStatusAdapter statusAdapter, int32_t nwebId) ReportNWebInit() argument [all...] |
/base/web/webview/test/fuzztest/ohos_nweb/hisysevent_fuzzer/ |
H A D | hisysevent_fuzzer.cpp | 31 int32_t nwebId; in HiSysEventFuzzTest() local 32 if (memcpy_s(&nwebId, sizeof(int32_t), data, sizeof(int32_t)) != EOK) { in HiSysEventFuzzTest() 35 EventReport::ReportCreateWebInstanceTime(nwebId, nwebId); in HiSysEventFuzzTest()
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | web_download_manager.cpp | 32 WebDownloadDelegate *GetWebDownloadDelegate(int32_t nwebId) in GetWebDownloadDelegate() argument 34 auto it = g_web_download_delegate_map.find(nwebId); in GetWebDownloadDelegate() 48 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadBeforeStart() local 49 WebDownloadDelegate *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadBeforeStart() 75 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadDidUpdate() local 77 WebDownloadDelegate *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadDidUpdate() 147 void WebDownloadManager::AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegate *delegate) in AddDownloadDelegateForWeb() argument 150 g_web_download_delegate_map.insert_or_assign(nwebId, delegate); in AddDownloadDelegateForWeb() 155 void WebDownloadManager::RemoveDownloadDelegateRef(int32_t nwebId) in RemoveDownloadDelegateRef() argument 157 auto iter = g_web_download_delegate_map.find(nwebId); in RemoveDownloadDelegateRef() [all...] |
H A D | web_download_manager.h | 37 static void AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegate *delegate); 39 static void RemoveDownloadDelegateRef(int32_t nwebId);
|
H A D | web_download_delegate.h | 31 static WebDownloadDelegate *FromNWebID(int32_t nwebId); 47 void SetNWebId(int32_t nwebId);
|
H A D | webview_javascript_result_callback.cpp | 87 WebviewJavaScriptResultCallBack* FromNwebID(int32_t nwebId) in FromNwebID() argument 90 if (auto it = g_webviewJsResultCallbackMap.find(nwebId); it != g_webviewJsResultCallbackMap.end()) { in FromNwebID() 113 if (isObject && FromNwebID(bundle.nwebId)) { in CallH5Function() 115 if (FromNwebID(bundle.nwebId)->FindObjectIdInJsTd(env, *napiArg, &returnedObjectId)) { in CallH5Function() 116 FromNwebID(bundle.nwebId)->FindObject(returnedObjectId)->AddHolder(bundle.frameRoutingId); in CallH5Function() 118 returnedObjectId = FromNwebID(bundle.nwebId)->AddObject(env, *napiArg, false, bundle.frameRoutingId); in CallH5Function() 121 FromNwebID(bundle.nwebId)->SetUpAnnotateMethods(returnedObjectId, methodNameList); in CallH5Function() 171 if (FromNwebID(bundle.nwebId)) { in CallbackFunctionForH5() 172 FromNwebID(bundle.nwebId)->CallH5FunctionInternal(env, bundle, nwebArgs); in CallbackFunctionForH5() 185 napi_env env, int32_t nwebId, int32_ in CreateFunctionForH5() 184 CreateFunctionForH5( napi_env env, int32_t nwebId, int32_t frameRoutingId, int32_t h5ObjectId, std::string funcName) CreateFunctionForH5() argument 398 ParseNwebValue2NapiValueHelper(napi_env env, std::shared_ptr<NWebValue> value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseNwebValue2NapiValueHelper() argument 437 ParseArrayNwebValue2NapiValue(napi_env env, const std::shared_ptr<NWebValue>& value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseArrayNwebValue2NapiValue() argument 458 ParseDictionaryNwebValue2NapiValue(napi_env env, const std::shared_ptr<NWebValue>& value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseDictionaryNwebValue2NapiValue() argument 477 ParseBinNwebValue2NapiValue(napi_env env, const std::shared_ptr<NWebValue>& value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseBinNwebValue2NapiValue() argument 525 ParseNwebValue2NapiValue(napi_env env, std::shared_ptr<NWebValue> value, WebviewJavaScriptResultCallBack::ObjectMap objectsMap, int32_t nwebId, int32_t frameId) ParseNwebValue2NapiValue() argument 838 WebviewJavaScriptResultCallBack(int32_t nwebId) WebviewJavaScriptResultCallBack() argument [all...] |
H A D | native_media_player_impl.h | 26 NWebNativeMediaPlayerBridgeImpl(int32_t nwebId, napi_env env, napi_value value); 61 NapiNativeMediaPlayerHandlerImpl(int32_t nwebId, std::shared_ptr<NWebNativeMediaPlayerHandler> handler); 101 explicit NWebCreateNativeMediaPlayerCallbackImpl(int32_t nwebId, napi_env env, napi_ref callback);
|
H A D | web_download_item.cpp | 48 this->nwebId = 0; in WebDownloadItem() 86 this->nwebId = WebDownloadItem_NWebId(downloadItem); in WebDownloadItem()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_res_sched_client_adapter_impl.cpp | 29 bool ArkResSchedClientAdapter::ReportWindowStatus(int32_t statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) in ReportWindowStatus() argument 32 (NWeb::ResSchedStatusAdapter)statusAdapter, pid, windowId, nwebId); in ReportWindowStatus() 35 bool ArkResSchedClientAdapter::ReportScene(int32_t statusAdapter, int32_t sceneAdapter, int32_t nwebId) in ReportScene() argument 38 (NWeb::ResSchedStatusAdapter)statusAdapter, (NWeb::ResSchedSceneAdapter)sceneAdapter, nwebId); in ReportScene() 46 void ArkResSchedClientAdapter::ReportWindowId(int32_t windowId, int32_t nwebId) in ReportWindowId() argument 48 return NWeb::ResSchedClientAdapter::ReportWindowId(windowId, nwebId); in ReportWindowId()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_res_sched_client_adapter_wrapper.cpp | 29 ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) in ReportWindowStatus() 31 return OHOS::ArkWeb::ArkResSchedClientAdapter::ReportWindowStatus((int32_t)statusAdapter, pid, windowId, nwebId); in ReportWindowStatus() 35 ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId) in ReportScene() 37 return OHOS::ArkWeb::ArkResSchedClientAdapter::ReportScene((int32_t)statusAdapter, (int32_t)sceneAdapter, nwebId); in ReportScene() 45 void ResSchedClientAdapter::ReportWindowId(int32_t windowId, int32_t nwebId) in ReportWindowId() argument 47 return OHOS::ArkWeb::ArkResSchedClientAdapter::ReportWindowId(windowId, nwebId); in ReportWindowId() 28 ReportWindowStatus( ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) ReportWindowStatus() argument 34 ReportScene( ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId) ReportScene() argument
|
/base/web/webview/interfaces/kits/cj/src/ |
H A D | web_download_manager_impl.cpp | 34 WebDownloadDelegateImpl *GetWebDownloadDelegate(int32_t nwebId) in GetWebDownloadDelegate() argument 36 auto it = g_web_download_delegate_map.find(nwebId); in GetWebDownloadDelegate() 50 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadBeforeStart() local 51 WebDownloadDelegateImpl *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadBeforeStart() 77 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadDidUpdate() local 79 WebDownloadDelegateImpl *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadDidUpdate() 147 void WebDownloadManagerImpl::AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegateImpl *delegate) in AddDownloadDelegateForWeb() argument 150 g_web_download_delegate_map.insert_or_assign(nwebId, delegate); in AddDownloadDelegateForWeb()
|
H A D | web_download_delegate_impl.cpp | 109 void WebDownloadDelegateImpl::SetNWebId(int32_t nwebId) in SetNWebId() argument 111 nwebId_ = nwebId; in SetNWebId()
|
H A D | web_download_item_impl.cpp | 46 this->nwebId = 0; in WebDownloadItemImpl() 84 this->nwebId = WebDownloadItem_NWebId(downloadItem); in WebDownloadItemImpl()
|
/base/web/webview/test/fuzztest/ohos_adapter/resschedadapter_fuzzer/ |
H A D | resschedadapter_fuzz.cpp | 40 int32_t nwebId = static_cast<int32_t>(size);
in ResSchedAdapterFuzzTest() local 61 adapter.ReportNWebInit(status, nwebId);
in ResSchedAdapterFuzzTest() 62 adapter.ReportWindowId(windowId, nwebId);
in ResSchedAdapterFuzzTest() 71 adapter.ReportWindowStatus(status, pid, windowId, nwebId);
in ResSchedAdapterFuzzTest() 72 adapter.ReportScene(status, ResSchedSceneAdapter::CLICK, nwebId);
in ResSchedAdapterFuzzTest() 73 adapter.ReportScene(status, ResSchedSceneAdapter::LOAD_URL, nwebId);
in ResSchedAdapterFuzzTest() 77 adapter.ReportWindowId(0, nwebId);
in ResSchedAdapterFuzzTest() 82 adapter.ReportWindowId(0, nwebId);
in ResSchedAdapterFuzzTest()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/ |
H A D | ark_res_sched_client_adapter.h | 31 static bool ReportWindowStatus(int32_t statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId); 34 static bool ReportScene(int32_t statusAdapter, int32_t sceneAdapter, int32_t nwebId); 40 static void ReportWindowId(int32_t windowId, int32_t nwebId);
|
/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | res_sched_client_adapter.h | 77 ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId = -1); 79 ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId = -1); 81 static void ReportWindowId(int32_t windowId, int32_t nwebId = -1); 82 static void ReportNWebInit(ResSchedStatusAdapter statusAdapter, int32_t nwebId);
|
/base/web/webview/ohos_nweb/src/ |
H A D | nweb_hisysevent.cpp | 62 int EventReport::ReportCreateWebInstanceTime(uint32_t nwebId, int64_t usedTime) in ReportCreateWebInstanceTime() argument 64 auto data = std::make_tuple(INSTANCE_ID, nwebId, USED_TIME, usedTime); in ReportCreateWebInstanceTime()
|
/base/web/webview/ohos_nweb/include/ |
H A D | nweb_hisysevent.h | 26 static int ReportCreateWebInstanceTime(uint32_t nwebId, int64_t usedTime);
|
H A D | nweb_c_api.h | 52 NWEB_EXPORT void WebDownloader_StartDownload(int32_t nwebId, const char* url); 76 NWEB_EXPORT NWebDownloadItemState WebDownload_GetItemState(int32_t nwebId, long downloadItemId);
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_controller_handler.h | 29 virtual void SetNWebHandlerById(int32_t nwebId) = 0;
|
/base/web/webview/interfaces/kits/cj/include/ |
H A D | web_download_manager_impl.h | 32 static void AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegateImpl *delegate);
|
H A D | web_download_item_impl.h | 57 int32_t nwebId; member in OHOS::Webview::WebDownloadItemImpl
|
H A D | web_download_delegate_impl.h | 41 void SetNWebId(int32_t nwebId);
|
/base/web/webview/interfaces/kits/napi/webasynccontroller/ |
H A D | napi_web_async_controller.cpp | 172 int32_t nwebId = -1; in JS_NapiWebAsyncController() local 173 napi_get_value_int32(env, result, &nwebId); in JS_NapiWebAsyncController() 175 NapiWebAsyncController *webAsyncController = new (std::nothrow) NapiWebAsyncController(env, thisVar, nwebId); in JS_NapiWebAsyncController() 192 NapiWebAsyncController::NapiWebAsyncController(napi_env env, napi_value thisVar, int32_t nwebId) : nwebId_(nwebId) {} in NapiWebAsyncController() argument
|
H A D | napi_web_async_controller.h | 29 NapiWebAsyncController(napi_env env, napi_value thisVar, int32_t nwebId);
|