|
|
[Offline pages] Implementation of OfflineBackgroundTask using background_task_scheduler
This patch makes updates to offline pages background scheduling to
enabel use of background_task_scheduler when scheduling for M+ (using JobScheduler):
* BackgroundJobScheduler uses the new component to schedule task,
* BackgroundOfflinerTask#startBackgroundRequest is refactored to
enable handling both JobScheduler, and GCMNetworkManager task
handling.
* Implementation is provided in:
BackgroundOfflinerTask#startBackgroundRequestImpl
* BackgroundSchedulerBridge adds a method to stopProcessing
* The call is passed to RequestCoordinator, using a newly added
Offliner::RequestStatus::BACKGROUND_SCHEDULER_CANCELED
* Handling of PersistableBundle is removed from TaskExtrasPacker
as this functionality is handled by background_task_scheduler
BUG= 682802
R=petewil@chromium.org,nyquist@chromium.org
TBR=holte@chromium.org
Review-Url: https://codereview.chromium.org/2697493002
Cr-Commit-Position: refs/heads/master@{#453966}
Committed: https://chromium.googlesource.com/chromium/src/+/40b86413cfabfcb66588b7d6f5fe430c19403659
Total comments: 2
Total comments: 10
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+143 lines, -168 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundJobScheduler.java
|
View
|
1
2
3
4
|
1 chunk |
+19 lines, -31 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java
|
View
|
1
2
3
|
5 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java
|
View
|
1
2
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerJobService.java
|
View
|
1
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerProcessorImpl.java
|
View
|
1
2
3
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflineBackgroundTask.java
|
View
|
1
2
3
4
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPacker.java
|
View
|
1
2
|
4 chunks |
+0 lines, -34 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/interfaces/BackgroundSchedulerProcessor.java
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java
|
View
|
1
2
|
2 chunks |
+0 lines, -42 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/offline_pages/background_scheduler_bridge.cc
|
View
|
1
2
|
2 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/TaskIds.java
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/offline_pages/core/background/offliner.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/offline_pages/core/background/request_coordinator.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/offline_pages/core/background/request_coordinator_event_logger.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 32 (22 generated)
|