# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_win || is_mac || is_linux || is_chromeos)
import("//third_party/protobuf/proto_library.gni")
source_set("background") {
public = [
"ntp_background_data.h",
"ntp_background_service.h",
"ntp_background_service_factory.h",
"ntp_background_service_observer.h",
"ntp_backgrounds.h",
"ntp_custom_background_service.h",
"ntp_custom_background_service_factory.h",
"ntp_custom_background_service_observer.h",
"wallpaper_search/wallpaper_search_background_manager.h",
"wallpaper_search/wallpaper_search_background_manager_observer.h",
"wallpaper_search/wallpaper_search_data.h",
]
sources = [
"ntp_background_data.cc",
"ntp_background_service.cc",
"ntp_background_service_factory.cc",
"ntp_backgrounds.cc",
"ntp_custom_background_service.cc",
"ntp_custom_background_service_factory.cc",
"wallpaper_search/wallpaper_search_background_manager.cc",
"wallpaper_search/wallpaper_search_data.cc",
]
public_deps = [
":ntp_background_proto",
"//base",
"//chrome/browser/profiles:profile",
"//chrome/browser/themes",
"//chrome/browser/ui/webui/side_panel/customize_chrome:mojo_bindings",
"//components/image_fetcher/core",
"//components/keyed_service/core",
"//components/prefs",
"//components/signin/public/identity_manager",
"//content/public/browser",
"//net",
"//services/network/public/cpp",
"//skia",
"//ui/gfx:color_utils",
"//url",
]
deps = [
":constants",
"//chrome/browser:browser_process",
"//chrome/browser/image_fetcher",
"//chrome/common",
"//components/optimization_guide/core:features",
"//components/pref_registry",
"//components/search",
"//components/version_info",
"//ui/base:features",
"//ui/base/mojom",
"//ui/gfx",
"//ui/gfx/codec",
]
}
source_set("constants") {
sources = [ "ntp_custom_background_service_constants.h" ]
deps = []
}
proto_library("ntp_background_proto") {
sources = [ "ntp_background.proto" ]
generate_python = false
}