Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 56) sorted by relevance

123

/base/theme/wallpaper_mgr/interfaces/kits/napi/wallpaperextension/
Dwallpaper_extension.js54 setUiContent(url) { argument
58 loadUiContent(url);
61 this.wallpaperURL = url;
65 loadUiContent(url) { argument
66 console.log(WindowName + 'initUiContent' + url);
69 console.log(WindowName + JSON.stringify(this.wallpaperWindow.loadContent(url)));
70 this.wallpaperWindow.loadContent(url).then(() => {
/base/web/webview/ohos_nweb/include/
Dnweb_cookie_manager.h81 virtual void ReturnCookie(const std::string &url,
90 virtual std::string ReturnCookie(const std::string &url) = 0;
99 virtual void SetCookie(const std::string &url,
110 virtual int SetCookie(const std::string &url,
Dnweb_handler.h169 virtual void OnPageLoadEnd(int httpStatusCode, const std::string& url) {} in OnPageLoadEnd() argument
177 virtual void OnPageLoadBegin(const std::string& url) {} in OnPageLoadBegin() argument
197 virtual bool OnHandleInterceptUrlLoading(const std::string& url) { in OnHandleInterceptUrlLoading() argument
207 virtual void OnResource(const std::string& url) {} in OnResource() argument
323 virtual bool OnAlertDialogByJS(const std::string& url, in OnAlertDialogByJS() argument
339 virtual bool OnBeforeUnloadByJS(const std::string& url, in OnBeforeUnloadByJS() argument
356 virtual bool OnPromptDialogByJS(const std::string& url, in OnPromptDialogByJS() argument
373 virtual bool OnConfirmDialogByJS(const std::string& url, in OnConfirmDialogByJS() argument
414 virtual void OnRefreshAccessedHistory(const std::string& url, bool isReload) {} in OnRefreshAccessedHistory() argument
506 virtual void OnPageVisible(const std::string& url) {} in OnPageVisible() argument
Dnweb_download_callback.h38 virtual void OnDownloadStart(const std::string& url,
/base/web/webview/test/ohos_nweb/
Dnweb_js_dialog_impl_test.h32 bool OnAlertDialogByJS(const std::string &url,
35 bool OnBeforeUnloadByJS(const std::string &url,
38 bool OnPromptDialogByJS(const std::string &url,
42 bool OnConfirmDialogByJS(const std::string &url,
Dnweb_js_dialog_impl_test.cpp25 bool NWebJSDialogImplTest::OnAlertDialogByJS(const std::string &url, in OnAlertDialogByJS() argument
34 bool NWebJSDialogImplTest::OnBeforeUnloadByJS(const std::string &url, in OnBeforeUnloadByJS() argument
43 bool NWebJSDialogImplTest::OnPromptDialogByJS(const std::string &url, in OnPromptDialogByJS() argument
54 bool NWebJSDialogImplTest::OnConfirmDialogByJS(const std::string &url, in OnConfirmDialogByJS() argument
Dnweb_handler_impl_test.cpp126 void NWebHandlerImplTest::OnPageLoadEnd(int httpStatusCode, const std::string& url) in OnPageLoadEnd() argument
128 TESTLOG_I("NWebHandlerImplTest::OnPageLoadend called, url=%{public}s", url.c_str()); in OnPageLoadEnd()
135 if (url.find(EXECUTE_JAVASCRIPT_CALLBACK_HTML) != std::string::npos) { in OnPageLoadEnd()
143 void NWebHandlerImplTest::OnPageLoadBegin(const std::string& url) in OnPageLoadBegin() argument
145 TESTLOG_I("NWebHandlerImplTest::OnPageLoadBegin called, url=%{public}s", url.c_str()); in OnPageLoadBegin()
155 bool NWebHandlerImplTest::OnHandleInterceptUrlLoading(const std::string& url) in OnHandleInterceptUrlLoading() argument
157 … TESTLOG_I("NWebHandlerImplTest::OnHandleInterceptUrlLoading called, url=%{public}s", url.c_str()); in OnHandleInterceptUrlLoading()
228 void NWebHandlerImplTest::OnResource(const std::string &url) in OnResource() argument
230 TESTLOG_I("NWebHandlerImplTest::OnResource url=%{public}s", url.c_str()); in OnResource()
Dnweb_handler_impl_test.h31 void OnPageLoadEnd(int httpStatusCode, const std::string& url) override;
32 void OnPageLoadBegin(const std::string& url) override;
36 bool OnHandleInterceptUrlLoading(const std::string& url) override;
51 void OnResource(const std::string &url) override;
Dnweb_downloadlistener_impl_test.cpp22 void NWebDownloadListenerImplTest::OnDownloadStart(const std::string &url, const std::string &userA… in OnDownloadStart() argument
28 TESTLOG_I("url=%{public}s", url.c_str()); in OnDownloadStart()
Dnweb_handler_impl_test_for_intercept.cpp92 std::string url = request->Url(); in OnHandleInterceptRequest() local
93 if (strstr(url.c_str(), ".png") != nullptr) { in OnHandleInterceptRequest()
Dnweb_downloadlistener_impl_test.h26 void OnDownloadStart(const std::string &url, const std::string &userAgent,
/base/request/request/upload/frameworks/libs/src/
Dcurl_adp.cpp137 curl_easy_setopt(curl, CURLOPT_URL, config_->url.c_str()); in SetNetworkOpt()
293 for (auto url : curlArray_) { in ClearCurlResource() local
294 curl_multi_remove_handle(curlMulti_, url); in ClearCurlResource()
295 curl_easy_cleanup(url); in ClearCurlResource()
327 std::shared_ptr<CUrlAdp> url = fData->adp; in ProgressCallback() local
328 std::lock_guard<std::mutex> lock(url->curlMutex_); in ProgressCallback()
339 if (url->uploadTask_) { in ProgressCallback()
341 for (auto &vmem : url->fileDatas_) { in ProgressCallback()
349 url->uploadTask_->OnProgress(totalulnow); in ProgressCallback()
361 std::shared_ptr<CUrlAdp> url = fData->adp; in HeaderCallback() local
[all …]
/base/request/request/test/unittest/common/napi/requestTest/
DRequestJsunit.test.js52 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
103 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
147 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
197 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
246 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.pngkfkew', property
260 downloadConfig.url += '123456'
291 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
339 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
384 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
429 url: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png', property
[all …]
/base/request/request/test/download/
Ddownload.test.ets19 url: 'https://mirror.bjtu.edu.cn/kernel/linux/libs/libc5/libc5.cvs.tar.gz',// Resource address.
29url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.10.91.0.2-1.i386.rpm',// R…
39url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.23-2.11.90.0.24.si…
54url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/autoconf-2.13-10.tar.gz',// Resource …
64url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/automake-1.4-8.3.tar.gz',// Resource …
74url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.10.91.0.2-2.10.91.0.4.diff…
84url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.23-2.11.90.0.24.si…
94url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.5-2.11.90.0.6.diff…
104url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.6-2.11.90.0.7.diff…
114url: 'https://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.7-2.11.90.0.8.diff…
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.cpp489 ErrCode WebviewController::LoadUrl(std::string url) in LoadUrl() argument
495 return nweb_ptr->Load(url); in LoadUrl()
498 ErrCode WebviewController::LoadUrl(std::string url, std::map<std::string, std::string> httpHeaders) in LoadUrl() argument
504 return nweb_ptr->Load(url, httpHeaders); in LoadUrl()
719 std::string url = ""; in GetUrl() local
722 url = nweb_ptr->GetUrl(); in GetUrl()
724 return url; in GetUrl()
729 std::string url = ""; in GetOriginalUrl() local
732 url = nweb_ptr->GetOriginalUrl(); in GetOriginalUrl()
734 return url; in GetOriginalUrl()
/base/request/request/upload/interfaces/kits/napi/src/
Djs_util.cpp222 if (!CheckUrl(config.url)) { in CheckConfig()
231 bool JSUtil::CheckUrl(const std::string &url) in CheckUrl() argument
233 if (url.empty()) { in CheckUrl()
236 return regex_match(url, std::regex("^http(s)?:\\/\\/.+")); in CheckUrl()
306 if (!SetMandatoryParam(env, jsConfig, "url", config.url)) { in ToUploadOption()
326 napi_value url = GetNamedProperty(env, jsConfig, "url"); in ToUploadConfig() local
327 if (url == nullptr) { in ToUploadConfig()
330 config.url = Convert2String(env, url); in ToUploadConfig()
363 napi_set_named_property(env, jsConfig, "url", Convert2JSString(env, config.url)); in Convert2JSUploadConfig()
/base/request/request/download/interfaces/kits/js/napi/download_single/src/
Ddownload_config.cpp25 void DownloadConfig::SetUrl(const std::string &url) in SetUrl() argument
27 url_ = url; in SetUrl()
Ddownload_task_napi.cpp221 std::string url = NapiUtils::GetStringPropertyUtf8(env, configValue, PARAM_KEY_URI); in ParseUrl() local
222 if (!regex_match(url, std::regex("^http(s)?:\\/\\/.+"))) { in ParseUrl()
225 config.SetUrl(url); in ParseUrl()
/base/web/webview/test/fuzztest/loadurl_fuzzer/
Dloadurl_fuzzer.cpp129 std::string url((const char *)data, size); in DoSomethingInterestingWithMyAPI() local
131 g_nweb->Load(url, additionalHttpHeaders); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/load_fuzzer/
Dload_fuzzer.cpp129 std::string url((const char *)data, size); in DoSomethingInterestingWithMyAPI() local
130 g_nweb->Load(url); in DoSomethingInterestingWithMyAPI()
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp120 std::string url; in JsGetCookie() local
121 if (!GetStringPara(env, argv[INTEGER_ZERO], url)) { in JsGetCookie()
131 cookieContent = cookieManager->ReturnCookie(url); in JsGetCookie()
154 std::string url; in JsSetCookie() local
156 if (!GetStringPara(env, argv[INTEGER_ZERO], url)) { in JsSetCookie()
170 isSet = cookieManager->SetCookie(url, value); in JsSetCookie()
/base/request/request/upload/frameworks/libs/include/
Dupload_config.h43 std::string url; member
/base/web/webview/
DREADME_ZH.md56 以上命令会默认加载百度首页,--url=xxx.com命令行参数可以设置你想加载的网页。
/base/request/request/download/interfaces/kits/js/napi/download_single/src/legacy/
Ddownload_manager.cpp132 std::string DownloadManager::GetFilenameFromUrl(std::string &url) in GetFilenameFromUrl() argument
134 auto pos = url.rfind('/'); in GetFilenameFromUrl()
136 return url.substr(pos + 1); in GetFilenameFromUrl()
138 return url; in GetFilenameFromUrl()
/base/update/updateservice/services/engine/src/
Dprogress_thread.cpp82 int32_t DownloadThread::StartDownload(const std::string &fileName, const std::string &url) in StartDownload() argument
85 serverUrl_ = url; in StartDownload()

123