1 include_rules = [ 2 # Much of WebData is being broken off and moved into a component 3 # under //components/webdata, that does not depend on //chrome), so 4 # we have these basic rules followed by temporary exceptions. 5 # Please don't add to the list of exceptions! 6 "-chrome/browser", 7 "-chrome/common", 8 "+chrome/browser/webdata", 9 10 # TODO(caitkp, kaiwang): Bring this list to zero. 11 # Do not add to the list of temporarily-allowed dependencies below, 12 # and please do not introduce more #includes of these files. 13 "!chrome/browser/history/history_database.h", 14 15 # TODO(caitkp): Remove this, at slightly lower priority - this is 16 # just a set of header-only enums, so we can live with it 17 # temporarily even after we componentize. 18 "!chrome/common/chrome_notification_types.h", 19 ] 20 21 specific_include_rules = { 22 # These files are staying in //chrome, so no need to restrict. 23 r"((autocomplete|autofill_profile)_syncable_service|web_data_service(_win)?(_factory)?)(_unittest)?\.(cc|h)": [ 24 "+chrome/browser", 25 "+chrome/common", 26 ], 27 28 # TODO(joi): Move sign-in related files to //components. For now, 29 # use these rules to prevent regressions. 30 r"^logins_.*": [ 31 "-chrome/browser/webdata", 32 "+chrome/browser/webdata/logins_table.h", 33 ], 34 35 # TODO(caitkp): Componentize all the different tables. For now, we 36 # write these rules so they don't add bad dependencies. 37 r"^[a-z_]+_table(_unittest|_win)?\.(cc|h)": [ 38 "!chrome/browser/history/history_database.h", 39 "!components/search_engines/template_url.h", 40 "!components/search_engines/template_url_service.h", 41 ], 42 43 # TODO(caitkp): Extract unit tests from //chrome, at lower priority 44 # than production code. 45 r"(.*_unittest|.*_test_util)\.(cc|h)": [ 46 "+chrome/browser/webdata/token_web_data.h", 47 "+chrome/browser/webdata/web_data_service.h", 48 "+chrome/browser/webdata/web_data_service_factory.h", 49 ], 50 } 51