1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63

content / browser / renderer_host / DEPS [blame]

include_rules = [
  "+cc/switches.h", # For cc command line switches.
  "+components/viz/common",
  "+components/viz/host",
  "+jni",
  "+net/dns/public",
  "+third_party/blink/public/platform/web_gesture_curve.h",
  "+third_party/zlib",
  "+ui/events/gestures/blink/web_gesture_curve_impl.h",
  "+ui/latency",

  # The renderer_host files should only call upwards in the layering via the
  # delegate interfaces.
  "-content/browser/web_contents",
  "-content/public/browser/web_contents.h",
  "-content/public/browser/web_contents_delegate.h",
  "-content/public/browser/web_contents_view.h",
]

specific_include_rules = {
  ".*_(unit|browser)test\.(cc|mm)": [
    "+content/browser/web_contents",
    "+content/public/browser/web_contents.h",
    "+content/public/browser/web_contents_delegate.h",
    "+content/public/browser/web_contents_view.h",
  ],
  ".*_mac.*": [
    "+content/app_shim_remote_cocoa",
    "+components/remote_cocoa",
  ],
  "back_forward_cache_metrics.cc": [
    # For using DisabledReasonId.
    "+components/back_forward_cache/disabled_reason_id.h",
  ],
  "embedded_frame_sink_provider_impl_unittest\.cc": [
    "+components/viz/service",
  ],
  "render_process_host_impl(_receiver_bindings)?\.cc": [
    "+google_apis/gaia/gaia_config.h",
    "+google_apis/gaia/gaia_switches.h",
    # TODO(crbug.com/41326135): Dependencies on ozone should be removed, as content
    # embedded in mus won't be able to talk to the native ozone.
    "+ui/ozone/public/ozone_switches.h",
  ],
  "render_widget_host_view_aura_unittest\.cc": [
    "+ui/ozone/public/ozone_platform.h",
  ],
  "render_widget_host_view_aura\.cc": [
    "+ui/ozone/public/ozone_platform.h",
  ],
  "render_widget_host_view_base\.cc": [
    "+ui/ozone/public/ozone_platform.h",
  ],
  "render_widget_host_view_mac\.mm": [
    "+components/device_event_log/device_event_log.h",
    "+content/public/browser/web_contents.h",
    "+ui/menus/cocoa/text_services_context_menu.h",
  ],
  "popup_menu_helper_mac.mm": [
    "+content/app_shim_remote_cocoa/render_widget_host_view_cocoa.h",
    "+content/public/browser/web_contents.h",
  ]
}