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.setNotificationVisibility(
208 DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
214 // are not sure of the mimetype in this case, so do a head request
215 new FetchUrlMimeType(activity, request, addressString, cookies,
222 manager.enqueue(request);