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

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

Issue 2771803004: Glue OfflineContentProvider to the download service (Closed)
Patch Set: Fixing test failure Created 3 years, 8 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 org.chromium.components.offline_items_collection.ContentId;
8
7 /** 9 /**
8 * Class for reporting the status of a download. 10 * Class for reporting the status of a download.
9 */ 11 */
10 public interface DownloadNotifier { 12 public interface DownloadNotifier {
11 /** 13 /**
12 * Add a download successful notification. 14 * Add a download successful notification.
13 * @param downloadInfo info about the successful download. 15 * @param downloadInfo info about the successful download.
14 * @param systemDownloadId The system download ID assigned to the download. 16 * @param systemDownloadId The system download ID assigned to the download.
15 * @param canResolve Whether the download can be resolved to any activity. 17 * @param canResolve Whether the download can be resolved to any activity.
16 * @param isSupportedMimeType Whether the MIME type can be viewed inside bro wser. 18 * @param isSupportedMimeType Whether the MIME type can be viewed inside bro wser.
(...skipping 26 matching lines...) Expand all
43 45
44 /** 46 /**
45 * Update the download notification to paused. 47 * Update the download notification to paused.
46 * @param downloadInfo info about in progress download. 48 * @param downloadInfo info about in progress download.
47 * @param isAutoResumable Whether the download can be auto resumed when netw ork is available. 49 * @param isAutoResumable Whether the download can be auto resumed when netw ork is available.
48 */ 50 */
49 void notifyDownloadInterrupted(DownloadInfo downloadInfo, boolean isAutoResu mable); 51 void notifyDownloadInterrupted(DownloadInfo downloadInfo, boolean isAutoResu mable);
50 52
51 /** 53 /**
52 * Cancel the notification for a download. 54 * Cancel the notification for a download.
53 * @param downloadGuid The GUID of the cancelled download. 55 * @param id The {@link ContentId} of the download.
54 */ 56 */
55 void notifyDownloadCanceled(String downloadGuid); 57 void notifyDownloadCanceled(ContentId id);
56 58
57 /** 59 /**
58 * Remove the download notification for an already finished download. 60 * Remove the download notification for an already finished download.
59 * @param notificationId The id of the download notification. 61 * @param notificationId The id of the download notification.
60 * @param downloadInfo Info about the removed download. 62 * @param downloadInfo Info about the removed download.
61 */ 63 */
62 void removeDownloadNotification(int notificationId, DownloadInfo downloadInf o); 64 void removeDownloadNotification(int notificationId, DownloadInfo downloadInf o);
63 65
64 /** 66 /**
65 * Called to resume all the pending download entries in SharedPreferences. 67 * Called to resume all the pending download entries in SharedPreferences.
66 */ 68 */
67 void resumePendingDownloads(); 69 void resumePendingDownloads();
68 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698