# Copyright 2026 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("v8_compile_hints") {
  public = [ "v8_compile_hints_tab_helper.h" ]

  public_deps = [
    "//base",
    "//chrome/browser/v8_compile_hints/proto",
    "//content/public/browser",
  ]
}

source_set("impl") {
  sources = [ "v8_compile_hints_tab_helper.cc" ]

  deps = [
    ":v8_compile_hints",
    "//chrome/browser/optimization_guide",
    "//chrome/browser/profiles:profile",
    "//components/optimization_guide/core",
    "//components/optimization_guide/proto:optimization_guide_proto",
    "//content/public/browser",
    "//third_party/blink/public/common",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "v8_compile_hints_tab_helper_unittest.cc" ]

  deps = [
    ":v8_compile_hints",
    "//base",
    "//base/test:test_support",
    "//chrome/browser/optimization_guide",
    "//chrome/browser/optimization_guide:test_support",
    "//chrome/test:test_support",
    "//components/optimization_guide/core",
    "//content/test:test_support",
    "//testing/gtest",
  ]
}
