Home
last modified time | relevance | path

Searched refs:host (Results 1 - 25 of 59) sorted by relevance

123

/base/web/webview/test/fuzztest/ohos_adapter/aafwk_adapter/aafwkbrowserhost_fuzzer/
H A Daafwkbrowserhost_fuzzer.cpp37 auto host = new AafwkBrowserHostImpl(hostAdapter); in AafwkBrowserHostFuzzTest() local
43 host->OnRemoteRequest(code, newdata, reply, option); in AafwkBrowserHostFuzzTest()
45 host->OnRemoteRequest(code, newdata, reply, option); in AafwkBrowserHostFuzzTest()
46 host->HandleQueryRenderSurface(newdata, reply); in AafwkBrowserHostFuzzTest()
47 host->HandleReportThread(newdata, reply); in AafwkBrowserHostFuzzTest()
48 host->HandlePassSurface(newdata, reply); in AafwkBrowserHostFuzzTest()
49 host->HandleDestroyRenderSurface(newdata, reply); in AafwkBrowserHostFuzzTest()
51 host->PassSurface(surface, surface_id); in AafwkBrowserHostFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/selectcertrequest_fuzzer/
H A Dselectcertrequest_fuzzer.cpp37 std::string host((const char*)data, size); in SelectCertRequestFuzzTest()
42 std::vector<std::string> keyTypes = { host }; in SelectCertRequestFuzzTest()
43 std::vector<std::string> issuers = { host }; in SelectCertRequestFuzzTest()
44 handler.OnSslSelectCertRequestByJS(result, host, port, keyTypes, issuers); in SelectCertRequestFuzzTest()
/base/request/request/services/include/
H A Dget_proxy.h47 void GetHttpProxy(const std::string proxyContent, std::string &host, std::string &port, std::string &exclusionList);
48 void InitProxy(std::string &host, std::string &port, std::string &exclusion);
49 void SetHttpProxy(std::string host, std::string port, std::string list) in SetHttpProxy() argument
51 REQUEST_HILOGD("SysNetProxyManager SetHttpProxy host is %{public}s", host.c_str()); in SetHttpProxy()
55 host_ = host; in SetHttpProxy()
/base/request/request/services/src/cxx/
H A Dget_proxy.cpp76 void SysNetProxyManager::InitProxy(std::string &host, std::string &port, std::string &exclusion) in InitProxy() argument
85 host = host_res; in InitProxy()
86 if (host == DEFAULT_HTTP_PROXY_HOST) { in InitProxy()
87 host = std::string(); in InitProxy()
113 std::string host; in OnReceiveEvent() local
117 SysNetProxyManager::GetInstance().GetHttpProxy(proxyContent, host, port, exclusionList); in OnReceiveEvent()
119 SysNetProxyManager::GetInstance().SetHttpProxy(host, port, exclusionList); in OnReceiveEvent()
124 const std::string proxyContent, std::string &host, std::string &port, std::string &exclusionList) in GetHttpProxy()
135 host = hostContent; in GetHttpProxy()
123 GetHttpProxy( const std::string proxyContent, std::string &host, std::string &port, std::string &exclusionList) GetHttpProxy() argument
/base/web/webview/test/unittest/aafwk_app_client_adapter/
H A Dnweb_aafwk_adapter_test.cpp597 * @tc.desc: test browser host.
604 auto host = new AafwkBrowserHostImpl(hostAdapter); in HWTEST_F() local
605 ASSERT_NE(host, nullptr); in HWTEST_F()
610 host->OnRemoteRequest(code, data, reply, option); in HWTEST_F()
613 host->OnRemoteRequest(code, data, reply, option); in HWTEST_F()
616 host->OnRemoteRequest(code, data, reply, option); in HWTEST_F()
621 * @tc.desc: test browser host.
628 auto host = new AafwkBrowserHostImpl(hostAdapter); in HWTEST_F() local
629 ASSERT_NE(host, nullptr); in HWTEST_F()
632 host in HWTEST_F()
644 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
660 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
676 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
692 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
707 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
725 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
741 auto host = new AafwkBrowserHostImpl(hostAdapter); HWTEST_F() local
[all...]
/base/web/webview/ohos_adapter/net_proxy_adapter/src/
H A Dnet_proxy_adapter_impl.cpp215 std::string host; in Changed() local
221 GetProperty(host, port, pacUrl, exclusion); in Changed()
224 cb_->Changed(host, port, "", exclusionList); in Changed()
261 WVLOG_D("App netproxy config change, receive host is %{public}s, port is %{public}d", in StartListenAppProxy()
263 std::string host; in StartListenAppProxy()
264 host.assign(httpProxy.GetHost()); in StartListenAppProxy()
265 if (host == EMPTY_HTTP_PROXY_HOST) { in StartListenAppProxy()
273 WVLOG_D("App netproxy config clear, GetDefaultHttpProxy host is %{public}s, port is %{public}d", in StartListenAppProxy()
276 host.assign(httpProxy.GetHost()); in StartListenAppProxy()
279 if (host in StartListenAppProxy()
340 std::string host; OnReceiveEvent() local
356 GetProperty(std::string& host, uint16_t& port, std::string& pacUrl, std::string& exclusion) GetProperty() argument
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_ohos_web_data_base_adapter_impl.cpp35 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& username, const char* password) in SaveHttpAuthCredentials()
37 real_.SaveHttpAuthCredentials(ArkWebStringStructToClass(host), ArkWebStringStructToClass(realm), in SaveHttpAuthCredentials()
42 const ArkWebString& host, const ArkWebString& realm, ArkWebString& username, char* password, uint32_t passwordSize) in GetHttpAuthCredentials()
46 ArkWebStringStructToClass(host), ArkWebStringStructToClass(realm), s_username, password, passwordSize); in GetHttpAuthCredentials()
34 SaveHttpAuthCredentials( const ArkWebString& host, const ArkWebString& realm, const ArkWebString& username, const char* password) SaveHttpAuthCredentials() argument
41 GetHttpAuthCredentials( const ArkWebString& host, const ArkWebString& realm, ArkWebString& username, char* password, uint32_t passwordSize) GetHttpAuthCredentials() argument
H A Dark_net_proxy_event_callback_adapter_wrapper.cpp27 void ArkNetProxyEventCallbackAdapterWrapper::Changed(const std::string& host, const uint16_t& port, in Changed() argument
30 ArkWebString ark_host = ArkWebStringClassToStruct(host); in Changed()
H A Dark_net_proxy_adapter_impl.cpp46 ArkWebString& host, uint16_t& port, ArkWebString& pacUrl, ArkWebString& exclusion) in GetProperty()
53 host = ArkWebStringClassToStruct(s_host); in GetProperty()
45 GetProperty( ArkWebString& host, uint16_t& port, ArkWebString& pacUrl, ArkWebString& exclusion) GetProperty() argument
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_data_base_impl.cpp31 void ArkWebDataBaseImpl::GetHttpAuthCredentials(const ArkWebString& host, const ArkWebString& realm, in GetHttpAuthCredentials() argument
36 ArkWebStringStructToClass(host), ArkWebStringStructToClass(realm), cls_user_name, password, password_size); in GetHttpAuthCredentials()
41 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& user_name, const char* password) in SaveHttpAuthCredentials()
43 nweb_data_base_->SaveHttpAuthCredentials(ArkWebStringStructToClass(host), ArkWebStringStructToClass(realm), in SaveHttpAuthCredentials()
40 SaveHttpAuthCredentials( const ArkWebString& host, const ArkWebString& realm, const ArkWebString& user_name, const char* password) SaveHttpAuthCredentials() argument
/base/web/webview/interfaces/kits/cj/src/
H A Dweb_data_base.cpp30 CArrString WebDataBase::CJGetHttpAuthCredentials(const std::string &host, const std::string &realm) in CJGetHttpAuthCredentials() argument
37 database->GetHttpAuthCredentials(host, realm, username_s, password, MAX_PWD_LENGTH + 1); in CJGetHttpAuthCredentials()
72 void WebDataBase::CJSaveHttpAuthCredentials(const std::string &host, const std::string &realm, in CJSaveHttpAuthCredentials() argument
78 database->SaveHttpAuthCredentials(host, realm, username, password.c_str()); in CJSaveHttpAuthCredentials()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_net_proxy_event_callback_adapter_impl.cpp25 const ArkWebString& host, const uint16_t& port, const ArkWebString& pacUrl, const ArkWebStringVector& exclusionList) in Changed()
27 real_->Changed(ArkWebStringStructToClass(host), port, ArkWebStringStructToClass(pacUrl), in Changed()
24 Changed( const ArkWebString& host, const uint16_t& port, const ArkWebString& pacUrl, const ArkWebStringVector& exclusionList) Changed() argument
H A Dark_ohos_web_data_base_adapter_wrapper.cpp41 const std::string& host, const std::string& realm, const std::string& username, const char* password) in SaveHttpAuthCredentials()
46 ArkWebString ark_host = ArkWebStringClassToStruct(host); in SaveHttpAuthCredentials()
56 const std::string& host, const std::string& realm, std::string& username, char* password, uint32_t passwordSize) in GetHttpAuthCredentials()
61 ArkWebString ark_host = ArkWebStringClassToStruct(host); in GetHttpAuthCredentials()
40 SaveHttpAuthCredentials( const std::string& host, const std::string& realm, const std::string& username, const char* password) SaveHttpAuthCredentials() argument
55 GetHttpAuthCredentials( const std::string& host, const std::string& realm, std::string& username, char* password, uint32_t passwordSize) GetHttpAuthCredentials() argument
H A Dark_net_proxy_adapter_wrapper.cpp56 std::string& host, uint16_t& port, std::string& pacUrl, std::string& exclusion) in GetProperty()
65 host = ArkWebStringStructToClass(ark_host); in GetProperty()
55 GetProperty( std::string& host, uint16_t& port, std::string& pacUrl, std::string& exclusion) GetProperty() argument
/base/web/webview/interfaces/kits/cj/include/
H A Dweb_data_base.h32 static CArrString CJGetHttpAuthCredentials(const std::string &host, const std::string &realm);
33 static void CJSaveHttpAuthCredentials(const std::string &host, const std::string &realm,
/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/
H A Dnet_proxy_adapter_test.cpp182 void Changed(const std::string& host, const uint16_t& port, const std::string& pacUrl, in Changed() argument
218 std::string host; in HWTEST_F() local
225 NetProxyAdapterImpl::GetInstance().GetProperty(host, port, pacUrl, exclusion); in HWTEST_F()
229 NetProxyAdapterImpl::GetInstance().GetProperty(host, port, pacUrl, exclusion); in HWTEST_F()
268 std::string host; in HWTEST_F() local
272 NetProxyAdapterImpl::GetInstance().GetProperty(host, port, pacUrl, exclusion); in HWTEST_F()
274 NetProxyAdapterImpl::GetInstance().GetProperty(host, port, pacUrl, exclusion); in HWTEST_F()
279 NetProxyAdapterImpl::GetInstance().GetProperty(host, port, pacUrl, exclusion); in HWTEST_F()
296 std::string host; in HWTEST_F() local
300 NetProxyAdapterImpl::GetInstance().GetProperty(host, por in HWTEST_F()
[all...]
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/gethttpauthcredentials_fuzzer/
H A Dgethttpauthcredentials_fuzzer.cpp32 std::string host((const char*)data, size); in GetHttpAuthCredentialsFuzzTest()
36 OhosWebDataBaseAdapterImpl::GetInstance().GetHttpAuthCredentials(host, realm, username, password, maxLen + 1); in GetHttpAuthCredentialsFuzzTest()
/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dnet_proxy_adapter.h28 virtual void Changed(const std::string& host, const uint16_t& port, const std::string& pacUrl,
43 virtual void GetProperty(std::string& host, uint16_t& port, std::string& pacUrl, std::string& exclusion) = 0;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_net_proxy_adapter.h29 virtual void Changed(const ArkWebString& host, const uint16_t& port, const ArkWebString& pacUrl,
46 virtual void GetProperty(ArkWebString& host, uint16_t& port, ArkWebString& pacUrl, ArkWebString& exclusion) = 0;
H A Dark_ohos_web_data_base_adapter.h36 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& username, const char* password) = 0;
39 virtual void GetHttpAuthCredentials(const ArkWebString& host, const ArkWebString& realm, ArkWebString& username,
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/savehttpauthcredentials_fuzzer/
H A Dsavehttpauthcredentials_fuzzer.cpp31 std::string host((const char*)data, size); in SaveHttpAuthCredentialsFuzzTest()
35 OhosWebDataBaseAdapterImpl::GetInstance().SaveHttpAuthCredentials(host, realm, name, str); in SaveHttpAuthCredentialsFuzzTest()
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_data_base_wrapper.cpp32 const std::string& host, const std::string& realm, std::string& user_name, char* password, uint32_t password_size) in GetHttpAuthCredentials()
34 ArkWebString stHost = ArkWebStringClassToStruct(host); in GetHttpAuthCredentials()
47 const std::string& host, const std::string& realm, const std::string& user_name, const char* password) in SaveHttpAuthCredentials()
49 ArkWebString stHost = ArkWebStringClassToStruct(host); in SaveHttpAuthCredentials()
31 GetHttpAuthCredentials( const std::string& host, const std::string& realm, std::string& user_name, char* password, uint32_t password_size) GetHttpAuthCredentials() argument
46 SaveHttpAuthCredentials( const std::string& host, const std::string& realm, const std::string& user_name, const char* password) SaveHttpAuthCredentials() argument
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_data_base.h40 * @param host the host to which the credentials apply.
47 virtual void GetHttpAuthCredentials(const ArkWebString& host, const ArkWebString& realm, ArkWebString& user_name,
53 * @param host the host to which the credentials apply.
60 const ArkWebString& host, const ArkWebString& realm, const ArkWebString& user_name, const char* password) = 0;
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/src/
H A Dohos_web_data_base_adapter_impl.cpp35 static const std::string HTTPAUTH_HOST_COL = "host";
109 void OhosWebDataBaseAdapterImpl::SaveHttpAuthCredentials(const std::string& host, const std::string& realm, in SaveHttpAuthCredentials() argument
113 if (host.empty() || username.empty() || password == nullptr) { in SaveHttpAuthCredentials()
125 valuesBucket.PutString(HTTPAUTH_HOST_COL, host); in SaveHttpAuthCredentials()
138 void OhosWebDataBaseAdapterImpl::GetHttpAuthCredentials(const std::string& host, const std::string& realm, in GetHttpAuthCredentials() argument
142 if (host.empty() || password == nullptr || passwordSize == 0) { in GetHttpAuthCredentials()
151 dirAbsPred.EqualTo(HTTPAUTH_HOST_COL, host); in GetHttpAuthCredentials()
/base/web/webview/interfaces/kits/napi/webdatabase/
H A Dnapi_web_data_base.cpp150 std::string host; in JsSaveHttpAuthCredentials() local
151 if (!GetStringPara(env, argv[PARAMZERO], host)) { in JsSaveHttpAuthCredentials()
153 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "host", "string")); in JsSaveHttpAuthCredentials()
168 if (host.empty() || username.empty()) { in JsSaveHttpAuthCredentials()
188 dataBase->SaveHttpAuthCredentials(host, realm, username, password); in JsSaveHttpAuthCredentials()
210 std::string host; in JsGetHttpAuthCredentials() local
211 if (!GetStringPara(env, argv[PARAMZERO], host)) { in JsGetHttpAuthCredentials()
213 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "host", "string")); in JsGetHttpAuthCredentials()
224 if (host.empty()) { in JsGetHttpAuthCredentials()
226 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NOT_NULL, "host")); in JsGetHttpAuthCredentials()
[all...]

Completed in 13 milliseconds

123