Lines Matching defs:std

269 extern "C" NWebDownloadItemState WebDownload_GetItemStateByGuid(const std::string& guid)
589 void NWebHelper::TryPreReadLib(bool isFirstTimeStartUpWeb, const std::string& bundlePath)
600 static void TryPreReadLibForFirstlyAppStartUp(const std::string& bundlePath)
603 std::thread preReadThread(
647 auto appMgrClient = std::make_unique<OHOS::AppExecFwk::AppMgrClient>();
679 auto initArgs = std::make_shared<NWebEngineInitArgsImpl>();
682 initArgs->AddArg(std::string("--user-data-dir=").append(ctx->GetBaseDir()));
683 initArgs->AddArg(std::string("--bundle-installation-dir=").append(bundlePath_));
685 std::string arkWebInstallPath = OHOS::system::GetParameter("persist.arkwebcore.install_path", "");
687 initArgs->AddArg(std::string("--arkwebcore-install-path=").append(arkWebInstallPath));
693 initArgs->AddArg(std::string("--ohos-custom-scheme=").append(customSchemeCmdLine_));
696 std::string systemRegion = OHOS::Global::I18n::LocaleConfig::GetSystemRegion();
697 std::string systemLanguage = OHOS::Global::I18n::LocaleConfig::GetSystemLanguage();
700 if (dashPos == std::string::npos) {
701 initArgs->AddArg(std::string("--lang=").append(systemLanguage + "-" + systemRegion));
703 initArgs->AddArg(std::string("--lang=").append(systemLanguage.substr(0, dashPos) + "-" + systemRegion));
744 void NWebHelper::SetBundlePath(const std::string& path)
749 std::shared_ptr<NWeb> NWebHelper::CreateNWeb(std::shared_ptr<NWebCreateInfo> create_info)
759 std::shared_ptr<NWebCookieManager> NWebHelper::GetCookieManager()
769 std::shared_ptr<NWeb> NWebHelper::GetNWeb(int32_t nweb_id)
789 void NWebHelper::SetHttpDns(std::shared_ptr<NWebDOHConfig> config)
805 void NWebHelper::PrepareForPageLoad(std::string url, bool preconnectable, int32_t numSockets)
815 std::shared_ptr<NWebDataBase> NWebHelper::GetDataBase()
825 std::shared_ptr<NWebWebStorage> NWebHelper::GetWebStorage()
852 void NWebHelper::AddIntelligentTrackingPreventionBypassingList(const std::vector<std::string>& hosts)
862 void NWebHelper::RemoveIntelligentTrackingPreventionBypassingList(const std::vector<std::string>& hosts)
882 std::string NWebHelper::GetDefaultUserAgent()
912 void NWebHelper::PrefetchResource(const std::shared_ptr<NWebEnginePrefetchArgs>& pre_args,
913 const std::map<std::string, std::string>& additional_http_headers, const std::string& cache_key,
924 void NWebHelper::ClearPrefetchedResource(const std::vector<std::string>& cache_key_list)
954 void NWebHelper::SetHostIP(const std::string& hostName, const std::string& address, int32_t aliveTime)
976 void NWebHelper::ClearHostIP(const std::string& hostName)
986 void NWebHelper::WarmupServiceWorker(const std::string& url)
1006 std::shared_ptr<NWebAdsBlockManager> NWebHelper::GetAdsBlockManager()
1046 std::shared_ptr<NWeb> NWebAdapterHelper::CreateNWeb(sptr<Surface> surface,
1047 std::shared_ptr<NWebEngineInitArgsImpl> initArgs, uint32_t width, uint32_t height, bool incognitoMode)
1062 std::shared_ptr<AbilityRuntime::ApplicationContext> ctx =
1065 std::string bundleName = ctx->GetBundleName();
1066 initArgs->AddArg(std::string("--bundle-name=").append(bundleName));
1079 std::shared_ptr<NWeb> NWebAdapterHelper::CreateNWeb(void* enhanceSurfaceInfo,
1080 std::shared_ptr<NWebEngineInitArgsImpl> initArgs, uint32_t width, uint32_t height, bool incognitoMode)
1103 void NWebAdapterHelper::ParseConfig(std::shared_ptr<NWebEngineInitArgsImpl> initArgs)
1108 std::vector<FrameRateSetting> NWebAdapterHelper::GetPerfConfig(const std::string& settingName)
1114 std::string NWebAdapterHelper::ParsePerfConfig(const std::string& configNodeName, const std::string& argsNodeName)
1116 std::string config = NWebConfigHelper::Instance().ParsePerfConfig(configNodeName, argsNodeName);
1120 bool NWebAdapterHelper::IsLTPODynamicApp(const std::string& bundleName)