blob: 8c856d807d8d309057cf04713dff993ba10eb1eb [file] [log] [blame]
# Copyright 2025 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("dom_distiller") {
sources = [
"dom_distiller_service_factory.h",
"lazy_dom_distiller_service.h",
"profile_utils.h",
"tab_utils.h",
]
public_deps = [
"//base",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui/zoom",
"//components/dom_distiller/core",
"//components/keyed_service/core",
]
if (is_android) {
sources += [
"../android/dom_distiller/distiller_ui_handle_android.h",
"dom_distiller_service_factory_android.h",
]
}
}
source_set("impl") {
sources = [
"dom_distiller_service_factory.cc",
"lazy_dom_distiller_service.cc",
"profile_utils.cc",
"tab_utils.cc",
]
deps = [
":dom_distiller",
"//chrome/browser/profiles",
"//chrome/browser/ui/tab_contents",
"//chrome/common",
"//chrome/common:non_code_constants",
"//components/back_forward_cache",
"//components/dom_distiller/content/browser",
]
if (is_android) {
sources += [
"../android/dom_distiller/distiller_ui_handle_android.cc",
"dom_distiller_service_factory_android.cc",
"tab_utils_android.cc",
]
deps += [
"//chrome/android:chrome_jni_headers",
"//components/navigation_interception",
]
}
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
}
if (!is_android) {
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [
"distillable_page_utils_browsertest.cc",
"dom_distiller_viewer_source_browsertest.cc",
"tab_utils_browsertest.cc",
"test_distillation_observers.cc",
"test_distillation_observers.h",
]
public_deps = [ "//content/public/browser" ]
deps = [
":dom_distiller",
"//base/test:test_support",
"//build:chromeos_buildflags",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui",
"//chrome/browser/ui:browser_navigator_params_headers",
"//chrome/browser/ui/exclusive_access",
"//chrome/browser/ui/tabs:tab_strip",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/common",
"//chrome/common:non_code_constants",
"//chrome/test:test_support_ui",
"//components/back_forward_cache",
"//components/dom_distiller/content/browser",
"//components/dom_distiller/content/browser:test_support",
"//components/dom_distiller/core",
"//components/dom_distiller/core:test_support",
"//components/favicon/content",
"//components/favicon/core",
"//components/security_state/content",
"//components/security_state/core",
"//components/strings:components_strings",
"//content/public/common",
"//content/test:test_support",
"//net",
"//net:test_support",
"//services/network/public/cpp:flags_and_switches",
"//testing/gmock",
"//testing/gtest",
"//third_party/blink/public/common:headers",
"//ui/base",
"//ui/gfx:test_support",
"//url",
]
}
}