|
|
Initial work to move downloads to ContentIds
Right now the DownloadNotificationService identifies downloads by a
GUID and a boolean, which lets it both uniquely identify that item and
associate it with an underlying provider (download or offline page).
We're moving all downloaded content to be identified by a ContentId and
represented as an OfflineItem. As part of that work (based on need
priority) we're moving the DownloadNotificationService to use ContentIds
instead of a GUID and boolean.
Migration details:
1. Downloads will be given the namespace LEGACY_DOWNLOADS until they are
migrated.
2. Offline pages will be given the namespace LEGACY_OFFLINE_PAGES until
they are migrated.
3. The backend provider will be determined by the ContentId based on the
legacy constants mentioned above.
BUG= 691805
Review-Url: https://codereview.chromium.org/2768953002
Cr-Commit-Position: refs/heads/master@{#460319}
Committed: https://chromium.googlesource.com/chromium/src/+/8b97a74f58c8b45a85de5c5521a58a54a0935700
Total comments: 2
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+723 lines, -397 lines) |
Patch |
 |
M |
chrome/android/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadBroadcastReceiver.java
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java
|
View
|
1
2
|
6 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadItem.java
|
View
|
1
2
3
4
5
6
|
5 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+16 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
|
View
|
1
2
3
4
5
6
|
25 chunks |
+167 lines, -167 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadServiceDelegate.java
|
View
|
|
1 chunk |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntry.java
|
View
|
1
2
3
4
5
|
7 chunks |
+202 lines, -68 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceHelper.java
|
View
|
|
7 chunks |
+20 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSnackbarController.java
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java
|
View
|
1
2
3
4
|
3 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridge.java
|
View
|
|
3 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/DEPS
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadManagerServiceTest.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadNotificationServiceTest.java
|
View
|
1
2
3
4
5
6
|
11 chunks |
+42 lines, -43 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java
|
View
|
|
3 chunks |
+16 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/android/junit/DEPS
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntryTest.java
|
View
|
1
2
3
4
5
|
11 chunks |
+96 lines, -29 lines |
0 comments
|
Download
|
 |
M |
components/offline_items_collection/core/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/ContentId.java
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+24 lines, -2 lines |
0 comments
|
Download
|
 |
A |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/LegacyHelpers.java
|
View
|
1
2
3
4
5
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/offline_items_collection/core/offline_item.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/offline_items_collection/core/offline_item.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 58 (43 generated)
|