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
|
# Copyright 2017 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")
assert(use_blink,
"Policy Throttle should not be referenced on non-blink platforms")
source_set("safe_sites_navigation_throttle") {
sources = [
"proceed_until_response_navigation_throttle.cc",
"proceed_until_response_navigation_throttle.h",
"safe_search_service.cc",
"safe_search_service.h",
"safe_sites_navigation_throttle.cc",
"safe_sites_navigation_throttle.h",
]
deps = [
"//base",
"//components/keyed_service/content:content",
"//components/policy/core/browser",
"//components/safe_search_api",
"//components/safe_search_api:safe_search_client",
"//components/url_matcher",
"//content/public/browser",
"//net",
]
}
source_set("content") {
sources = [
"policy_blocklist_navigation_throttle.cc",
"policy_blocklist_navigation_throttle.h",
"policy_blocklist_service.cc",
"policy_blocklist_service.h",
]
if (is_win || is_mac || is_linux || is_chromeos) {
sources += [
"password_manager_blocklist_policy.cc",
"password_manager_blocklist_policy.h",
]
}
deps = [
":safe_sites_navigation_throttle",
"//components/keyed_service/content:content",
"//components/policy/core/browser",
"//components/prefs",
"//components/user_prefs:user_prefs",
"//content/public/browser",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"policy_blocklist_navigation_throttle_unittest.cc",
"proceed_until_response_navigation_throttle_unittest.cc",
]
deps = [
":content",
":safe_sites_navigation_throttle",
"//base",
"//components/keyed_service/content",
"//components/policy/core/browser",
"//components/safe_search_api",
"//components/safe_search_api:safe_search_client",
"//components/safe_search_api:test_support",
"//components/sync_preferences:test_support",
"//components/user_prefs:user_prefs",
"//content/public/browser",
"//content/test:test_support",
"//testing/gtest",
"//url",
]
}
|