| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.download; | 5 package org.chromium.chrome.browser.download; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.app.DownloadManager; | 8 import android.app.DownloadManager; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.DialogInterface; | 10 import android.content.DialogInterface; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 import android.util.LongSparseArray; | 21 import android.util.LongSparseArray; |
| 22 import android.view.LayoutInflater; | 22 import android.view.LayoutInflater; |
| 23 import android.view.View; | 23 import android.view.View; |
| 24 import android.webkit.URLUtil; | 24 import android.webkit.URLUtil; |
| 25 import android.widget.TextView; | 25 import android.widget.TextView; |
| 26 | 26 |
| 27 import org.chromium.base.ApplicationStatus; | 27 import org.chromium.base.ApplicationStatus; |
| 28 import org.chromium.base.VisibleForTesting; | 28 import org.chromium.base.VisibleForTesting; |
| 29 import org.chromium.chrome.R; | 29 import org.chromium.chrome.R; |
| 30 import org.chromium.chrome.browser.ChromeApplication; | 30 import org.chromium.chrome.browser.ChromeApplication; |
| 31 import org.chromium.content.browser.DownloadInfo; | |
| 32 import org.xmlpull.v1.XmlPullParser; | 31 import org.xmlpull.v1.XmlPullParser; |
| 33 import org.xmlpull.v1.XmlPullParserException; | 32 import org.xmlpull.v1.XmlPullParserException; |
| 34 import org.xmlpull.v1.XmlPullParserFactory; | 33 import org.xmlpull.v1.XmlPullParserFactory; |
| 35 | 34 |
| 36 import java.io.DataOutputStream; | 35 import java.io.DataOutputStream; |
| 37 import java.io.File; | 36 import java.io.File; |
| 38 import java.io.FileInputStream; | 37 import java.io.FileInputStream; |
| 39 import java.io.FileNotFoundException; | 38 import java.io.FileNotFoundException; |
| 40 import java.io.IOException; | 39 import java.io.IOException; |
| 41 import java.io.InputStream; | 40 import java.io.InputStream; |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 } | 731 } |
| 733 } | 732 } |
| 734 showNextUrlDialog(mOMAInfo); | 733 showNextUrlDialog(mOMAInfo); |
| 735 } else if (mDownloadId != DownloadItem.INVALID_DOWNLOAD_ID) { | 734 } else if (mDownloadId != DownloadItem.INVALID_DOWNLOAD_ID) { |
| 736 // Remove the downloaded content. | 735 // Remove the downloaded content. |
| 737 manager.remove(mDownloadId); | 736 manager.remove(mDownloadId); |
| 738 } | 737 } |
| 739 } | 738 } |
| 740 } | 739 } |
| 741 } | 740 } |
| OLD | NEW |