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);
198 request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename);
201 request.allowScanningByMediaScanner();
202 request.setDescription(webAddress.getHost());
206 request.addRequestHeader("cookie", cookies);
207 request.addRequestHeader("User-Agent", userAgent);
208 request.addRequestHeader("Referer", referer);
209 request.setNotificationVisibility(
210 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
216 // are not sure of the mimetype in this case, so do a head request
217 new FetchUrlMimeType(activity, request, addressString, cookies,
224 manager.enqueue(request);