Home | History | Annotate | Download | only in webdata
      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   "+components/encryptor",
     10 
     11   # TODO(caitkp, kaiwang): Bring this list to zero.
     12   # Do not add to the list of temporarily-allowed dependencies below,
     13   # and please do not introduce more #includes of these files.
     14   "!chrome/browser/history/history_database.h",
     15 
     16   # TODO(caitkp): Remove this, at slightly lower priority - this is
     17   # just a set of header-only enums, so we can live with it
     18   # temporarily even after we componentize.
     19   "!chrome/common/chrome_notification_types.h",
     20 ]
     21 
     22 specific_include_rules = {
     23   # These files are staying in //chrome, so no need to restrict.
     24   r"((autocomplete|autofill_profile)_syncable_service|web_data_service(_win)?(_factory)?)(_unittest)?\.(cc|h)": [
     25     "+chrome/browser",
     26     "+chrome/common",
     27   ],
     28 
     29   # TODO(joi): Move sign-in related files to //components. For now,
     30   # use these rules to prevent regressions.
     31   r"^logins_.*": [
     32     "-chrome/browser/webdata",
     33     "+chrome/browser/webdata/logins_table.h",
     34   ],
     35 
     36   # TODO(caitkp): Componentize all the different tables. For now, we
     37   # write these rules so they don't add bad dependencies.
     38   r"^[a-z_]+_table(_unittest|_win)?\.(cc|h)": [
     39     "!chrome/browser/history/history_database.h",
     40     "!chrome/browser/search_engines/search_terms_data.h",
     41     "!chrome/browser/search_engines/template_url.h",
     42     "!chrome/browser/search_engines/template_url_id.h",
     43     "!chrome/browser/search_engines/template_url_service.h",
     44   ],
     45 
     46   # TODO(caitkp): Extract unit tests from //chrome, at lower priority
     47   # than production code.
     48   r"(.*_unittest|.*_test_util)\.(cc|h)": [
     49     "+chrome/browser/webdata/token_web_data.h",
     50     "+chrome/browser/webdata/web_data_service.h",
     51     "+chrome/browser/webdata/web_data_service_factory.h",
     52   ],
     53 }
     54