chromium/chrome/browser/extensions/DEPS

include_rules = [
  "+components/app_constants/constants.h",
  "+components/crash/content/browser/error_reporting",
  "+components/guest_view/common",
  "+components/security_state/content",
  "+components/live_caption",
  "+extensions/strings/grit/extensions_strings.h",
  "+services/network/public",

  # For access to testing command line switches.
  "+ppapi/shared_impl",

  # Fuzzer tests require ICU initialization.
  "+third_party/icu/fuzzers/fuzzer_utils.h",

  # The extensions system should not depend on Chrome Platform Apps (or any
  # other component of the apps system).
  # https://crbug.com/873872.
  "-chrome/browser/apps",
]
specific_include_rules = {
  ".*test(_chromeos)?\.(cc|h)$": [
    # For now, tests are allowed to depend on app_browsertest_util.h, since
    # that's where PlatformAppBrowserTest is defined. Ideally, we'd eventually
    # move all Platform App-specific tests to chrome/browser/apps/platform_apps.
    "+chrome/browser/apps/platform_apps/app_browsertest_util.h",
  ],

  "extension_protocols_unittest\.cc": [
    "+services/network/test",
  ],
  "extension_gcm_app_handler_unittest\.cc": [
    "+services/network/test",
  ],
  "zipfile_installer_unittest.cc": [
    "+services/data_decoder",
  ],
  "test_extension_system.cc": [
    "+services/data_decoder",
  ],
  "updater/extension_updater_unittest\.cc": [
    "+services/network/test",
  ],

  "chrome_extension_cookies\.h": [
    # TODO(crbug.com/40672800): Remove.
    "+services/network/cookie_settings.h",
  ],

  "chrome_extension_cookies\.cc": [
    # TODO(crbug.com/40672800): Remove.
    "+services/network/cookie_manager.h",
    "+services/network/restricted_cookie_manager.h",
  ],

  "webstore_private_apitest.cc" : [
    # TODO(crbug.com/40135906): Remove this layering violation.
    "+chrome/browser/ui/views/supervised_user/parent_permission_dialog_view.h",
  ],

  # This DEPS violation snuck in while there was a bug in the checkdeps tool.
  # https://crbug.com/1084826
  "browsertest_util\.cc": [
    "+chrome/browser/apps/app_service/app_launch_params.h",
    "+chrome/browser/apps/app_service/app_service_proxy.h",
    "+chrome/browser/apps/app_service/app_service_proxy_factory.h",
    "+chrome/browser/apps/app_service/browser_app_launcher.h",
  ],

  # This DEPS violation snuck in while there was a bug in the checkdeps tool.
  # https://crbug.com/1084826
  "chrome_extension_host_delegate\.cc": [
    "+chrome/browser/apps/platform_apps/audio_focus_web_contents_observer.h",
  ],

  # This DEPS violation snuck in while there was a bug in the checkdeps tool.
  # https://crbug.com/1084826
  "extension_apitest\.cc": [
    "+chrome/browser/apps/app_service/app_launch_params.h",
    "+chrome/browser/apps/app_service/app_service_proxy.h",
    "+chrome/browser/apps/app_service/app_service_proxy_factory.h",
    "+chrome/browser/apps/app_service/browser_app_launcher.h",
  ],

  # This DEPS violation snuck in while there was a bug in the checkdeps tool.
  # https://crbug.com/1084826
  "extension_browsertest\.cc": [
    "+chrome/browser/apps/app_service/app_launch_params.h",
    "+chrome/browser/apps/app_service/app_service_proxy.h",
    "+chrome/browser/apps/app_service/app_service_proxy_factory.h",
    "+chrome/browser/apps/app_service/browser_app_launcher.h",
  ],

  # This DEPS violation snuck in while there was a bug in the checkdeps tool.
  # https://crbug.com/1084826
  "external_pref_loader\.cc": [
    "+chrome/browser/apps/user_type_filter.h",
  ],

  "extension_service_unittest.cc" : [
    "+components/services/storage/privileged/mojom/indexed_db_control.mojom.h",
    "+components/services/storage/privileged/mojom/indexed_db_control_test.mojom.h",
  ],
}