diff options
author | sdefresne <sdefresne@chromium.org> | 2014-12-30 11:23:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-30 19:25:07 +0000 |
commit | eb278881097c0365c0e265392ff50f03c6292862 (patch) | |
tree | 80af2b03f42385a846fbe92787461b2c94b4d8c3 /components/history.gypi | |
parent | d8de1100ecce0dbf8e0e52a7bf72f0e5517b5ff8 (diff) | |
download | chromium_src-eb278881097c0365c0e265392ff50f03c6292862.zip chromium_src-eb278881097c0365c0e265392ff50f03c6292862.tar.gz chromium_src-eb278881097c0365c0e265392ff50f03c6292862.tar.bz2 |
Partial componentization of //chrome/browser/history
Move thumbnail_database.{cc,h} to //components/history/core/browser
as they don't have dependency on //chrome or //content and add a new
depenency on //third_party/sqlite from the history component.
Move url_utils.{cc,h}, visit_filter.{cc,h}, visit_tracker.{cc,h},
visitsegment_database.{cc,h}, in_memory_url_index_types.{cc,h} and
top_sites_cache.{cc,h} to //components/history/core/browser as they
are leaf files that don't have dependency on //chrome or //content.
Move visit_database.{cc,h} to //components/history/core/browser after
fixing the #include to use "url/url_constants.h" to get the constants
defined in the url namespace.
Move in_memory_url_index_cache.proto since it has no dependencies and
add the gyp target history_core_browser_proto and gn target
//components/history/core/browser:proto.
All files were moved using tools/git/move_source_files.py and then the
build system files (gyp and gn) were manually editted.
Remove obsolete #includes and fix missing #includes.
BUG=390953, 370850
TBR=sky@chromium.org
Review URL: https://codereview.chromium.org/831643003
Cr-Commit-Position: refs/heads/master@{#309765}
Diffstat (limited to 'components/history.gypi')
-rw-r--r-- | components/history.gypi | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/components/history.gypi b/components/history.gypi index 622a540..f91843d 100644 --- a/components/history.gypi +++ b/components/history.gypi @@ -15,10 +15,12 @@ '../base/base.gyp:base', '../net/net.gyp:net', '../sql/sql.gyp:sql', + '../third_party/sqlite/sqlite.gyp:sqlite', '../ui/base/ui_base.gyp:ui_base', '../ui/gfx/gfx.gyp:gfx', '../url/url.gyp:url_lib', 'favicon_base', + 'history_core_browser_proto', 'keyed_service_core', 'query_parser', ], @@ -38,19 +40,50 @@ 'history/core/browser/history_types.h', 'history/core/browser/in_memory_database.cc', 'history/core/browser/in_memory_database.h', + 'history/core/browser/in_memory_url_index_types.cc', + 'history/core/browser/in_memory_url_index_types.h', 'history/core/browser/keyword_id.h', 'history/core/browser/keyword_search_term.cc', 'history/core/browser/keyword_search_term.h', 'history/core/browser/page_usage_data.cc', 'history/core/browser/page_usage_data.h', + 'history/core/browser/thumbnail_database.cc', + 'history/core/browser/thumbnail_database.h', + 'history/core/browser/top_sites_cache.cc', + 'history/core/browser/top_sites_cache.h', 'history/core/browser/top_sites_observer.h', 'history/core/browser/url_database.cc', 'history/core/browser/url_database.h', 'history/core/browser/url_row.cc', 'history/core/browser/url_row.h', + 'history/core/browser/url_utils.cc', + 'history/core/browser/url_utils.h', + 'history/core/browser/visit_database.cc', + 'history/core/browser/visit_database.h', + 'history/core/browser/visit_filter.cc', + 'history/core/browser/visit_filter.h', + 'history/core/browser/visit_tracker.cc', + 'history/core/browser/visit_tracker.h', + 'history/core/browser/visitsegment_database.cc', + 'history/core/browser/visitsegment_database.h', ], }, { + # GN version: //components/history/core/browser:proto + # Protobuf compiler / generator for the InMemoryURLIndex caching + # protocol buffer. + 'target_name': 'history_core_browser_proto', + 'type': 'static_library', + 'sources': [ + 'history/core/browser/in_memory_url_index_cache.proto', + ], + 'variables': { + 'proto_in_dir': 'history/core/browser', + 'proto_out_dir': 'components/history/core/browser', + }, + 'includes': [ '../build/protoc.gypi' ] + }, + { # GN version: //components/history/core/common 'target_name': 'history_core_common', 'type': 'static_library', |