ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 1 | # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
jialiul | 2e3385f | 2017-03-10 00:09:34 | [diff] [blame^] | 5 | import("//third_party/protobuf/proto_library.gni") |
| 6 | |
| 7 | proto_library("csd_proto") { |
| 8 | sources = [ |
| 9 | "csd.proto", |
| 10 | ] |
| 11 | } |
| 12 | |
ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 13 | source_set("safe_browsing") { |
| 14 | sources = [ |
jialiul | 3d6032e | 2017-01-12 00:41:31 | [diff] [blame] | 15 | "base_blocking_page.cc", |
| 16 | "base_blocking_page.h", |
| 17 | "base_resource_throttle.cc", |
| 18 | "base_resource_throttle.h", |
ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 19 | "base_ui_manager.cc", |
| 20 | "base_ui_manager.h", |
| 21 | ] |
| 22 | |
| 23 | deps = [ |
jialiul | d06419a | 2017-02-27 19:40:11 | [diff] [blame] | 24 | ":base_ping_manager", |
ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 25 | "//base:base", |
jialiul | 3d6032e | 2017-01-12 00:41:31 | [diff] [blame] | 26 | "//base:i18n", |
ntfschr | 6c7b5cf | 2017-01-10 21:13:14 | [diff] [blame] | 27 | "//components/safe_browsing_db:database_manager", |
jialiul | 3d6032e | 2017-01-12 00:41:31 | [diff] [blame] | 28 | "//components/safe_browsing_db:safe_browsing_prefs", |
jialiul | a2c06925 | 2017-01-05 18:13:04 | [diff] [blame] | 29 | "//components/security_interstitials/content:security_interstitial_page", |
jialiul | 3d6032e | 2017-01-12 00:41:31 | [diff] [blame] | 30 | "//components/security_interstitials/core:core", |
ntfschr | 6c7b5cf | 2017-01-10 21:13:14 | [diff] [blame] | 31 | "//components/subresource_filter/content/browser:browser", |
ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 32 | "//content/public/browser:browser", |
ntfschr | 6c7b5cf | 2017-01-10 21:13:14 | [diff] [blame] | 33 | "//content/public/common:common", |
| 34 | "//net:net", |
ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 35 | ] |
| 36 | } |
jialiul | d06419a | 2017-02-27 19:40:11 | [diff] [blame] | 37 | |
| 38 | static_library("base_ping_manager") { |
| 39 | sources = [ |
| 40 | "base_ping_manager.cc", |
| 41 | "base_ping_manager.h", |
| 42 | ] |
| 43 | |
| 44 | public_deps = [ |
| 45 | "//google_apis:google_apis", |
| 46 | ] |
| 47 | |
| 48 | deps = [ |
| 49 | "//base:base", |
| 50 | "//components/data_use_measurement/core:core", |
| 51 | "//components/safe_browsing_db:hit_report", |
| 52 | "//components/safe_browsing_db:util", |
| 53 | "//content/public/browser:browser", |
| 54 | "//net:net", |
| 55 | ] |
| 56 | } |
| 57 | |
| 58 | source_set("base_ping_manager_unittest") { |
| 59 | testonly = true |
| 60 | sources = [ |
| 61 | "base_ping_manager_unittest.cc", |
| 62 | ] |
| 63 | |
| 64 | deps = [ |
| 65 | ":base_ping_manager", |
| 66 | "//base:base", |
| 67 | "//net:net", |
| 68 | "//net:test_support", |
| 69 | "//testing/gtest", |
| 70 | ] |
| 71 | } |