| /base/web/webview/ohos_interface/include/ohos_nweb/ |
| D | nweb_cookie_manager.h | 78 * @brief Gets all the cookies for the given URL. 80 * @param url the URL for which the cookies are requested. 83 …virtual void ReturnCookie(const std::string& url, std::shared_ptr<NWebStringValueCallback> callbac… 86 * @brief Gets all the cookies for the given URL. This is sync method 88 * @param url the URL for which the cookies are requested. 91 * @return the cookie value for given URL. 93 … virtual std::string ReturnCookie(const std::string& url, bool& is_valid, bool incognito_mode) = 0; 96 * @brief Sets a single cookie (key-value pair) for the given URL. 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)… [all …]
|
| D | nweb_handler.h | 377 * @param url The url of the web site. 379 virtual void OnPageLoadEnd(int httpStatusCode, const std::string& url) {} in OnPageLoadEnd() argument 385 * @param url The url to be loaded. 387 virtual void OnPageLoadBegin(const std::string& url) {} in OnPageLoadBegin() argument 394 * @param failingUrl The failed url. 400 * url. 402 * @param url The url to be loaded. 412 * the given url. 414 * @param url The url of the resource. 416 virtual void OnResource(const std::string& url) {} in OnResource() argument [all …]
|
| D | nweb_js_ssl_error_result.h | 29 * @brief Handle a confirmation response from the user, the url request will be continued. 33 * @brief Handle the result if the user cancelled the url request. 42 * @brief Handle a confirmation response from the user, the url request will be continued. 46 * @brief Handle the result if the user cancelled the url request. 50 * @brief Handle the result if the user cancelled the url request.
|
| /base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
| D | ark_web_cookie_manager_wrapper.h | 47 * @brief Sets a single cookie (key-value pair) for the given URL sync. 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; 60 * @brief Sets a single cookie (key-value pair) for the given URL. 62 * @param url the URL for which the cookie is to be set. 67 void SetCookie(const std::string& url, const std::string& value, 88 * @brief Gets all the cookies for the given URL. This is sync method 90 * @param url the URL for which the cookies are requested. 94 * @return the cookie value for given URL. 96 std::string ReturnCookie(const std::string& url, bool& is_valid, bool incognito_mode) override; [all …]
|
| 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) override; 113 * @param url The failed url. 115 …void OnPageLoadError(int error_code, const ArkWebString& description, const ArkWebString& url) ove… 118 * @brief Notify the SDK of the url for a touch icon. [all …]
|
| D | ark_web_cookie_manager_wrapper.cpp | 45 int ArkWebCookieManagerWrapper::SetCookie(const std::string& url, const std::string& value, bool in… in SetCookie() argument 47 ArkWebString stUrl = ArkWebStringClassToStruct(url); in SetCookie() 58 …const std::string& url, const std::string& value, std::shared_ptr<OHOS::NWeb::NWebBoolValueCallbac… in SetCookie() argument 60 ArkWebString stUrl = ArkWebStringClassToStruct(url); in SetCookie() 88 std::string ArkWebCookieManagerWrapper::ReturnCookie(const std::string& url, bool& is_valid, bool i… in ReturnCookie() argument 90 ArkWebString stUrl = ArkWebStringClassToStruct(url); in ReturnCookie() 101 const std::string& url, std::shared_ptr<OHOS::NWeb::NWebStringValueCallback> callback) in ReturnCookie() argument 103 ArkWebString stUrl = ArkWebStringClassToStruct(url); in ReturnCookie() 115 …const std::string& url, const std::string& value, std::shared_ptr<OHOS::NWeb::NWebLongValueCallbac… in ConfigCookie() argument 117 ArkWebString stUrl = ArkWebStringClassToStruct(url); in ConfigCookie() [all …]
|
| D | ark_web_handler_impl.cpp | 98 void ArkWebHandlerImpl::OnResource(const ArkWebString& url) in OnResource() argument 100 nweb_handler_->OnResource(ArkWebStringStructToClass(url)); in OnResource() 149 void ArkWebHandlerImpl::OnPageLoadEnd(int http_status_code, const ArkWebString& url) in OnPageLoadEnd() argument 151 nweb_handler_->OnPageLoadEnd(http_status_code, ArkWebStringStructToClass(url)); in OnPageLoadEnd() 154 void ArkWebHandlerImpl::OnPageLoadBegin(const ArkWebString& url) in OnPageLoadBegin() argument 156 nweb_handler_->OnPageLoadBegin(ArkWebStringStructToClass(url)); in OnPageLoadBegin() 159 …dlerImpl::OnPageLoadError(int error_code, const ArkWebString& description, const ArkWebString& url) in OnPageLoadError() argument 161 …nPageLoadError(error_code, ArkWebStringStructToClass(description), ArkWebStringStructToClass(url)); in OnPageLoadError() 280 void ArkWebHandlerImpl::OnRefreshAccessedHistory(const ArkWebString& url, bool is_reload) in OnRefreshAccessedHistory() argument 282 nweb_handler_->OnRefreshAccessedHistory(ArkWebStringStructToClass(url), is_reload); in OnRefreshAccessedHistory() [all …]
|
| /base/request/request/test/unittest/cpp_test/preload/src/ |
| D | cancel.cpp | 60 void DownloadCancelTest(std::string url) in DownloadCancelTest() argument 62 Preload::GetInstance()->Remove(url); in DownloadCancelTest() 63 EXPECT_FALSE(Preload::GetInstance()->Contains(url)); in DownloadCancelTest() 68 auto handle = Preload::GetInstance()->load(url, std::make_unique<PreloadCallback>(callback)); in DownloadCancelTest() 81 EXPECT_FALSE(Preload::GetInstance()->Contains(url)); in DownloadCancelTest() 82 Preload::GetInstance()->Remove(url); in DownloadCancelTest() 89 * @tc.step: 1. Remove test URL from preload manager 90 * 2. Create test callback and load URL 93 * 5. Verify cancel callback triggered and URL removed 111 * @tc.desc: Test Add callback for same url on cancel [all …]
|
| D | success.cpp | 66 void DownloadSuccessTest(std::string url, uint64_t size) in DownloadSuccessTest() argument 68 Preload::GetInstance()->Remove(url); in DownloadSuccessTest() 69 EXPECT_FALSE(Preload::GetInstance()->Contains(url)); in DownloadSuccessTest() 74 auto handle = Preload::GetInstance()->load(url, std::make_unique<PreloadCallback>(callback)); in DownloadSuccessTest() 85 EXPECT_TRUE(Preload::GetInstance()->Contains(url)); in DownloadSuccessTest() 87 EXPECT_NE(Preload::GetInstance()->fetch(url), std::nullopt); in DownloadSuccessTest() 88 Preload::GetInstance()->Remove(url); in DownloadSuccessTest() 95 * @tc.step: 1. Remove test URL from preload manager 96 * 2. Create test callback and load valid URL 115 * @tc.desc: Test Add callback for same url after success - post-success loading [all …]
|
| D | fail.cpp | 57 void DownloadFailTest(std::string url) in DownloadFailTest() argument 59 Preload::GetInstance()->Remove(url); in DownloadFailTest() 60 EXPECT_FALSE(Preload::GetInstance()->Contains(url)); in DownloadFailTest() 64 auto handle = Preload::GetInstance()->load(url, std::make_unique<PreloadCallback>(callback)); in DownloadFailTest() 74 EXPECT_FALSE(Preload::GetInstance()->Contains(url)); in DownloadFailTest() 75 EXPECT_EQ(Preload::GetInstance()->fetch(url), std::nullopt); in DownloadFailTest() 78 Preload::GetInstance()->Remove(url); in DownloadFailTest() 85 * @tc.step: 1. Remove test URL from preload manager 86 * 2. Create test callback and load invalid URL 89 * 5. Verify fail callback triggered and URL removed [all …]
|
| D | abnormal.cpp | 90 * 2. Load URL with blocking callback 91 * 3. Load same URL with normal test callback 100 auto url = TEST_URL_0; variable 101 Preload::GetInstance()->Remove(url); 108 …auto handle = Preload::GetInstance()->load(url, std::make_unique<PreloadCallback>(abnormal_callbac… 112 Preload::GetInstance()->load(url, std::make_unique<PreloadCallback>(callback)); 123 Preload::GetInstance()->Remove(url); 131 * 2. Load invalid URL with blocking callback 132 * 3. Load same URL with normal test callback 141 auto url = TEST_URL_1; variable [all …]
|
| D | get_info.cpp | 129 void PreDownloadInfo(std::string url, uint64_t size) in PreDownloadInfo() argument 131 Preload::GetInstance()->Remove(url); in PreDownloadInfo() 132 EXPECT_FALSE(Preload::GetInstance()->Contains(url)); in PreDownloadInfo() 138 auto handle = Preload::GetInstance()->load(url, std::make_unique<PreloadCallback>(callback)); in PreDownloadInfo() 148 std::optional<CppDownloadInfo> TestGetInfo(std::string url) in TestGetInfo() argument 150 return Preload::GetInstance()->GetDownloadInfo(url); in TestGetInfo() 157 * @tc.step: 1. Remove test URL from preload manager 158 * 2. Create test callback and load valid URL 162 * @tc.expect: Download info contains valid URL, size, and SUCCESS state 189 * @tc.step: 1. Remove test URL from preload manager [all …]
|
| /base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
| D | ark_web_cookie_manager.h | 48 * @brief Sets a single cookie (key-value pair) for the given URL sync. 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; 62 * @brief Sets a single cookie (key-value pair) for the given URL. 64 * @param url the URL for which the cookie is to be set. 71 …const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback… 93 * @brief Gets all the cookies for the given URL. This is sync method 95 * @param url the URL for which the cookies are requested. 99 * @return the cookie value for given URL. 102 …virtual ArkWebString ReturnCookie(const ArkWebString& url, bool& is_valid, bool incognito_mode) = … [all …]
|
| D | ark_web_handler.h | 81 * given url. 83 * @param url The url of the resource. 86 virtual void OnResource(const ArkWebString& url) = 0; 140 * @param url The url of the web site. 143 virtual void OnPageLoadEnd(int http_status_code, const ArkWebString& url) = 0; 149 * @param url The url to be loaded. 152 virtual void OnPageLoadBegin(const ArkWebString& url) = 0; 159 * @param failing_url The failed url. 165 * @brief Notify the SDK of the url for a touch icon. 167 * @param icon_url The icon url. [all …]
|
| /base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
| D | ark_web_cookie_manager_impl.cpp | 45 int ArkWebCookieManagerImpl::SetCookie(const ArkWebString& url, const ArkWebString& value, bool inc… in SetCookie() argument 48 ArkWebStringStructToClass(url), ArkWebStringStructToClass(value), incognito_mode); in SetCookie() 52 …const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback) in SetCookie() argument 55 …nweb_cookie_manager_->SetCookie(ArkWebStringStructToClass(url), ArkWebStringStructToClass(value), … in SetCookie() 59 … nweb_cookie_manager_->SetCookie(ArkWebStringStructToClass(url), ArkWebStringStructToClass(value), in SetCookie() 78 ArkWebString ArkWebCookieManagerImpl::ReturnCookie(const ArkWebString& url, bool& is_valid, bool in… in ReturnCookie() argument 81 … nweb_cookie_manager_->ReturnCookie(ArkWebStringStructToClass(url), is_valid, incognito_mode)); in ReturnCookie() 84 void ArkWebCookieManagerImpl::ReturnCookie(const ArkWebString& url, ArkWebRefPtr<ArkWebStringValueC… in ReturnCookie() argument 87 nweb_cookie_manager_->ReturnCookie(ArkWebStringStructToClass(url), nullptr); in ReturnCookie() 92 … ArkWebStringStructToClass(url), std::make_shared<ArkWebStringValueCallbackWrapper>(callback)); in ReturnCookie() [all …]
|
| D | ark_web_cookie_manager_impl.h | 49 * @brief Sets a single cookie (key-value pair) for the given URL sync. 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; 62 * @brief Sets a single cookie (key-value pair) for the given URL. 64 * @param url the URL for which the cookie is to be set. 70 …const ArkWebString& url, const ArkWebString& value, ArkWebRefPtr<ArkWebBoolValueCallback> callback… 90 * @brief Gets all the cookies for the given URL. This is sync method 92 * @param url the URL for which the cookies are requested. 96 * @return the cookie value for given URL. 98 … ArkWebString ReturnCookie(const ArkWebString& url, bool& is_valid, bool incognito_mode) override; [all …]
|
| D | ark_web_handler_wrapper.h | 53 * given url. 55 * @param url The url of the resource. 57 void OnResource(const std::string& url) override; 106 * @param url The url of the web site. 108 void OnPageLoadEnd(int http_status_code, const std::string& url) override; 114 * @param url The url to be loaded. 116 void OnPageLoadBegin(const std::string& url) override; 123 * @param url The failed url. 125 …void OnPageLoadError(int error_code, const std::string& description, const std::string& url) overr… 128 * @brief Notify the SDK of the url for a touch icon. [all …]
|
| /base/update/updateservice/services/firmware/data/db/src/ |
| D | firmware_component_operator.cpp | 22 bool FirmwareComponentOperator::UpdateProgressByUrl(const std::string &url, UpgradeStatus status, i… in UpdateProgressByUrl() argument 29 predicates.EqualTo(COLUMN_COMPONENT_DOWNLOAD_URL, url); in UpdateProgressByUrl() 33 bool FirmwareComponentOperator::UpdateStatusByUrl(const std::string &url, UpgradeStatus status) in UpdateStatusByUrl() argument 39 predicates.EqualTo(COLUMN_COMPONENT_DOWNLOAD_URL, url); in UpdateStatusByUrl() 43 …rmwareComponentOperator::UpdateUrlByVersionId(const std::string &versionId, const std::string &url) in UpdateUrlByVersionId() argument 46 values.PutString(COLUMN_COMPONENT_DOWNLOAD_URL, url); in UpdateUrlByVersionId() 53 bool FirmwareComponentOperator::UpdateRecordPointByUrl(const std::string &url, int64_t recordPoint) in UpdateRecordPointByUrl() argument 59 predicates.EqualTo(COLUMN_COMPONENT_DOWNLOAD_URL, url); in UpdateRecordPointByUrl() 75 bool FirmwareComponentOperator::QueryByUrl(const std::string &url, FirmwareComponent &component) in QueryByUrl() argument 79 predicates.EqualTo(COLUMN_COMPONENT_DOWNLOAD_URL, url); in QueryByUrl()
|
| /base/security/certificate_framework/frameworks/common/v1.0/src/ |
| 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, "http://", strlen("http://")) == 0) { in CfIsHttp()
|
| /base/request/request/test/pretest/entry/src/main/ets/pages/ |
| D | Request.ets | 21 router.pushUrl({url:"pages/test/download_V9"}) 29 router.pushUrl({url:"pages/test/upload_V9"}) 36 router.pushUrl({url:"pages/test/test"}) 51 router.pushUrl({url:"pages/test/download"}) 59 router.pushUrl({url:"pages/test/upload"}) 67 router.pushUrl({url:"pages/test/multipleTask"}) 75 router.pushUrl({url:"pages/test/chunktest"}) 83 router.pushUrl({url:"pages/test/feature50"}) 91 router.pushUrl({url:"pages/test/stressTask"}) 99 router.pushUrl({url:"pages/test/taskpooltest"})
|
| /base/telephony/sms_mms/utils/ |
| D | string_utils.cpp | 145 std::string StringUtils::GetPortFromURL(const std::string &url) in GetPortFromURL() argument 148 std::string protocol = GetProtocolFromURL(url); in GetPortFromURL() 149 std::string hostname = GetHostnameFromURL(url); in GetPortFromURL() 151 size_t posStart = url.find_first_of(':', start); in GetPortFromURL() 155 size_t posEnd = std::min({url.find('/', start), url.find('?', start)}); in GetPortFromURL() 157 return url.substr(posStart + 1); in GetPortFromURL() 162 return url.substr(posStart + 1, posEnd - posStart - 1); in GetPortFromURL() 165 std::string StringUtils::GetHostnameFromURL(const std::string &url) in GetHostnameFromURL() argument 167 if (url.empty()) { in GetHostnameFromURL() 171 std::string tempUrl = url; in GetHostnameFromURL() [all …]
|
| /base/web/webview/interfaces/kits/ani/webview/src/webviewcontroller/ |
| D | ani_web_scheme_handler_response.cpp | 57 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsSetUrl() 60 std::string url; in JsSetUrl() local 61 if (!AniParseUtils::ParseString(env, urlObject, url)) { in JsSetUrl() 65 schemeHandler->SetUrl(url.c_str()); in JsSetUrl() 71 ani_string url = nullptr; in JsGetUrl() local 74 return url; in JsGetUrl() 79 return url; in JsGetUrl() 83 return url; in JsGetUrl() 85 env->String_NewUTF8(result, strlen(result), &url); in JsGetUrl() 87 return url; in JsGetUrl()
|
| /base/request/request/frameworks/native/cache_download/src/ |
| D | services.rs | 43 pub url: &'a str, field 48 pub fn new(url: &'a str) -> Self { in new() 49 Self { url, headers: None } in new() 89 pub fn cancel(&self, url: &str) { in cancel() 90 let task_id = TaskId::from_url(url); in cancel() 103 pub fn remove(&self, url: &str) { in remove() 104 let task_id = TaskId::from_url(url); in remove() 108 pub fn contains(&self, url: &str) -> bool { in contains() 109 let task_id = TaskId::from_url(url); in contains() 120 let url = request.url; in preload() localVariable [all …]
|
| /base/request/request/services/src/task/ |
| D | client.rs | 68 // HTTP url that contains redirects also require a certificate when in build_client() 94 "ApiPolicy Domain check, tid {}, bundle {}, domain_type {}, url {}", in build_client() 95 config.common_data.task_id, &config.bundle, &domain_type, &config.url in build_client() 98 if let Some(is_accessed) = check_url_domain(&config.bundle, &domain_type, &config.url) { in build_client() 101 "Intercept request by domain check, tid {}, bundle {}, domain_type {}, url {}", in build_client() 102 config.common_data.task_id, &config.bundle, &domain_type, &config.url in build_client() 108 "Intercept request by domain check, tid {}, bundle {}, domain_type {}, url {}", in build_client() 109 config.common_data.task_id, &config.bundle, &domain_type, &config.url) in build_client() 118 "Intercept request by domain check, tid {}, domain_type {}, url {}", in build_client() 119 config.common_data.task_id, &domain_type, &config.url in build_client() [all …]
|
| /base/request/request/test/fuzztest/predownload_fuzzer/ |
| D | predownload_fuzzer.cpp | 48 void ConvertToUTF8(std::string &url) in ConvertToUTF8() argument 50 for (size_t i = 0; i < url.size(); i++) { in ConvertToUTF8() 51 if (url[i] > 0x7F) { in ConvertToUTF8() 52 url[i] = '?'; in ConvertToUTF8() 86 std::string url(reinterpret_cast<const char *>(data), size); in GetDownloadInfoFuzzTest() 87 ConvertToUTF8(url); in GetDownloadInfoFuzzTest() 89 Preload::GetInstance()->GetDownloadInfo(url); in GetDownloadInfoFuzzTest()
|