|
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
Total comments: 29
Total comments: 7
Total comments: 1
Total comments: 2
Total comments: 1
|
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
|
Total messages: 55 (39 generated)
|