Home
last modified time | relevance | path

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

123

/system/update_engine/
Dtest_http_server.cc77 string url; member
111 request->url = terms[1]; in ParseRequest()
112 LOG(INFO) << "URL: " << request->url; in ParseRequest()
381 string url = request.url; in HandleRedirect() local
382 CHECK_EQ(static_cast<size_t>(0), url.find("/redirect/")); in HandleRedirect()
383 url.erase(0, strlen("/redirect/")); in HandleRedirect()
384 string::size_type url_start = url.find('/'); in HandleRedirect()
386 HttpResponseCode code = StringToHttpResponseCode(url.c_str()); in HandleRedirect()
387 url.erase(0, url_start); in HandleRedirect()
388 url = "http://" + request.host + url; in HandleRedirect()
[all …]
Dchrome_browser_proxy_resolver.cc73 bool ChromeBrowserProxyResolver::GetProxiesForUrl(const string& url, in GetProxiesForUrl() argument
79 url.c_str(), in GetProxiesForUrl()
87 callbacks_.insert(make_pair(url, make_pair(callback, data))); in GetProxiesForUrl()
92 url), in GetProxiesForUrl()
94 timers_.insert(make_pair(url, timer)); in GetProxiesForUrl()
Dproxy_resolver.h49 virtual bool GetProxiesForUrl(const std::string& url,
62 bool GetProxiesForUrl(const std::string& url,
Dchrome_browser_proxy_resolver.h46 bool GetProxiesForUrl(const std::string& url,
78 bool DeleteUrlState(const std::string& url,
Dfake_p2p_manager.h113 void SetLookupUrlForFileResult(const std::string& url) { in SetLookupUrlForFileResult() argument
114 lookup_url_for_file_result_ = url; in SetLookupUrlForFileResult()
Dp2p_manager.cc428 void IssueCallback(const string& url) { in IssueCallback() argument
430 callback_.Run(url); in IssueCallback()
443 string url = output; in ReportSuccess() local
444 size_t newline_pos = url.find('\n'); in ReportSuccess()
446 url.resize(newline_pos); in ReportSuccess()
451 if (url.compare(0, 7, "http://") == 0) { in ReportSuccess()
452 IssueCallback(url); in ReportSuccess()
454 LOG(ERROR) << "p2p URL '" << url << "' does not look right. Ignoring."; in ReportSuccess()
/system/update_engine/common/
Dfile_fetcher.cc44 bool FileFetcher::SupportedUrl(const string& url) { in SupportedUrl() argument
47 url, "file:///", base::CompareCase::INSENSITIVE_ASCII); in SupportedUrl()
57 void FileFetcher::BeginTransfer(const string& url) { in BeginTransfer() argument
60 if (!SupportedUrl(url)) { in BeginTransfer()
61 LOG(ERROR) << "Unsupported file URL: " << url; in BeginTransfer()
70 string file_path = url.substr(strlen("file://")); in BeginTransfer()
Dfile_fetcher.h39 static bool SupportedUrl(const std::string& url);
52 void BeginTransfer(const std::string& url) override;
Dhttp_fetcher.cc49 bool HttpFetcher::ResolveProxiesForUrl(const string& url, in ResolveProxiesForUrl() argument
62 return proxy_resolver_->GetProxiesForUrl(url, in ResolveProxiesForUrl()
Dhttp_fetcher_unittest.cc455 void StartTransfer(HttpFetcher* http_fetcher, const string& url) { in StartTransfer() argument
456 http_fetcher->BeginTransfer(url); in StartTransfer()
924 const string& url, in RedirectTest() argument
933 LocalServerUrlForPath(server->GetPort(), url))); in RedirectTest()
954 const string url = base::StringPrintf("/redirect/%d/download/%d", in TYPED_TEST() local
957 RedirectTest(server.get(), true, url, this->test_.NewLargeFetcher()); in TYPED_TEST()
968 string url; in TYPED_TEST() local
970 url += base::StringPrintf("/redirect/%d", in TYPED_TEST()
973 url += base::StringPrintf("/download/%d", kMediumLength); in TYPED_TEST()
974 RedirectTest(server.get(), true, url, this->test_.NewLargeFetcher()); in TYPED_TEST()
[all …]
/system/extras/multinetwork/
Dquick_test.sh44 for url in $urls; do
45 echo "$PREFIX Checking $url" >&2
46 adb shell /system/xbin/httpurl --nethandle $nethandle "$url"
/system/webservd/webservd/
Dprotocol_handler.cc43 const char* url, in ConnectionHandler() argument
51 std::string request_handler_id = handler->FindRequestHandler(url, method); in ConnectionHandler()
53 request_handler_id, url, method, version, connection, handler in ConnectionHandler()
98 const std::string& url, in AddRequestHandler() argument
103 HandlerMapEntry{url, method, std::move(handler)}); in AddRequestHandler()
112 const base::StringPiece& url, in FindRequestHandler() argument
117 std::string handler_url = pair.second.url; in FindRequestHandler()
118 bool url_match = (handler_url == url); in FindRequestHandler()
129 if (url.starts_with(handler_url)) { in FindRequestHandler()
134 current_score = (url.size() - handler_url.size()) * 2; in FindRequestHandler()
Dprotocol_handler.h49 const std::string& url,
59 std::string FindRequestHandler(const base::StringPiece& url,
103 std::string url; member
/system/connectivity/shill/test-scripts/
Dset-portal-url9 (_, url) = sys.argv
12 flim.SetPortalURL(url)
/system/core/crash_reporter/
Dlist_proxies.cc234 static bool ShowBrowserProxies(std::string url, base::TimeDelta timeout) { in ShowBrowserProxies() argument
236 ProxyResolver resolver(url, in ShowBrowserProxies()
286 std::string url; in main() local
289 url = urls[0]; in main()
290 LOG(INFO) << "Resolving proxies for URL: " << url; in main()
295 if (!ShowBrowserProxies(url, base::TimeDelta::FromSeconds(timeout))) { in main()
Dcrash_sender324 local url="$(get_key_value "${OSRELEASED_FOLDER}" "crash_server")"
338 if [ -z "${url}" ]; then
427 lecho " URL: ${url}"
455 proxy=$("${LIST_PROXIES}" --quiet "${url}")
470 curl "${url}" -f -v ${proxy:+--proxy "$proxy"} \
/system/connectivity/shill/
Dhttp_request.cc94 const HTTPURL& url, in Start() argument
103 url.path().c_str(), in Start()
104 url.host().c_str(), in Start()
105 url.port()), false); in Start()
106 server_hostname_ = url.host(); in Start()
107 server_port_ = url.port(); in Start()
Dconnection_health_checker.cc137 HTTPURL url; in AddRemoteURL() local
138 if (!url.ParseFromString(url_string)) { in AddRemoteURL()
143 if (url.port() != kRemotePort) { in AddRemoteURL()
146 << " to port 80, requested " << url.port() in AddRemoteURL()
160 if (!dns_clients_[i]->Start(url.host(), &error)) { in AddRemoteURL()
/system/webservd/libwebserv/
Dprotocol_handler.h90 virtual int AddHandler(const std::string& url,
96 const std::string& url,
Drequest_fake.h38 RequestFake(const std::string& url, const std::string& method) in RequestFake() argument
39 : Request(url, method) {} in RequestFake()
Ddbus_protocol_handler.h66 int AddHandler(const std::string& url,
71 const std::string& url,
87 std::string url; member
Ddbus_protocol_handler.cc108 const std::string& url, in AddHandler() argument
113 HandlerMapEntry{url, method, in AddHandler()
120 url, in AddHandler()
135 const std::string& url, in AddHandlerCallback() argument
141 return AddHandler(url, method, std::move(handler)); in AddHandlerCallback()
164 pair.second.url, in Connect()
/system/connectivity/shill/cellular/
Dmobile_operator_info.cc199 pp_result << "(url: " << olp.url << ", method: " << olp.method in olp_list()
250 void MobileOperatorInfo::UpdateOnlinePortal(const string& url, in UpdateOnlinePortal() argument
254 << "(" << url in UpdateOnlinePortal()
257 impl_->UpdateOnlinePortal(url, method, post_data); in UpdateOnlinePortal()
Dcellular_service.cc424 void CellularService::SetOLP(const string& url, in SetOLP() argument
428 olp[kPaymentPortalURL] = url; in SetOLP()
439 void CellularService::SetUsageURL(const string& url) { in SetUsageURL() argument
440 if (url == usage_url_) { in SetUsageURL()
443 usage_url_ = url; in SetUsageURL()
444 adaptor()->EmitStringChanged(kUsageURLProperty, url); in SetUsageURL()
Dmobile_operator_info_impl.cc352 void MobileOperatorInfoImpl::UpdateOnlinePortal(const string& url, in UpdateOnlinePortal() argument
356 user_olp_.url == url && in UpdateOnlinePortal()
363 user_olp_.url = url; in UpdateOnlinePortal()
392 user_olp_.url.clear(); in Reset()
924 raw_olp.url(), in HandleOnlinePortalUpdate()
932 append_user_olp &= (olp.url != user_olp_.url || in HandleOnlinePortalUpdate()

123