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

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)

Created:
3 years, 7 months ago by shaktisahu
Modified:
3 years, 6 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Download Service : Added leveldb proto layer Added DownloadStore which is a layer around a leveldb ProtoDatabase that stores download params, scheduling params, request headers and various metadata as protos. Callers of DownloadStore expect a list of Entry's, hence conversion utility methods were added to convert between Entry and protodb::Entry. Other details: 1- Moved NoopStore to download/internal/test/ 2- Replaced usage of OnceCallback with repeated Callback, since the proto database expects repeated Callback. In order to change ProtoDatabase to use OnceCallback, it probably requires a larger change invloving changing the client sites of ProtoDatabase. BUG=722705 Review-Url: https://codereview.chromium.org/2881173003 Cr-Commit-Position: refs/heads/master@{#475750} Committed: https://chromium.googlesource.com/chromium/src/+/ca5a950a9da72f942db32e10751f459584998c22

Patch Set 1 #

Patch Set 2 : proto conversions #

Patch Set 3 : More unittests #

Total comments: 29

Patch Set 4 : comments #

Total comments: 7

Patch Set 5 : more comments #

Total comments: 1

Patch Set 6 : more comments #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : Using OnceCallback and removed Store::Destroy #

Total comments: 1

Patch Set 9 : Removed Model::Destroy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1120 lines, -215 lines) Patch
M components/download/internal/BUILD.gn View 1 2 3 4 5 6 5 chunks +10 lines, -2 lines 0 comments Download
M components/download/internal/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/download/internal/download_store.h View 1 2 3 4 5 6 7 1 chunk +58 lines, -0 lines 0 comments Download
A components/download/internal/download_store.cc View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A components/download/internal/download_store_unittest.cc View 1 2 3 4 5 6 7 1 chunk +240 lines, -0 lines 0 comments Download
M components/download/internal/model.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -8 lines 0 comments Download
M components/download/internal/model_impl.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -2 lines 0 comments Download
M components/download/internal/model_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -21 lines 0 comments Download
M components/download/internal/model_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +16 lines, -40 lines 0 comments Download
M components/download/internal/noop_store.h View 1 1 chunk +0 lines, -46 lines 0 comments Download
M components/download/internal/noop_store.cc View 1 1 chunk +0 lines, -53 lines 0 comments Download
A components/download/internal/proto/BUILD.gn View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A components/download/internal/proto/entry.proto View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A components/download/internal/proto/request.proto View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A components/download/internal/proto/scheduling.proto View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A components/download/internal/proto_conversions.h View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A components/download/internal/proto_conversions.cc View 1 2 3 4 5 1 chunk +285 lines, -0 lines 0 comments Download
A components/download/internal/proto_conversions_unittest.cc View 1 2 3 1 chunk +152 lines, -0 lines 0 comments Download
M components/download/internal/store.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -6 lines 0 comments Download
M components/download/internal/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/download/internal/test/entry_utils.h View 1 2 3 1 chunk +16 lines, -4 lines 0 comments Download
M components/download/internal/test/entry_utils.cc View 1 2 3 4 2 chunks +47 lines, -5 lines 0 comments Download
M components/download/internal/test/mock_model_client.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
A + components/download/internal/test/noop_store.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -4 lines 0 comments Download
A + components/download/internal/test/noop_store.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -6 lines 0 comments Download
M components/download/internal/test/test_store.h View 1 2 3 4 5 6 7 4 chunks +1 line, -5 lines 0 comments Download
M components/download/internal/test/test_store.cc View 1 2 3 4 5 6 7 3 chunks +1 line, -12 lines 0 comments Download

Messages

Total messages: 55 (39 generated)
shaktisahu
This is not complete, but could you give some high level feedback? TODO : Write ...
3 years, 7 months ago (2017-05-16 05:04:06 UTC) #3
shaktisahu
PTAL
3 years, 7 months ago (2017-05-17 23:49:11 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/2881173003/diff/60001/components/download/internal/download_store.cc File components/download/internal/download_store.cc (right): https://codereview.chromium.org/2881173003/diff/60001/components/download/internal/download_store.cc#newcode15 components/download/internal/download_store.cc:15: namespace { Put this inside namespace download too? https://codereview.chromium.org/2881173003/diff/60001/components/download/internal/download_store.cc#newcode19 ...
3 years, 7 months ago (2017-05-18 19:41:01 UTC) #7
shaktisahu
https://codereview.chromium.org/2881173003/diff/60001/components/download/internal/download_store.cc File components/download/internal/download_store.cc (right): https://codereview.chromium.org/2881173003/diff/60001/components/download/internal/download_store.cc#newcode15 components/download/internal/download_store.cc:15: namespace { On 2017/05/18 19:41:00, David Trainor-ping if over ...
3 years, 7 months ago (2017-05-19 04:54:58 UTC) #8
David Trainor- moved to gerrit
https://codereview.chromium.org/2881173003/diff/80001/components/download/internal/download_store.cc File components/download/internal/download_store.cc (right): https://codereview.chromium.org/2881173003/diff/80001/components/download/internal/download_store.cc#newcode15 components/download/internal/download_store.cc:15: namespace { I meant whole anonymous namespace :D https://codereview.chromium.org/2881173003/diff/80001/components/download/internal/proto/scheduling.proto ...
3 years, 7 months ago (2017-05-19 19:07:06 UTC) #9
shaktisahu
https://codereview.chromium.org/2881173003/diff/80001/components/download/internal/download_store.cc File components/download/internal/download_store.cc (right): https://codereview.chromium.org/2881173003/diff/80001/components/download/internal/download_store.cc#newcode15 components/download/internal/download_store.cc:15: namespace { On 2017/05/19 19:07:05, David Trainor-ping if over ...
3 years, 7 months ago (2017-05-20 03:35:58 UTC) #11
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2881173003/diff/120001/components/download/internal/download_store.cc File components/download/internal/download_store.cc (right): https://codereview.chromium.org/2881173003/diff/120001/components/download/internal/download_store.cc#newcode16 components/download/internal/download_store.cc:16: const char kDatabaseClientName[] = "DownloadService"; put these in ...
3 years, 7 months ago (2017-05-23 06:18:00 UTC) #12
David Trainor- moved to gerrit
https://codereview.chromium.org/2881173003/diff/180001/components/download/internal/store.h File components/download/internal/store.h (right): https://codereview.chromium.org/2881173003/diff/180001/components/download/internal/store.h#newcode39 components/download/internal/store.h:39: virtual void Destroy(const StoreCallback& callback) = 0; Let's remove ...
3 years, 7 months ago (2017-05-24 15:31:21 UTC) #29
shaktisahu
https://codereview.chromium.org/2881173003/diff/180001/components/download/internal/store.h File components/download/internal/store.h (right): https://codereview.chromium.org/2881173003/diff/180001/components/download/internal/store.h#newcode39 components/download/internal/store.h:39: virtual void Destroy(const StoreCallback& callback) = 0; On 2017/05/24 ...
3 years, 7 months ago (2017-05-24 18:29:01 UTC) #35
David Trainor- moved to gerrit
lgtm % nit https://codereview.chromium.org/2881173003/diff/240001/components/download/internal/model_impl.cc File components/download/internal/model_impl.cc (right): https://codereview.chromium.org/2881173003/diff/240001/components/download/internal/model_impl.cc#newcode27 components/download/internal/model_impl.cc:27: void ModelImpl::Destroy() { Just get rid ...
3 years, 7 months ago (2017-05-24 19:17:31 UTC) #36
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/2881173003/260001
3 years, 7 months ago (2017-05-24 22:02:26 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/446791)
3 years, 7 months ago (2017-05-24 22:13:43 UTC) #44
shaktisahu
nyquist@ - I need OWNERS approval for using components/leveldb_proto. PTAL
3 years, 7 months ago (2017-05-24 22:20:44 UTC) #46
nyquist
components/leveldb_proto DEPS lgtm
3 years, 6 months ago (2017-05-30 20:18:16 UTC) #47
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/2881173003/260001
3 years, 6 months ago (2017-05-31 00:04:42 UTC) #52
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 02:28:49 UTC) #55
Message was sent while issue was closed.
Committed patchset #9 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/ca5a950a9da72f942db32e10751f...

Powered by Google App Engine
This is Rietveld 408576698