summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/browser/BUILD.gn
blob: 81aaa166f05d071cf4c68565c1efbbb26eb90739 (plain)
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
# 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_network_context.cc",
    "safe_browsing_network_context.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",
  ]
}