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

Issue 2256373002: Adds request queue removal capability to OfflinePageBridge. (Closed)

Created:
4 years, 4 months ago by dewittj
Modified:
4 years, 4 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@query-queue
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds request queue removal capability to OfflinePageBridge. Also adds a callback for when the task has finished. BUG=620421 Committed: https://crrev.com/1430d329f356914f91ebae7ec4542524ceccf173 Cr-Commit-Position: refs/heads/master@{#413989}

Patch Set 1 #

Patch Set 2 : add test to bridge #

Patch Set 3 : Rebase #

Patch Set 4 : Add a comment. #

Total comments: 7

Patch Set 5 : address comments. #

Patch Set 6 : Rename some callbacks. #

Total comments: 5

Patch Set 7 : Address comments, make remove return a result object rather than a request object. #

Patch Set 8 : fix test #

Patch Set 9 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -12 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 1 2 3 4 5 6 7 8 2 chunks +67 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java View 1 2 3 4 5 6 2 chunks +52 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 3 4 5 6 7 8 3 chunks +50 lines, -0 lines 0 comments Download
M components/offline_pages/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -7 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +28 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_queue.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 50 (31 generated)
dewittj
ptal, thanks!
4 years, 4 months ago (2016-08-19 17:47:00 UTC) #11
dougarnett
Initially have a question about what terminology we should use. This CL is exposing a ...
4 years, 4 months ago (2016-08-19 18:26:31 UTC) #12
dougarnett
https://codereview.chromium.org/2256373002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/2256373002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode250 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:250: * The callback will be called with |null| in ...
4 years, 4 months ago (2016-08-19 19:35:59 UTC) #15
dewittj
ptal, thanks https://codereview.chromium.org/2256373002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/2256373002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode250 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:250: * The callback will be called with ...
4 years, 4 months ago (2016-08-19 20:21:17 UTC) #16
dougarnett
lgtm https://codereview.chromium.org/2256373002/diff/60001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2256373002/diff/60001/components/offline_pages/background/request_coordinator.cc#newcode169 components/offline_pages/background/request_coordinator.cc:169: void RequestCoordinator::ExplicitlyRemoveRequestsCallback( On 2016/08/19 20:21:17, dewittj wrote: > ...
4 years, 4 months ago (2016-08-19 20:32:10 UTC) #17
dewittj
On 2016/08/19 20:32:10, dougarnett wrote: > lgtm > > https://codereview.chromium.org/2256373002/diff/60001/components/offline_pages/background/request_coordinator.cc > File components/offline_pages/background/request_coordinator.cc (right): > ...
4 years, 4 months ago (2016-08-19 21:42:08 UTC) #20
fgorski
drive by. https://codereview.chromium.org/2256373002/diff/100001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2256373002/diff/100001/components/offline_pages/background/request_coordinator.cc#newcode173 components/offline_pages/background/request_coordinator.cc:173: HandleRemovedRequests(results, requests); 3 things that I am ...
4 years, 4 months ago (2016-08-19 21:51:19 UTC) #22
dewittj
Thanks for the drive-by. https://codereview.chromium.org/2256373002/diff/100001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2256373002/diff/100001/components/offline_pages/background/request_coordinator.cc#newcode173 components/offline_pages/background/request_coordinator.cc:173: HandleRemovedRequests(results, requests); On 2016/08/19 21:51:19, ...
4 years, 4 months ago (2016-08-19 21:56:38 UTC) #23
Dmitry Titov
https://codereview.chromium.org/2256373002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/2256373002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode258 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:258: List<SavePageRequest> requests, Callback<SavePageRequest[]> callback) { It'd be cleaner if ...
4 years, 4 months ago (2016-08-19 22:30:11 UTC) #24
dewittj
ptal, thanks! https://codereview.chromium.org/2256373002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/2256373002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode258 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:258: List<SavePageRequest> requests, Callback<SavePageRequest[]> callback) { On 2016/08/19 ...
4 years, 4 months ago (2016-08-20 03:22:35 UTC) #27
dewittj
dimich: ping, thanks!
4 years, 4 months ago (2016-08-22 19:16:53 UTC) #36
dewittj
this needs to land ASAP so I can land dependent changes before branch, will land ...
4 years, 4 months ago (2016-08-23 16:38:23 UTC) #37
dougarnett
lgtm
4 years, 4 months ago (2016-08-23 17:45:20 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2256373002/140001
4 years, 4 months ago (2016-08-23 22:10:04 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/279512)
4 years, 4 months ago (2016-08-23 23:34:27 UTC) #42
Dmitry Titov
lgtm
4 years, 4 months ago (2016-08-24 01:12:21 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2256373002/160001
4 years, 4 months ago (2016-08-24 03:06:16 UTC) #46
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-24 05:33:22 UTC) #48
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 05:37:36 UTC) #50
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1430d329f356914f91ebae7ec4542524ceccf173
Cr-Commit-Position: refs/heads/master@{#413989}

Powered by Google App Engine
This is Rietveld 408576698