Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/download/OMADownloadHandler.java

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved download delegate interface to native Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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; 31 import org.chromium.content_public.browser.DownloadInfo;
32 import org.xmlpull.v1.XmlPullParser; 32 import org.xmlpull.v1.XmlPullParser;
33 import org.xmlpull.v1.XmlPullParserException; 33 import org.xmlpull.v1.XmlPullParserException;
34 import org.xmlpull.v1.XmlPullParserFactory; 34 import org.xmlpull.v1.XmlPullParserFactory;
35 35
36 import java.io.DataOutputStream; 36 import java.io.DataOutputStream;
37 import java.io.File; 37 import java.io.File;
38 import java.io.FileInputStream; 38 import java.io.FileInputStream;
39 import java.io.FileNotFoundException; 39 import java.io.FileNotFoundException;
40 import java.io.IOException; 40 import java.io.IOException;
41 import java.io.InputStream; 41 import java.io.InputStream;
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 732 }
733 } 733 }
734 showNextUrlDialog(mOMAInfo); 734 showNextUrlDialog(mOMAInfo);
735 } else if (mDownloadId != DownloadItem.INVALID_DOWNLOAD_ID) { 735 } else if (mDownloadId != DownloadItem.INVALID_DOWNLOAD_ID) {
736 // Remove the downloaded content. 736 // Remove the downloaded content.
737 manager.remove(mDownloadId); 737 manager.remove(mDownloadId);
738 } 738 }
739 } 739 }
740 } 740 }
741 } 741 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698