Home
last modified time | relevance | path

Searched refs:NWebHelper (Results 1 - 25 of 34) sorted by relevance

12

/base/web/webview/test/unittest/nweb_helper_test/
H A Dnweb_helper_test.cpp185 bool result = NWebHelper::Instance().LoadNWebSDK(); in HWTEST_F()
187 NWebHelper::Instance().SetBundlePath(MOCK_NWEB_INSTALLATION_DIR); in HWTEST_F()
191 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); in HWTEST_F()
194 NWebHelper::Instance().SetHttpDns(config); in HWTEST_F()
195 auto nwebHelper = NWebHelper::Instance().GetNWeb(nweb_id); in HWTEST_F()
197 NWebHelper::Instance().PrepareForPageLoad("web_test", true, 0); in HWTEST_F()
198 NWebHelper::Instance().WarmupServiceWorker("web_test"); in HWTEST_F()
199 NWebHelper::Instance().PrefetchResource(nullptr, {}, "web_test", 0); in HWTEST_F()
200 NWebHelper::Instance().ClearPrefetchedResource({"web_test"}); in HWTEST_F()
201 NWebHelper in HWTEST_F()
[all...]
/base/web/webview/interfaces/kits/cj/src/
H A Dweb_cookie_manager.cpp29 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjGetCookie()
45 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjSetCookie()
54 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjPutAcceptCookieEnabled()
63 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjIsCookieAllowed()
72 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjPutAcceptThirdPartyCookieEnabled()
81 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjIsThirdPartyCookieAllowed()
91 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjExistCookie()
100 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjDeleteEntireCookie()
108 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjDeleteSessionCookie()
117 OHOS::NWeb::NWebHelper in CjSaveCookie()
[all...]
H A Dwebview_controller_impl.cpp48 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in ClosePort()
60 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in PostPortMessage()
76 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in SetPortMessageCallback()
140 return NWeb::NWebHelper::Instance().GetNWeb(nwebId_) ? true : false; in IsInit()
154 auto nweb_ptr = OHOS::NWeb::NWebHelper::Instance().GetNWeb(nwebId); in SetWebId()
157 NWeb::NWebHelper::Instance().SetWebTag(nwebId_, webTag_.c_str()); in SetWebId()
169 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in GetWebId()
178 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in LoadUrl()
187 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in LoadUrl()
197 auto nweb_ptr = NWeb::NWebHelper in LoadData()
[all...]
H A Dweb_data_base.cpp35 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJGetHttpAuthCredentials()
76 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJSaveHttpAuthCredentials()
86 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJExistHttpAuthCredentials()
96 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJDeleteHttpAuthCredentials()
H A Dweb_storage.cpp31 std::shared_ptr<OHOS::NWeb::NWebWebStorage> web_storage = OHOS::NWeb::NWebHelper::Instance().GetWebStorage(); in CJdeleteOrigin()
44 std::shared_ptr<OHOS::NWeb::NWebWebStorage> web_storage = OHOS::NWeb::NWebHelper::Instance().GetWebStorage(); in CJdeleteAllData()
52 std::shared_ptr<OHOS::NWeb::NWebWebStorage> web_storage = OHOS::NWeb::NWebHelper::Instance().GetWebStorage(); in CjGetOriginUsageOrQuota()
83 std::shared_ptr<OHOS::NWeb::NWebWebStorage> web_storage = OHOS::NWeb::NWebHelper::Instance().GetWebStorage(); in CjGetOrigins()
H A Dgeolocation_permission.cpp40 std::shared_ptr<OHOS::NWeb::NWebDataBase> dataBase = OHOS::NWeb::NWebHelper::Instance().GetDataBase(); in ProcessActionByType()
63 std::shared_ptr<OHOS::NWeb::NWebDataBase> dataBase = OHOS::NWeb::NWebHelper::Instance().GetDataBase(); in ExecuteGetPermissionState()
81 std::shared_ptr<OHOS::NWeb::NWebDataBase> dataBase = OHOS::NWeb::NWebHelper::Instance().GetDataBase(); in ExecuteGetOrigins()
114 std::shared_ptr<OHOS::NWeb::NWebDataBase> dataBase = OHOS::NWeb::NWebHelper::Instance().GetDataBase(); in CjDeleteAllGeolocation()
H A Dweb_download_manager_impl.cpp149 OHOS::NWeb::NWebHelper::Instance().LoadNWebSDK(); in AddDownloadDelegateForWeb()
157 OHOS::NWeb::NWebHelper::Instance().LoadNWebSDK(); in SetDownloadDelegate()
182 OHOS::NWeb::NWebHelper::Instance().LoadNWebSDK(); in ResumeDownload()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dwebview_controller.cpp108 NWebHelper::Instance().SetWebTag(-1, webTag_.c_str()); in WebviewController()
128 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in SetWebId()
131 NWebHelper::Instance().SetWebTag(nwebId_, webTag_.c_str()); in SetWebId()
204 return NWebHelper::Instance().GetNWeb(nwebId_) ? true : false; in IsInit()
210 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in AccessForward()
222 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in AccessBackward()
232 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in AccessStep()
241 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in ClearHistory()
249 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in Forward()
257 auto nweb_ptr = NWebHelper in Backward()
[all...]
H A Dweb_download_manager.cpp149 NWebHelper::Instance().LoadNWebSDK(); in AddDownloadDelegateForWeb()
166 NWebHelper::Instance().LoadNWebSDK(); in SetDownloadDelegate()
191 NWebHelper::Instance().LoadNWebSDK(); in ResumeDownload()
/base/web/webview/test/fuzztest/ohos_nweb/nwebhelper_fuzzer/
H A Dnwebhelper_fuzzer.cpp172 bool result = NWebHelper::Instance().LoadNWebSDK(); in NWebHelperFuzzTest()
174 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR); in NWebHelperFuzzTest()
178 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); in NWebHelperFuzzTest()
181 NWebHelper::Instance().SetHttpDns(config); in NWebHelperFuzzTest()
182 auto nwebHelper = NWebHelper::Instance().GetNWeb(nweb_id); in NWebHelperFuzzTest()
184 NWebHelper::Instance().PrepareForPageLoad("web_test", true, 0); in NWebHelperFuzzTest()
185 NWebHelper::Instance().WarmupServiceWorker("web_test"); in NWebHelperFuzzTest()
186 NWebHelper::Instance().PrefetchResource(nullptr, {}, "web_test", 0); in NWebHelperFuzzTest()
187 NWebHelper::Instance().ClearPrefetchedResource({ "web_test" }); in NWebHelperFuzzTest()
189 result = NWebHelper in NWebHelperFuzzTest()
[all...]
/base/web/webview/ohos_nweb/src/
H A Dnweb_helper.cpp106 void* fn = OHOS::NWeb::NWebHelper::Instance().LoadFuncSymbol(functionName); in LoadFunction()
573 bool NWebHelper::LoadNWebSDK() in LoadNWebSDK()
583 NWebHelper& NWebHelper::Instance() in Instance()
585 static NWebHelper helper; in Instance()
589 void NWebHelper::TryPreReadLib(bool isFirstTimeStartUpWeb, const std::string& bundlePath) in TryPreReadLib()
610 bool NWebHelper::Init(bool from_ark) in Init()
615 bool NWebHelper::InitAndRun(bool from_ark) in InitAndRun()
620 bool NWebHelper::GetWebEngine(bool fromArk) in GetWebEngine()
666 bool NWebHelper
[all...]
/base/web/webview/test/fuzztest/ohos_nweb/getnweb_fuzzer/
H A Dgetnweb_fuzzer.cpp30 NWebHelper::Instance().GetNWeb(nweb_id); in GetNwebFuzzTest()
32 NWebHelper::Instance().SetWebTag(nweb_id, "NWeb"); in GetNwebFuzzTest()
34 NWebHelper::Instance().PrepareForPageLoad("", true, size); in GetNwebFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/initandrun_fuzzer/
H A Dinitandrun_fuzzer.cpp29 NWebHelper::Instance().SetBundlePath(path); in InitAndRunFuzzTest()
31 NWebHelper::Instance().InitAndRun(false); in InitAndRunFuzzTest()
37 NWebHelper::Instance().SetBundlePath(pathTmp); in InitAndRunFuzzTest()
/base/web/webview/interfaces/native/
H A Darkweb_interface.cpp71 void* fn = OHOS::NWeb::NWebHelper::Instance().LoadFuncSymbol(functionName); in LoadFunction()
92 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadComponentAPI()
116 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadControllerAPI()
140 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadWebMessagePortAPI()
164 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadWebMessageAPI()
189 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, true)) { in LoadCookieManagerAPI()
H A Darkweb_scheme_handler.cpp103 void* fn = OHOS::NWeb::NWebHelper::Instance().LoadFuncSymbol(functionName); in LoadFunction()
416 if (OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in OH_ArkWeb_RegisterCustomSchemes()
434 if (OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in OH_ArkWeb_SetSchemeHandler()
451 if (OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in OH_ArkWebServiceWorker_SetSchemeHandler()
488 if (OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in OH_ArkWeb_CreateSchemeHandler()
555 if (OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in OH_ArkWeb_CreateResponse()
/base/web/webview/test/unittest/napi_web_cookie_manager_test/
H A Dnapi_web_cookie_manager_test.cpp65 NWebHelper::Instance().SetBundlePath(hapPath); in HWTEST_F()
67 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in HWTEST_F()
/base/web/webview/test/fuzztest/ohos_nweb/napi_fuzzer/
H A Dnapi_fuzzer.cpp30 NWebHelper::Instance().SetBundlePath(path); in NapiFuzzTest()
32 NWebHelper::Instance().Init(false); in NapiFuzzTest()
34 if (NWebHelper::Instance().LoadNWebSDK()) { in NapiFuzzTest()
/base/web/webview/ohos_nweb/include/
H A Dnweb_helper.h38 class OHOS_NWEB_EXPORT NWebHelper { class
40 static NWebHelper& Instance();
41 ~NWebHelper() = default;
94 NWebHelper() = default;
/base/web/webview/interfaces/kits/napi/webadsblockmanager/
H A Dnapi_web_adsblock_manager.cpp113 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsSetAdsBlockRules()
146 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsAddAdsBlockDisallowedList()
179 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsRemoveAdsBlockDisallowedList()
193 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsClearAdsBlockDisallowedList()
226 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsAddAdsBlockAllowedList()
259 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsRemoveAdsBlockAllowedList()
273 OHOS::NWeb::NWebHelper::Instance().GetAdsBlockManager(); in JsClearAdsBlockAllowedList()
/base/web/webview/test/fuzztest/ohos_nweb/getcookiemanager_fuzzer/
H A Dgetcookiemanager_fuzzer.cpp31 NWebHelper::Instance().GetCookieManager(); in GetCookieManagerFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/getdatabase_fuzzer/
H A Dgetdatabase_fuzzer.cpp31 NWebHelper::Instance().GetDataBase(); in GetDataBaseFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/getwebstorage_fuzzer/
H A Dgetwebstorage_fuzzer.cpp31 NWebHelper::Instance().GetWebStorage(); in GetWebStorageFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/loadlib_fuzzer/
H A Dloadlib_fuzzer.cpp34 NWebHelper::Instance().SetBundlePath(path); in LoadLibFuzzTest()
/base/web/webview/test/unittest/ohos_adapter_helper/
H A Dohos_adapter_helper_test.cpp95 NWebHelper& helper = NWebHelper::Instance(); in HWTEST_F()
173 NWebHelper& helper = NWebHelper::Instance(); in HWTEST_F()
176 NWebHelper::Instance().SetHttpDns(config); in HWTEST_F()
/base/web/webview/test/fuzztest/ohos_nweb/sethttpdns_fuzzer/
H A Dsethttpdns_fuzzer.cpp44 NWebHelper::Instance().SetHttpDns(config); in SetHttpDnsFuzzTest()

Completed in 16 milliseconds

12