|
Extract protobuf database into a new 'leveldb_proto' component
Code extracted from components/dom_distiller/core/dom_distiller_database.*
Slight API change: callers to UpdateEntries now have to pass a vector of (string, proto) as key and value, instead of just a vector of protos where key is derived.
Ran clang-format on the files I touched so you may see some diffs.
Note: Implementations are in proto_database_impl.h and fake_db.h for proper linking.
BUG= 385747
TBR=jochen,dgrogan
TEST=DomDistiller*,ProtoDatabaseImplTest
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278096
Total comments: 14
Total comments: 2
Total comments: 2
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+897 lines, -1173 lines) |
Patch |
 |
M |
chrome/browser/DEPS
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_distiller/dom_distiller_service_factory.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/reading_list_private/reading_list_private_apitest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/OWNERS
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/components.gyp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/components_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller.gypi
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/DEPS
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
D |
components/dom_distiller/core/dom_distiller_database.h
|
View
|
|
1 chunk |
+0 lines, -124 lines |
0 comments
|
Download
|
 |
D |
components/dom_distiller/core/dom_distiller_database.cc
|
View
|
|
1 chunk |
+0 lines, -224 lines |
0 comments
|
Download
|
 |
D |
components/dom_distiller/core/dom_distiller_database_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -397 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/dom_distiller_service_unittest.cc
|
View
|
|
11 chunks |
+27 lines, -35 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/dom_distiller_store.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+16 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/dom_distiller_store.cc
|
View
|
|
8 chunks |
+29 lines, -35 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/dom_distiller_store_unittest.cc
|
View
|
|
19 chunks |
+38 lines, -47 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/dom_distiller_test_util.h
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/dom_distiller_test_util.cc
|
View
|
|
4 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
D |
components/dom_distiller/core/fake_db.h
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
D |
components/dom_distiller/core/fake_db.cc
|
View
|
|
1 chunk |
+0 lines, -79 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/standalone/content_extractor.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/DEPS
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/OWNERS
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/README
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/leveldb_database.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/leveldb_database.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+93 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/proto_database.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/proto_database_impl.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+204 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/leveldb_proto/proto_database_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
16 chunks |
+104 lines, -104 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/testing/fake_db.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+146 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/leveldb_proto/testing/proto/test.proto
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
Total messages: 28 (0 generated)
|