Lines Matching refs:request
56 * @param privateBrowsing If the request is coming from a private browsing tab.
140 * @param privateBrowsing If the request is coming from a private browsing tab.
188 final DownloadManager.Request request;
190 request = new DownloadManager.Request(uri);
195 request.setMimeType(mimetype);
199 request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);
210 request.allowScanningByMediaScanner();
211 request.setDescription(webAddress.getHost());
215 request.addRequestHeader("cookie", cookies);
216 request.addRequestHeader("User-Agent", userAgent);
217 request.addRequestHeader("Referer", referer);
218 request.setNotificationVisibility(
219 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
225 // are not sure of the mimetype in this case, so do a head request
226 new FetchUrlMimeType(activity, request, addressString, cookies,
233 manager.enqueue(request);