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

Issue 2228813003: Changes to fit better with the needs of the download manager. (Closed)

Created:
4 years, 4 months ago by Pete Williamson
Modified:
4 years, 4 months ago
Reviewers:
Dmitry Titov
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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes to fit better with the needs of the download manager. I thought that the client would only have clientIDs available, so I created a new set of RemoveRequestByClientId functions. However, it turns out that the client won't be persisting these either, so I am now removing them They were added in https://codereview.chromium.org/2197573003/ Also, the "Get" functions now return full SavePageRequests instead of only clientIds. The intended usage pattern is for a client to make a request then forget about it. When the client wants to do something with a request, it will first need to make a query using the GetQueuedRequest API, then it will refer to specific requests by request_id. I also made RequestQueue::RemoveRequest into RemoveRequests, since both the higher and lower level functions take a vector of request ids, to better match the calling code. BUG=610521 Committed: https://crrev.com/5f04432056986c94d2d5cf325a9addec96631547 Cr-Commit-Position: refs/heads/master@{#411533}

Patch Set 1 #

Total comments: 7

Patch Set 2 : CR fixes for Dimich #

Total comments: 2

Patch Set 3 : Use a pair as the return from the remove type #

Total comments: 2

Patch Set 4 : Use typedef to hide an ugly type. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -352 lines) Patch
M components/offline_pages/background/request_coordinator.h View 1 2 3 3 chunks +12 lines, -12 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 3 chunks +20 lines, -24 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 7 chunks +9 lines, -16 lines 0 comments Download
M components/offline_pages/background/request_queue.h View 1 2 3 3 chunks +14 lines, -9 lines 0 comments Download
M components/offline_pages/background/request_queue.cc View 1 2 3 2 chunks +7 lines, -19 lines 0 comments Download
M components/offline_pages/background/request_queue_in_memory_store.h View 1 chunk +1 line, -4 lines 0 comments Download
M components/offline_pages/background/request_queue_in_memory_store.cc View 1 2 3 2 chunks +7 lines, -24 lines 0 comments Download
M components/offline_pages/background/request_queue_store.h View 1 2 3 3 chunks +3 lines, -12 lines 0 comments Download
M components/offline_pages/background/request_queue_store_sql.h View 2 chunks +0 lines, -7 lines 0 comments Download
M components/offline_pages/background/request_queue_store_sql.cc View 1 2 3 4 chunks +25 lines, -82 lines 0 comments Download
M components/offline_pages/background/request_queue_store_unittest.cc View 1 2 3 8 chunks +36 lines, -113 lines 0 comments Download
M components/offline_pages/background/request_queue_unittest.cc View 1 2 3 8 chunks +39 lines, -30 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Dmitry Titov
https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h#newcode61 components/offline_pages/background/request_coordinator.h:61: typedef base::Callback<void(const std::vector<SavePageRequest>&)> this is a strange type. A ...
4 years, 4 months ago (2016-08-10 02:52:14 UTC) #6
Pete Williamson
https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h#newcode61 components/offline_pages/background/request_coordinator.h:61: typedef base::Callback<void(const std::vector<SavePageRequest>&)> On 2016/08/10 02:52:14, Dmitry Titov wrote: ...
4 years, 4 months ago (2016-08-10 21:15:25 UTC) #7
Dmitry Titov
Almost there! On 2016/08/10 21:15:25, Pete Williamson wrote: > https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h > File components/offline_pages/background/request_coordinator.h (right): > ...
4 years, 4 months ago (2016-08-11 04:17:03 UTC) #8
Pete Williamson
https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2228813003/diff/1/components/offline_pages/background/request_coordinator.h#newcode61 components/offline_pages/background/request_coordinator.h:61: typedef base::Callback<void(const std::vector<SavePageRequest>&)> On 2016/08/10 21:15:25, Pete Williamson wrote: ...
4 years, 4 months ago (2016-08-12 00:00:40 UTC) #9
Dmitry Titov
lgtm with a nit to fix before landing: https://codereview.chromium.org/2228813003/diff/40001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2228813003/diff/40001/components/offline_pages/background/request_coordinator.h#newcode129 components/offline_pages/background/request_coordinator.h:129: const ...
4 years, 4 months ago (2016-08-12 00:18:17 UTC) #10
Pete Williamson
https://codereview.chromium.org/2228813003/diff/40001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2228813003/diff/40001/components/offline_pages/background/request_coordinator.h#newcode129 components/offline_pages/background/request_coordinator.h:129: const std::vector<std::pair<int64_t, RequestQueue::UpdateRequestResult>>& On 2016/08/12 00:18:17, Dmitry Titov wrote: ...
4 years, 4 months ago (2016-08-12 00:53:43 UTC) #11
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/2228813003/60001
4 years, 4 months ago (2016-08-12 00:54:13 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/259974)
4 years, 4 months ago (2016-08-12 02:03:01 UTC) #16
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/2228813003/60001
4 years, 4 months ago (2016-08-12 02:07:18 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-12 03:05:06 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 03:06:33 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5f04432056986c94d2d5cf325a9addec96631547
Cr-Commit-Position: refs/heads/master@{#411533}

Powered by Google App Engine
This is Rietveld 408576698