summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/BUILD.gn
blob: 06bf6321c2cb6350a0f1e5999aa1e0fddfe12017 (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
62
63
64
65
66
67
68
69
70
# Copyright 2016 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("//third_party/protobuf/proto_library.gni")

proto_library("csd_proto") {
  sources = [
    "csd.proto",
  ]
}

source_set("safe_browsing") {
  sources = [
    "base_blocking_page.cc",
    "base_blocking_page.h",
    "base_resource_throttle.cc",
    "base_resource_throttle.h",
    "base_ui_manager.cc",
    "base_ui_manager.h",
  ]

  deps = [
    ":base_ping_manager",
    "//base:base",
    "//base:i18n",
    "//components/safe_browsing/common:safe_browsing_prefs",
    "//components/safe_browsing_db:database_manager",
    "//components/security_interstitials/content:security_interstitial_page",
    "//components/security_interstitials/core:core",
    "//content/public/browser:browser",
    "//content/public/common:common",
    "//net:net",
  ]
}

static_library("base_ping_manager") {
  sources = [
    "base_ping_manager.cc",
    "base_ping_manager.h",
  ]

  public_deps = [
    "//google_apis:google_apis",
  ]

  deps = [
    "//base:base",
    "//components/data_use_measurement/core:core",
    "//components/safe_browsing_db:hit_report",
    "//components/safe_browsing_db:util",
    "//content/public/browser:browser",
    "//net:net",
  ]
}

source_set("base_ping_manager_unittest") {
  testonly = true
  sources = [
    "base_ping_manager_unittest.cc",
  ]

  deps = [
    ":base_ping_manager",
    "//base:base",
    "//net:net",
    "//net:test_support",
    "//testing/gtest",
  ]
}