diff options
author | mathp@chromium.org <mathp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-18 16:22:30 +0000 |
---|---|---|
committer | mathp@chromium.org <mathp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-18 16:22:30 +0000 |
commit | 2b894b8dae83b4bada9199713504aeb52cdfc8ed (patch) | |
tree | f527ed157c42675be946635c08a81288863b4ef5 /components/dom_distiller.gypi | |
parent | ab4f95a66b2e01a329562d2f7a2b4445b0e4ee47 (diff) | |
download | chromium_src-2b894b8dae83b4bada9199713504aeb52cdfc8ed.zip chromium_src-2b894b8dae83b4bada9199713504aeb52cdfc8ed.tar.gz chromium_src-2b894b8dae83b4bada9199713504aeb52cdfc8ed.tar.bz2 |
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
Review URL: https://codereview.chromium.org/330833002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278096 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r-- | components/dom_distiller.gypi | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi index cc7bae5..80e1f4e 100644 --- a/components/dom_distiller.gypi +++ b/components/dom_distiller.gypi @@ -37,8 +37,7 @@ '../skia/skia.gyp:skia', '../sync/sync.gyp:sync', '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto', - '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', - '../third_party/protobuf/protobuf.gyp:protobuf_lite', + 'components.gyp:leveldb_proto', 'components_resources.gyp:components_resources', 'components_strings.gyp:components_strings', 'distilled_page_proto', @@ -67,8 +66,6 @@ 'dom_distiller/core/distiller_url_fetcher.h', 'dom_distiller/core/dom_distiller_constants.cc', 'dom_distiller/core/dom_distiller_constants.h', - 'dom_distiller/core/dom_distiller_database.cc', - 'dom_distiller/core/dom_distiller_database.h', 'dom_distiller/core/dom_distiller_model.cc', 'dom_distiller/core/dom_distiller_model.h', 'dom_distiller/core/dom_distiller_observer.h', @@ -102,6 +99,7 @@ 'type': 'static_library', 'dependencies': [ 'dom_distiller_core', + 'components.gyp:leveldb_proto_test_support', '../sync/sync.gyp:sync', '../testing/gmock.gyp:gmock', ], @@ -111,8 +109,6 @@ 'sources': [ 'dom_distiller/core/dom_distiller_test_util.cc', 'dom_distiller/core/dom_distiller_test_util.h', - 'dom_distiller/core/fake_db.cc', - 'dom_distiller/core/fake_db.h', 'dom_distiller/core/fake_distiller.cc', 'dom_distiller/core/fake_distiller.h', 'dom_distiller/core/fake_distiller_page.cc', |