/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_cookie_manager_impl.cpp | 45 int ArkWebCookieManagerImpl::SetCookie(const ArkWebString& url, const ArkWebString& value, bool incognito_mode) in SetCookie() argument 48 ArkWebStringStructToClass(url), ArkWebStringStructToClass(value), incognito_mode); in SetCookie() 52 const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback) in SetCookie() 55 nweb_cookie_manager_->SetCookie(ArkWebStringStructToClass(url), ArkWebStringStructToClass(value), nullptr); in SetCookie() 59 nweb_cookie_manager_->SetCookie(ArkWebStringStructToClass(url), ArkWebStringStructToClass(value), in SetCookie() 78 ArkWebString ArkWebCookieManagerImpl::ReturnCookie(const ArkWebString& url, bool& is_valid, bool incognito_mode) in ReturnCookie() argument 81 nweb_cookie_manager_->ReturnCookie(ArkWebStringStructToClass(url), is_valid, incognito_mode)); in ReturnCookie() 84 void ArkWebCookieManagerImpl::ReturnCookie(const ArkWebString& url, ArkWebRefPtr<ArkWebStringValueCallback> callback) in ReturnCookie() argument 87 nweb_cookie_manager_->ReturnCookie(ArkWebStringStructToClass(url), nullptr); in ReturnCookie() 92 ArkWebStringStructToClass(url), st in ReturnCookie() 51 SetCookie( const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback) SetCookie() argument 95 ConfigCookie( const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebLongValueCallback> callback) ConfigCookie() argument 158 GetCookieAsync( const ArkWebString& url, bool incognitoMode, ArkWebRefPtr<ArkWebStringValueCallback> callback) GetCookieAsync() argument 170 SetCookieSync( const ArkWebString& url, const ArkWebString& value, bool incognitoMode, bool includeHttpOnly) SetCookieSync() argument 177 SetCookieAsync(const ArkWebString& url, const ArkWebString& value, bool incognitoMode, bool includeHttpOnly, ArkWebRefPtr<ArkWebLongValueCallback> callback) SetCookieAsync() argument [all...] |
H A D | ark_web_cookie_manager_impl.h | 51 * @param url the URL for which the cookie is to be set. 59 int SetCookie(const ArkWebString& url, const ArkWebString& value, bool incognito_mode) override; 64 * @param url the URL for which the cookie is to be set. 70 const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback) override; 92 * @param url the URL for which the cookies are requested. 98 ArkWebString ReturnCookie(const ArkWebString& url, bool& is_valid, bool incognito_mode) override; 103 * @param url the URL for which the cookies are requested. 107 void ReturnCookie(const ArkWebString& url, ArkWebRefPtr<ArkWebStringValueCallback> callback) override; 112 * @param url the URL for which the cookie is to be set. 118 const ArkWebString& url, cons [all...] |
H A D | ark_web_adsblock_manager_impl.cpp | 26 void ArkWebAdsBlockManagerImpl::SetAdsBlockRules(const ArkWebString &url, bool replace) in SetAdsBlockRules() argument 28 nweb_adsblock_manager_->SetAdsBlockRules(ArkWebStringStructToClass(url), replace); in SetAdsBlockRules()
|
/base/security/certificate_framework/frameworks/common/v1.0/src/ |
H A D | utils.c | 72 bool CfIsUrlValid(const char *url) in CfIsUrlValid() argument 74 if (url == NULL) { in CfIsUrlValid() 77 if (strlen(url) < MIN_URL_LEN) { in CfIsUrlValid() 80 if (strncmp(url, "http://", HTTP_URL_LEN) != 0 && strncmp(url, "https://", HTTPS_URL_LEN) != 0) { in CfIsUrlValid() 84 int httpHeaderLen = (strncmp(url, "http://", HTTP_URL_LEN) == 0) ? HTTP_URL_LEN : HTTPS_URL_LEN; in CfIsUrlValid() 85 const char *startDomain = url + httpHeaderLen; in CfIsUrlValid() 109 bool CfIsHttp(const char *url) in CfIsHttp() argument 111 if (url != NULL && strncmp(url, "htt in CfIsHttp() [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_cookie_manager_wrapper.cpp | 45 int ArkWebCookieManagerWrapper::SetCookie(const std::string& url, const std::string& value, bool incognito_mode) in SetCookie() argument 47 ArkWebString stUrl = ArkWebStringClassToStruct(url); in SetCookie() 58 const std::string& url, const std::string& value, std::shared_ptr<OHOS::NWeb::NWebBoolValueCallback> callback) in SetCookie() 60 ArkWebString stUrl = ArkWebStringClassToStruct(url); in SetCookie() 88 std::string ArkWebCookieManagerWrapper::ReturnCookie(const std::string& url, bool& is_valid, bool incognito_mode) in ReturnCookie() argument 90 ArkWebString stUrl = ArkWebStringClassToStruct(url); in ReturnCookie() 101 const std::string& url, std::shared_ptr<OHOS::NWeb::NWebStringValueCallback> callback) in ReturnCookie() 103 ArkWebString stUrl = ArkWebStringClassToStruct(url); in ReturnCookie() 115 const std::string& url, const std::string& value, std::shared_ptr<OHOS::NWeb::NWebLongValueCallback> callback) in ConfigCookie() 117 ArkWebString stUrl = ArkWebStringClassToStruct(url); in ConfigCookie() 57 SetCookie( const std::string& url, const std::string& value, std::shared_ptr<OHOS::NWeb::NWebBoolValueCallback> callback) SetCookie() argument 100 ReturnCookie( const std::string& url, std::shared_ptr<OHOS::NWeb::NWebStringValueCallback> callback) ReturnCookie() argument 114 ConfigCookie( const std::string& url, const std::string& value, std::shared_ptr<OHOS::NWeb::NWebLongValueCallback> callback) ConfigCookie() argument 181 ReturnCookieWithHttpOnly( const std::string& url, bool& is_valid, bool incognito_mode, bool includeHttpOnly) ReturnCookieWithHttpOnly() argument 187 SetCookieWithHttpOnly( const std::string& url, const std::string& value, bool incognito_mode, bool includeHttpOnly) SetCookieWithHttpOnly() argument 193 GetCookieAsync( const std::string& url, bool incognitoMode, std::shared_ptr<OHOS::NWeb::NWebStringValueCallback> callback) GetCookieAsync() argument 207 SetCookieSync( const std::string& url, const std::string& value, bool incognitoMode, bool includeHttpOnly) SetCookieSync() argument 220 SetCookieAsync(const std::string& url, const std::string& value, bool incognitoMode, bool includeHttpOnly, std::shared_ptr<OHOS::NWeb::NWebLongValueCallback> callback) SetCookieAsync() argument [all...] |
H A D | ark_web_cookie_manager_wrapper.h | 49 * @param url the URL for which the cookie is to be set. 57 int SetCookie(const std::string& url, const std::string& value, bool incognito_mode) override; 62 * @param url the URL for which the cookie is to be set. 67 void SetCookie(const std::string& url, const std::string& value, 90 * @param url the URL for which the cookies are requested. 96 std::string ReturnCookie(const std::string& url, bool& is_valid, bool incognito_mode) override; 101 * @param url the URL for which the cookies are requested. 105 void ReturnCookie(const std::string& url, std::shared_ptr<OHOS::NWeb::NWebStringValueCallback> callback) override; 110 * @param url the URL for which the cookie is to be set. 115 void ConfigCookie(const std::string& url, cons [all...] |
H A D | ark_web_handler_impl.h | 44 * given url. 46 * @param url The url of the resource. 48 void OnResource(const ArkWebString& url) override; 96 * @param url The url of the web site. 98 void OnPageLoadEnd(int http_status_code, const ArkWebString& url) override; 104 * @param url The url to be loaded. 106 void OnPageLoadBegin(const ArkWebString& url) overrid [all...] |
H A D | ark_web_handler_impl.cpp | 97 void ArkWebHandlerImpl::OnResource(const ArkWebString& url) in OnResource() argument 99 nweb_handler_->OnResource(ArkWebStringStructToClass(url)); in OnResource() 148 void ArkWebHandlerImpl::OnPageLoadEnd(int http_status_code, const ArkWebString& url) in OnPageLoadEnd() argument 150 nweb_handler_->OnPageLoadEnd(http_status_code, ArkWebStringStructToClass(url)); in OnPageLoadEnd() 153 void ArkWebHandlerImpl::OnPageLoadBegin(const ArkWebString& url) in OnPageLoadBegin() argument 155 nweb_handler_->OnPageLoadBegin(ArkWebStringStructToClass(url)); in OnPageLoadBegin() 158 void ArkWebHandlerImpl::OnPageLoadError(int error_code, const ArkWebString& description, const ArkWebString& url) in OnPageLoadError() argument 160 nweb_handler_->OnPageLoadError(error_code, ArkWebStringStructToClass(description), ArkWebStringStructToClass(url)); in OnPageLoadError() 279 void ArkWebHandlerImpl::OnRefreshAccessedHistory(const ArkWebString& url, bool is_reload) in OnRefreshAccessedHistory() argument 281 nweb_handler_->OnRefreshAccessedHistory(ArkWebStringStructToClass(url), is_reloa in OnRefreshAccessedHistory() 367 OnAlertDialogByJS( const ArkWebString& url, const ArkWebString& message, ArkWebRefPtr<ArkWebJsDialogResult> result) OnAlertDialogByJS() argument 379 OnBeforeUnloadByJS( const ArkWebString& url, const ArkWebString& message, ArkWebRefPtr<ArkWebJsDialogResult> result) OnBeforeUnloadByJS() argument 391 OnPromptDialogByJS(const ArkWebString& url, const ArkWebString& message, const ArkWebString& default_value, ArkWebRefPtr<ArkWebJsDialogResult> result) OnPromptDialogByJS() argument 403 OnConfirmDialogByJS( const ArkWebString& url, const ArkWebString& message, ArkWebRefPtr<ArkWebJsDialogResult> result) OnConfirmDialogByJS() argument 465 OnPageVisible(const ArkWebString& url) OnPageVisible() argument 730 OnAllSslErrorRequestByJS(ArkWebRefPtr<ArkWebJsAllSslErrorResult> result, int error, const ArkWebString& url, const ArkWebString& originalUrl, const ArkWebString& referrer, bool isFatalError, bool isMainFrame) OnAllSslErrorRequestByJS() argument 774 OnOpenAppLink(const ArkWebString& url, ArkWebRefPtr<ArkWebAppLinkCallback> callback) OnOpenAppLink() argument 863 OnAdsBlocked(const ArkWebString& url, const ArkWebStringVector& adsBlocked) OnAdsBlocked() argument [all...] |
H A D | ark_web_download_callback_impl.cpp | 27 void ArkWebDownloadCallbackImpl::OnDownloadStart(const ArkWebString& url, const ArkWebString& user_agent, in OnDownloadStart() argument 30 nweb_download_callback_->OnDownloadStart(ArkWebStringStructToClass(url), ArkWebStringStructToClass(user_agent), in OnDownloadStart()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_cookie_manager.h | 50 * @param url the URL for which the cookie is to be set. 59 virtual int SetCookie(const ArkWebString& url, const ArkWebString& value, bool incognito_mode) = 0; 64 * @param url the URL for which the cookie is to be set. 71 const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback) = 0; 95 * @param url the URL for which the cookies are requested. 102 virtual ArkWebString ReturnCookie(const ArkWebString& url, bool& is_valid, bool incognito_mode) = 0; 107 * @param url the URL for which the cookies are requested. 112 virtual void ReturnCookie(const ArkWebString& url, ArkWebRefPtr<ArkWebStringValueCallback> callback) = 0; 117 * @param url the URL for which the cookie is to be set. 124 const ArkWebString& url, cons [all...] |
H A D | ark_web_handler.h | 80 * given url. 82 * @param url The url of the resource. 85 virtual void OnResource(const ArkWebString& url) = 0; 139 * @param url The url of the web site. 142 virtual void OnPageLoadEnd(int http_status_code, const ArkWebString& url) = 0; 148 * @param url The url to be loaded. 151 virtual void OnPageLoadBegin(const ArkWebString& url) [all...] |
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_cookie_manager.h | 80 * @param url the URL for which the cookies are requested. 83 virtual void ReturnCookie(const std::string& url, std::shared_ptr<NWebStringValueCallback> callback) = 0; 88 * @param url the URL for which the cookies are requested. 93 virtual std::string ReturnCookie(const std::string& url, bool& is_valid, bool incognito_mode) = 0; 98 * @param url the URL for which the cookie is to be set. 103 const std::string& url, const std::string& value, std::shared_ptr<NWebBoolValueCallback> callback) = 0; 108 * @param url the URL for which the cookie is to be set. 113 virtual int SetCookie(const std::string& url, const std::string& value, bool incognito_mode) = 0; 164 * @param url the URL for which the cookie is to be set. 169 const std::string& url, cons 181 ReturnCookieWithHttpOnly( const std::string& url, bool& is_valid, bool incognito_mode, bool includeHttpOnly) ReturnCookieWithHttpOnly() argument 194 SetCookieWithHttpOnly( const std::string& url, const std::string& value, bool incognito_mode, bool includeHttpOnly) SetCookieWithHttpOnly() argument [all...] |
/base/update/updateservice/services/firmware/data/db/src/ |
H A D | firmware_component_operator.cpp | 22 bool FirmwareComponentOperator::UpdateProgressByUrl(const std::string &url, UpgradeStatus status, int32_t progress) in UpdateProgressByUrl() argument 29 predicates.EqualTo(COLUMN_COMPONENT_DOWNLOAD_URL, url); in UpdateProgressByUrl() 33 bool FirmwareComponentOperator::UpdateUrlByVersionId(const std::string &versionId, const std::string &url) in UpdateUrlByVersionId() argument 36 values.PutString(COLUMN_COMPONENT_DOWNLOAD_URL, url); in UpdateUrlByVersionId() 55 bool FirmwareComponentOperator::QueryByUrl(const std::string &url, FirmwareComponent &component) in QueryByUrl() argument 59 predicates.EqualTo(COLUMN_COMPONENT_DOWNLOAD_URL, url); in QueryByUrl()
|
H A D | firmware_component_operator_empty.cpp | 37 bool FirmwareComponentOperator::UpdateProgressByUrl(const std::string &url, UpgradeStatus status, int32_t progress) in UpdateProgressByUrl() argument 42 bool FirmwareComponentOperator::UpdateUrlByVersionId(const std::string &versionId, const std::string &url) in UpdateUrlByVersionId() argument 52 bool FirmwareComponentOperator::QueryByUrl(const std::string &url, FirmwareComponent &component) in QueryByUrl() argument
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
H A D | napi_mms_pdu.cpp | 49 for (std::string url : dbUrls) { in DeleteMmsPdu() 50 predicates.EqualTo(ID, url); in DeleteMmsPdu() 128 std::vector<std::string> NAPIMmsPdu::SplitUrl(std::string url) in SplitUrl() argument 131 while (url.size() > 0) { in SplitUrl() 132 size_t locate = url.find_first_of(','); in SplitUrl() 136 dbUrls.push_back(url.substr(0, locate)); in SplitUrl() 137 url = url.substr(locate + 1); in SplitUrl() 152 for (std::string url : dbUrls) { in QueryMmsPdu() 153 urlData.append(url in QueryMmsPdu() [all...] |
/base/request/request/services/src/cxx/ |
H A D | url_policy.cpp | 74 int32_t UrlPolicy::CheckUrlDomain(std::string app_id, std::string domain_type, std::string url) in CheckUrlDomain() argument 85 res = this->checkUrlFunc(app_id, domain_type, url); in CheckUrlDomain() 91 int32_t PolicyCheckUrlDomain(CStringWrapper app_id, CStringWrapper domain_type, CStringWrapper url) in PolicyCheckUrlDomain() argument 95 std::string urlStr(url.cStr, url.len); in PolicyCheckUrlDomain()
|
/base/request/request/pre_download/native/src/download/ |
H A D | wrapper.rs | 20 pub fn pre_download(url: String, options: PreDownloadOptions) -> Box<TaskHandle> { in pre_download() 22 request.url(&url); in pre_download() 68 fn pre_download(url: String, options: PreDownloadOptions) -> Box<TaskHandle>; in pre_download()
|
/base/telephony/sms_mms/services/mms/ |
H A D | mms_persist_helper.cpp | 66 for (std::string url : dbUrls) { in DeleteMmsPdu() 67 predicates.EqualTo("id", url); in DeleteMmsPdu() 143 std::vector<std::string> MmsPersistHelper::SplitUrl(std::string url) in SplitUrl() argument 146 while (url.size() > 0) { in SplitUrl() 147 size_t locate = url.find_first_of(','); in SplitUrl() 151 dbUrls.push_back(url.substr(0, locate)); in SplitUrl() 152 url = url.substr(locate + 1); in SplitUrl() 167 for (std::string url : dbUrls) { in QueryMmsPdu() 171 predicates.EqualTo(ID, url); in QueryMmsPdu() [all...] |
/base/update/updateservice/services/firmware/data/db/include/ |
H A D | firmware_component_operator.h | 47 bool UpdateProgressByUrl(const std::string &url, UpgradeStatus status, int32_t progress); 48 bool UpdateUrlByVersionId(const std::string &versionId, const std::string &url); 50 bool QueryByUrl(const std::string &url, FirmwareComponent &component);
|
/base/security/certificate_framework/frameworks/common/v1.0/inc/ |
H A D | utils.h | 34 bool CfIsUrlValid(const char *url); 35 bool CfIsHttp(const char *url);
|
/base/request/request/frameworks/js/napi/src/upload/ |
H A D | curl_adp.cpp | 140 curl_easy_setopt(curl, CURLOPT_URL, config_->url.c_str());
in SetNetworkOpt() 150 if (config_->url.find("https") != 0) {
in SetSslOpt() 322 for (auto url : curlArray_) {
in ClearCurlResource() 323 curl_multi_remove_handle(curlMulti_, url);
in ClearCurlResource() 324 curl_easy_cleanup(url);
in ClearCurlResource() 338 UPLOAD_HILOGE(UPLOAD_MODULE_FRAMEWORK, "CheckCUrlAdp url == nullptr");
in CheckCUrlAdp() 343 UPLOAD_HILOGE(UPLOAD_MODULE_FRAMEWORK, "CheckCUrlAdp url->IsReadAbort()");
in CheckCUrlAdp() 356 std::shared_ptr<CUrlAdp> url = fData->adp;
in ProgressCallback() local 357 std::lock_guard<std::mutex> lock(url->curlMutex_);
in ProgressCallback() 369 if (url in ProgressCallback() 390 std::shared_ptr<CUrlAdp> url = fData->adp; HeaderCallback() local 447 std::shared_ptr<CUrlAdp> url = fData->adp; ReadCallback() local [all...] |
/base/request/request/services/src/task/ |
H A D | client.rs | 57 // HTTP url that contains redirects also require a certificate when 83 "ApiPolicy Domain check, tid {}, bundle {}, domain_type {}, url {}", 84 config.common_data.task_id, &config.bundle, &domain_type, &config.url 87 if let Some(is_accessed) = check_url_domain(&config.bundle, &domain_type, &config.url) { 90 "Intercept request by domain check, tid {}, bundle {}, domain_type {}, url {}", 91 config.common_data.task_id, &config.bundle, &domain_type, &config.url 99 "Intercept request by domain check, tid {}, domain_type {}, url {}", 100 config.common_data.task_id, &domain_type, &config.url 143 .add(&config.url, &config.certificate_pins) in build_task_certificate_pins() 224 let url in intercept_redirect_request() [all...] |
/base/web/webview/test/fuzztest/load_fuzzer/ |
H A D | load_fuzzer.cpp | 32 std::string url((const char *)data, size); in LoadFuzzTest() 33 g_nweb->Load(url); in LoadFuzzTest()
|
/base/web/webview/test/fuzztest/loadurl_fuzzer/ |
H A D | loadurl_fuzzer.cpp | 32 std::string url((const char *)data, size); in LoadUrlFuzzTest() 34 g_nweb->Load(url, additionalHttpHeaders); in LoadUrlFuzzTest()
|
/base/web/webview/interfaces/kits/cj/include/ |
H A D | web_cookie_manager.h | 29 static std::string CjGetCookie(const std::string &url, bool incognitoMode, int32_t& errCode); 30 static int32_t CjSetCookie(const std::string& url, const std::string& value, bool incognitoMode);
|