|
Add support for pulling icons for OfflineItems
- Add the concept of OfflineItemVisuals, which are heavyweight visual
components associated with an OfflineItem. Make that API async and
by request only.
- Hook up the OfflineItemVisuals to the current bridge pipeline and
notification system. This involves building a small cache in the bridge
that handles passing these to the notification layer so that these are
queried infrequently. In the future, having a unified cache mechanism
would be better, but right now notifications and downloads home have
very different caching characteristics.
- Added support for showing the icons in notifications. There are still
some jumps where the icon vanishes and reappears because we process the
action before notifying native. A follow up patch should look into
removing setting those notifications early.
BUG= 691805
Review-Url: https://codereview.chromium.org/2811803006
Cr-Commit-Position: refs/heads/master@{#465146}
Committed: https://chromium.googlesource.com/chromium/src/+/cdde15e4fb35971f7008d9fadfa3192d301ac763
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+881 lines, -179 lines) |
Patch |
|
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java
|
View
|
1
2
|
8 chunks |
+19 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
|
View
|
1
2
3
4
5
6
|
13 chunks |
+73 lines, -52 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUi.java
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+129 lines, -26 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadNotificationServiceTest.java
|
View
|
1
2
3
4
5
6
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java
|
View
|
1
2
3
4
5
6
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
A |
chrome/android/junit/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiTest.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+334 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/BUILD.gn
|
View
|
1
2
3
4
|
4 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/DEPS
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineContentAggregatorBridge.java
|
View
|
1
2
3
4
|
6 chunks |
+32 lines, -1 line |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineContentProvider.java
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java
|
View
|
1
|
1 chunk |
+0 lines, -72 lines |
0 comments
|
Download
|
|
A |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemVisuals.java
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/VisualsCallback.java
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A + |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/bridges/OfflineItemBridge.java
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
A |
components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/bridges/OfflineItemVisualsBridge.java
|
View
|
1
2
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/android/offline_content_aggregator_bridge.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/android/offline_content_aggregator_bridge.cc
|
View
|
|
4 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/offline_items_collection/core/android/offline_item_visuals_bridge.h
|
View
|
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
A |
components/offline_items_collection/core/android/offline_item_visuals_bridge.cc
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/offline_content_aggregator.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/offline_content_aggregator.cc
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/offline_content_aggregator_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/offline_content_provider.h
|
View
|
1
2
|
5 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/offline_item.h
|
View
|
1
2
|
2 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/offline_item.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/test_support/mock_offline_content_provider.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/throttled_offline_content_provider.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/throttled_offline_content_provider.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/offline_items_collection/core/throttled_offline_content_provider_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/android/eclipse/.classpath
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 41 (33 generated)
|