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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
# Copyright 2016 The Chromium Authors
# 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")
import("//components/safe_browsing/buildflags.gni")
import("//mojo/public/tools/bindings/mojom.gni")
static_library("safe_browsing_prefs") {
sources = [
"safe_browsing_prefs.cc",
"safe_browsing_prefs.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
":features",
"//components/pref_registry:pref_registry",
"//components/prefs",
"//net:net",
]
public_deps = [ "//base" ]
}
source_set("safe_browsing_policy_handler") {
sources = [
"safe_browsing_policy_handler.cc",
"safe_browsing_policy_handler.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
":safe_browsing_prefs",
"//base:base",
"//components/policy:generated",
"//components/policy/core/browser",
"//components/prefs",
"//components/strings:components_strings_grit",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"safe_browsing_policy_handler_unittest.cc",
"safe_browsing_prefs_unittest.cc",
"scheme_logger_unittest.cc",
"utils_unittest.cc",
]
deps = [
":common",
":safe_browsing_policy_handler",
":safe_browsing_prefs",
"//base:base",
"//base/test:test_support",
"//components/policy/core/browser:browser",
"//components/policy/core/browser:test_support",
"//components/prefs:test_support",
"//testing/gtest",
"//url:url",
]
if (is_ios) {
deps += [ "//components/test:safe_browsing_test_bundle_data" ]
}
}
source_set("common") {
sources = [
"safe_browsing_settings_metrics.cc",
"safe_browsing_settings_metrics.h",
"safebrowsing_constants.cc",
"safebrowsing_constants.h",
"safebrowsing_referral_methods.h",
"safebrowsing_switches.cc",
"safebrowsing_switches.h",
"scheme_logger.cc",
"scheme_logger.h",
"utils.cc",
"utils.h",
"web_ui_constants.cc",
"web_ui_constants.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//base",
"//components/policy/core/browser:browser",
"//components/prefs:prefs",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/core/browser/db:hit_report",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/security_interstitials/core:unsafe_resource",
"//components/variations",
"//crypto:crypto",
"//ipc",
"//net",
"//services/network/public/mojom",
"//url/ipc:url_ipc",
]
public_deps = [
":features",
":interfaces",
]
}
source_set("features") {
sources = [
"features.cc",
"features.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//base",
"//components/safe_browsing:buildflags",
]
}
mojom("interfaces") {
sources = [ "safe_browsing_url_checker.mojom" ]
public_deps = [ "//url/mojom:url_mojom_gurl" ]
}
|