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

Issue 330833002: Extract protobuf database into a new 'leveldb_proto' component (Closed)

Created:
6 years, 6 months ago by Mathieu
Modified:
6 years, 6 months ago
Reviewers:
cjhopman, blundell
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : components/ OWNERS #

Total comments: 14

Patch Set 3 : addressed comments #

Total comments: 2

Patch Set 4 : Addressed comments #

Patch Set 5 : includes #

Total comments: 2

Patch Set 6 : namespace #

Total comments: 4

Patch Set 7 : Moved out of core/ #

Total comments: 2

Patch Set 8 : no more _core in target name #

Patch Set 9 : (c) 2014 #

Patch Set 10 : Update some tests #

Patch Set 11 : >> #

Patch Set 12 : rebased #

Patch Set 13 : fix test #

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

Messages

Total messages: 28 (0 generated)
Mathieu
Hi, This is ready for review. cjhopman (Review): - chrome/browser/dom_distiller* - components/dom_distiller - components/leveldb_proto darin ...
6 years, 6 months ago (2014-06-13 15:39:02 UTC) #1
cjhopman
https://codereview.chromium.org/330833002/diff/20001/components/leveldb_proto/core/proto_database.h File components/leveldb_proto/core/proto_database.h (right): https://codereview.chromium.org/330833002/diff/20001/components/leveldb_proto/core/proto_database.h#newcode32 components/leveldb_proto/core/proto_database.h:32: // Asynchronously initializes the object. |callback| will be invoked ...
6 years, 6 months ago (2014-06-13 19:41:05 UTC) #2
Mathieu
Thanks for your reply! Also added a couple of typedefs to make life more readable. ...
6 years, 6 months ago (2014-06-13 22:07:07 UTC) #3
blundell
I'll defer to Chris for the main review. Please ping me for components OWNERS once ...
6 years, 6 months ago (2014-06-16 14:08:41 UTC) #4
Mathieu
On 2014/06/16 14:08:41, blundell wrote: > I'll defer to Chris for the main review. Please ...
6 years, 6 months ago (2014-06-16 14:10:04 UTC) #5
cjhopman
https://codereview.chromium.org/330833002/diff/40001/components/leveldb_proto/core/proto_database_impl.h File components/leveldb_proto/core/proto_database_impl.h (right): https://codereview.chromium.org/330833002/diff/40001/components/leveldb_proto/core/proto_database_impl.h#newcode41 components/leveldb_proto/core/proto_database_impl.h:41: class Database { Since this is an inner class ...
6 years, 6 months ago (2014-06-16 22:44:44 UTC) #6
Mathieu
Thanks, have a look! https://codereview.chromium.org/330833002/diff/40001/components/leveldb_proto/core/proto_database_impl.h File components/leveldb_proto/core/proto_database_impl.h (right): https://codereview.chromium.org/330833002/diff/40001/components/leveldb_proto/core/proto_database_impl.h#newcode41 components/leveldb_proto/core/proto_database_impl.h:41: class Database { On 2014/06/16 ...
6 years, 6 months ago (2014-06-17 17:41:00 UTC) #7
cjhopman
lgtm https://codereview.chromium.org/330833002/diff/80001/components/leveldb_proto/core/leveldb_database.h File components/leveldb_proto/core/leveldb_database.h (right): https://codereview.chromium.org/330833002/diff/80001/components/leveldb_proto/core/leveldb_database.h#newcode17 components/leveldb_proto/core/leveldb_database.h:17: } // end leveldb nit: s/end/namespace
6 years, 6 months ago (2014-06-17 18:05:08 UTC) #8
Mathieu
Thanks! blundell: components/ darin: chrome/browser/DEPS https://codereview.chromium.org/330833002/diff/80001/components/leveldb_proto/core/leveldb_database.h File components/leveldb_proto/core/leveldb_database.h (right): https://codereview.chromium.org/330833002/diff/80001/components/leveldb_proto/core/leveldb_database.h#newcode17 components/leveldb_proto/core/leveldb_database.h:17: } // end leveldb ...
6 years, 6 months ago (2014-06-17 18:08:56 UTC) #9
blundell
You need to add leveldb_proto.gypi. https://codereview.chromium.org/330833002/diff/100001/components/leveldb_proto/core/leveldb_database.h File components/leveldb_proto/core/leveldb_database.h (right): https://codereview.chromium.org/330833002/diff/100001/components/leveldb_proto/core/leveldb_database.h#newcode5 components/leveldb_proto/core/leveldb_database.h:5: #ifndef COMPONENTS_LEVELDB_PROTO_CORE_LEVEL_DATABASE_H_ This component ...
6 years, 6 months ago (2014-06-17 18:12:51 UTC) #10
blundell
https://codereview.chromium.org/330833002/diff/100001/chrome/browser/dom_distiller/dom_distiller_service_factory.cc File chrome/browser/dom_distiller/dom_distiller_service_factory.cc (right): https://codereview.chromium.org/330833002/diff/100001/chrome/browser/dom_distiller/dom_distiller_service_factory.cc#newcode24 chrome/browser/dom_distiller/dom_distiller_service_factory.cc:24: : DomDistillerService(store.Pass(), distiller_factory.Pass(), You can TBR jochen or thakis ...
6 years, 6 months ago (2014-06-17 18:13:51 UTC) #11
Mathieu
Thanks! Hope you won't mind me still using the leveldb_proto_core target name. I find it ...
6 years, 6 months ago (2014-06-17 18:30:54 UTC) #12
Mathieu
+dgrogan third_party/leveldatabase OWNERS, because apparently I have to...
6 years, 6 months ago (2014-06-17 18:31:34 UTC) #13
blundell
LGTM Make sure to add jochen as a reviewer and specify what you're asking him ...
6 years, 6 months ago (2014-06-17 18:37:05 UTC) #14
Mathieu
TBR jochen for chrome/browser/DEPS TBR dgrogan because a presubmit check warns me I should add ...
6 years, 6 months ago (2014-06-17 19:31:18 UTC) #15
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 6 months ago (2014-06-17 19:34:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/330833002/160001
6 years, 6 months ago (2014-06-17 19:36:06 UTC) #17
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 6 months ago (2014-06-17 20:32:21 UTC) #18
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 6 months ago (2014-06-17 20:54:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/330833002/180001
6 years, 6 months ago (2014-06-17 20:57:39 UTC) #20
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 6 months ago (2014-06-18 02:53:54 UTC) #21
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 6 months ago (2014-06-18 02:54:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/330833002/180001
6 years, 6 months ago (2014-06-18 02:54:13 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 05:12:51 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/196929) linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/35407) linux_chromium_rel ...
6 years, 6 months ago (2014-06-18 05:12:52 UTC) #25
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 6 months ago (2014-06-18 12:10:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/330833002/240001
6 years, 6 months ago (2014-06-18 12:11:34 UTC) #27
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 16:22:37 UTC) #28
Message was sent while issue was closed.
Change committed as 278096

Powered by Google App Engine
This is Rietveld 408576698