summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/DownloadHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Browser: runtime permissionsLuK13372016-01-041-1/+63
| | | | | Change-Id: I19caa970421898196c005aa9ad7cc651cd574c0a Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* [BugFix][Browser]Can't download music from music.baidu.comchenghe.zhang2015-11-071-1/+3
| | | | | | | | | | | | | [Solution Description] Can not download music from music.baidu.com The Referer is Empty [Other Info] modified: src/com/android/browser/DownloadHandler.java Change-Id: If696c2ace282ec01f95476a9907fd6c7303bfb9c (cherry picked from commit 2db66392f651d0b306e9921a9b005c6ed1361428)
* Handle DownloadManager expceptionsFilip Matusiak2013-01-161-2/+11
| | | | | | | | | | | | Handles illegal state exceptions thrown by DownloadManager on two ocassions: * the directory sdcard/Downloads is an ordinary file * could not create dirctory sdcard/Downloads Change will log an error, additionally toast with information will pop up. Change-Id: If853d3218a188bc77c187362a70697126b90989d
* Pass referer on download requestsSelim Gurun2012-08-291-4/+6
| | | | | Bug: 6662557 Change-Id: Ib7fdc4b3f1e0f7370631d8a222565faaee550bfb
* am edc9e064: Merge "Browser: Use ICS alert icon"Jean-Baptiste Queru2012-08-141-1/+1
|\ | | | | | | | | * commit 'edc9e064969b97fd62f492ef8e15812b63af2bb3': Browser: Use ICS alert icon
| * Browser: Use ICS alert iconBjörn Lundén2012-08-131-1/+1
| | | | | | | | | | | | Still using upscaled GB drawable in a few places. Change-Id: I52471b10809117b5a68e8236dc320fde0da2c533
* | am 17e3ba9b: am a770f8d4: Encode characters that java.net.URI rejectsSelim Gurun2012-06-141-2/+2
|\ \ | |/ | | | | | | * commit '17e3ba9b808c0ca3b4a06c3964437204e76f9d30': Encode characters that java.net.URI rejects
| * am a770f8d4: Encode characters that java.net.URI rejectsSelim Gurun2012-06-131-2/+2
| |\ | | | | | | | | | | | | * commit 'a770f8d4bd583e9a719af6ce314838db12003b33': Encode characters that java.net.URI rejects
| | * Encode characters that java.net.URI rejectsSelim Gurun2012-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5952386 Our java.net.URI implementation conforms to an old obsolete RFC and it is very restrictive. Since in our download path, we use download manager and so java.net.URI, this causes an odd bug (i.e. URIs that are fetched fine by chromium http stack fails when download manager is used). Also there is a second bug that when URI parsing fails and an exception is thrown, we fail to catch it and crash. This CL fixes both. Change-Id: I62ac289566efae97dd2161b8041b06a0a87211cb
* | | Don't use the new task flag for download.Teng-Hui Zhu2012-06-131-1/+0
|/ / | | | | | | | | | | | | | | | | This flag can incorrectly turn the Gallery app into a new task when trying to play some video. bug:6652951 Change-Id: Iec18ac0c9514101780e7cc6361dbce6c1e9320cb
* | UserAgent not propagated from Browser to DownloadProviderPatrik Stenkilsson2012-03-181-0/+1
|/ | | | | | | | | | | | | Browser does not propagate the userAgent to DownloadProvider for downloads. When downloads are started the default userAgent in DownloadProvider is used instead of using the userAgent of the Browser. This makes downloads on some services / web pages fail. This is solved this by including the Browser userAgent in the request to the DownloadManager. Change-Id: If4e0f3c29eb7fd5fc585dd01987ae7f0b54ffc32
* Start downloads as a new taskJohn Reck2011-11-231-0/+1
| | | | | | Bug: 5661310 Change-Id: Ib6d4d08474116d6a222eedd0cf40830c9286a2dd
* Downloads from incognito tabs need to use the correct cookieKristian Monsen2011-03-021-4/+7
| | | | Change-Id: Iee012fe4a32dd51b8a59763b9ceab1e7dbde5246
* Do not attempt to download non-https URLs.Leon Scroggins2011-02-011-1/+7
| | | | | | Bug:3388003 Change-Id: I9d81017820762bcf714453b935488912397dadbc
* bug:3297328 set download destination dir to /sdcard/DownloadVasu Nori2010-12-191-1/+3
| | | | | | | | | | | | downlaoded files should go into /sdcard/Download, like they used to in GB and earlier. But a minor difference in the download dir name: it used to be /sdcard/download in before HC /sdcard/Download in HC how serious is this difference? Change-Id: Ib56d8ee6a1393fd781399281be98b8c52831ebe1
* Move download requests to the background.Leon Scroggins2010-11-191-37/+37
| | | | | | | | | | | | Bug:3189668 Do not create a DownloadHandler since the methods can all be static. Do not pass the length to DownloadHandler, since it is no longer used. Change-Id: I280160f62906d1acb263b45fde57062210005a0a
* Controller RefactorMichael Kolb2010-11-171-0/+218
Bug: 3170671 First step towards a model/view/control design in Browser introduced Controller object started separating UI code represent state of the app in one place only Change-Id: Ica387d6bde2dcf1a4993c3db0cce498cf34ff60f