naiveproxy/components/safe_browsing/browser/BUILD.gn
2018-01-29 00:30:36 +08:00

60 lines
1.8 KiB
Plaintext

# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
source_set("browser") {
sources = [
"base_parallel_resource_throttle.cc",
"base_parallel_resource_throttle.h",
"browser_url_loader_throttle.cc",
"browser_url_loader_throttle.h",
"mojo_safe_browsing_impl.cc",
"mojo_safe_browsing_impl.h",
"safe_browsing_url_checker_impl.cc",
"safe_browsing_url_checker_impl.h",
"safe_browsing_url_request_context_getter.cc",
"safe_browsing_url_request_context_getter.h",
"threat_details.cc",
"threat_details.h",
"threat_details_cache.cc",
"threat_details_cache.h",
"threat_details_history.cc",
"threat_details_history.h",
"url_checker_delegate.h",
]
deps = [
"//components/data_use_measurement/core:core",
"//components/history/core/browser:browser",
"//components/safe_browsing:csd_proto",
"//components/safe_browsing:features",
"//components/safe_browsing:safe_browsing",
"//components/safe_browsing/common:common",
"//components/safe_browsing/db:database_manager",
"//components/safe_browsing/web_ui:constants",
"//components/safe_browsing/web_ui:web_ui",
"//components/security_interstitials/content:security_interstitial_page",
"//content/public/browser:browser",
"//net:extras",
]
}
source_set("unittests") {
testonly = true
sources = [
"base_parallel_resource_throttle_unittest.cc",
]
deps = [
":browser",
"//base",
"//components/safe_browsing",
"//components/safe_browsing/db:test_database_manager",
"//content/public/browser",
"//content/test:test_support",
"//net:test_support",
"//testing/gtest",
]
}