jialiul | 792a666 | 2016-12-03 01:44:10 | [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. |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 4 | import("//third_party/protobuf/proto_library.gni") |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 5 | |
jialiul | a2c06925 | 2017-01-05 18:13:04 | [diff] [blame] | 6 | static_library("security_interstitial_page") { |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 7 | sources = [ |
Colin Blundell | 61902d9 | 2020-01-06 11:33:17 | [diff] [blame] | 8 | "bad_clock_blocking_page.cc", |
| 9 | "bad_clock_blocking_page.h", |
Colin Blundell | 4c0f571 | 2020-01-20 12:35:00 | [diff] [blame] | 10 | "blocked_interception_blocking_page.cc", |
| 11 | "blocked_interception_blocking_page.h", |
Colin Blundell | 0a255cd | 2019-12-11 09:19:25 | [diff] [blame] | 12 | "captive_portal_blocking_page.cc", |
| 13 | "captive_portal_blocking_page.h", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 14 | "cert_report_helper.cc", |
| 15 | "cert_report_helper.h", |
| 16 | "certificate_error_report.cc", |
| 17 | "certificate_error_report.h", |
Colin Blundell | a1aa27c2 | 2020-01-07 09:19:08 | [diff] [blame] | 18 | "common_name_mismatch_handler.cc", |
| 19 | "common_name_mismatch_handler.h", |
Carlos IL | 8e8d788 | 2018-03-21 18:23:36 | [diff] [blame] | 20 | "connection_help_ui.cc", |
| 21 | "connection_help_ui.h", |
Christopher Thompson | be7210f | 2019-11-22 22:37:30 | [diff] [blame] | 22 | "known_interception_disclosure_ui.cc", |
| 23 | "known_interception_disclosure_ui.h", |
Colin Blundell | 04197f2 | 2020-01-14 13:28:27 | [diff] [blame] | 24 | "mitm_software_blocking_page.cc", |
| 25 | "mitm_software_blocking_page.h", |
Daniel Vogelheim | 7badd0d | 2019-02-04 14:42:18 | [diff] [blame] | 26 | "origin_policy_interstitial_page.cc", |
| 27 | "origin_policy_interstitial_page.h", |
Daniel Vogelheim | 6008f57 | 2018-09-24 14:35:14 | [diff] [blame] | 28 | "origin_policy_ui.cc", |
| 29 | "origin_policy_ui.h", |
jialiul | a2c06925 | 2017-01-05 18:13:04 | [diff] [blame] | 30 | "security_interstitial_controller_client.cc", |
| 31 | "security_interstitial_controller_client.h", |
| 32 | "security_interstitial_page.cc", |
| 33 | "security_interstitial_page.h", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 34 | "security_interstitial_tab_helper.cc", |
| 35 | "security_interstitial_tab_helper.h", |
Colin Blundell | 72dfce1 | 2019-11-21 10:51:43 | [diff] [blame] | 36 | "ssl_blocking_page.cc", |
| 37 | "ssl_blocking_page.h", |
| 38 | "ssl_blocking_page_base.cc", |
| 39 | "ssl_blocking_page_base.h", |
Evan Stade | 1e71d6dd | 2019-10-29 03:04:49 | [diff] [blame] | 40 | "ssl_cert_reporter.h", |
Colin Blundell | 36f41d15 | 2020-01-24 13:51:57 | [diff] [blame^] | 41 | "ssl_error_assistant.cc", |
| 42 | "ssl_error_assistant.h", |
Evan Stade | 1e71d6dd | 2019-10-29 03:04:49 | [diff] [blame] | 43 | "ssl_error_navigation_throttle.cc", |
| 44 | "ssl_error_navigation_throttle.h", |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 45 | "unsafe_resource.cc", |
| 46 | "unsafe_resource.h", |
Carlos IL | 8e8d788 | 2018-03-21 18:23:36 | [diff] [blame] | 47 | "urls.cc", |
| 48 | "urls.h", |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 49 | ] |
| 50 | |
Nico Weber | 83c5a36 | 2020-01-13 19:25:56 | [diff] [blame] | 51 | public_deps = [ "//components/safe_browsing/core/db:hit_report" ] |
ntfschr | a323433 | 2016-12-22 01:15:42 | [diff] [blame] | 52 | |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 53 | deps = [ |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 54 | ":proto", |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 55 | "//base", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 56 | "//build:branding_buildflags", |
Colin Blundell | 7cf3fe3 | 2020-01-23 09:52:49 | [diff] [blame] | 57 | "//components/captive_portal/core", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 58 | "//components/network_time", |
jialiul | a2c06925 | 2017-01-05 18:13:04 | [diff] [blame] | 59 | "//components/prefs:prefs", |
| 60 | "//components/resources", |
Ali Juma | fb3dc1f | 2020-01-07 17:33:47 | [diff] [blame] | 61 | "//components/safe_browsing/core/common:safe_browsing_prefs", |
| 62 | "//components/safe_browsing/core/db:hit_report", |
| 63 | "//components/safe_browsing/core/db:util", |
jialiul | a2c06925 | 2017-01-05 18:13:04 | [diff] [blame] | 64 | "//components/security_interstitials/core:core", |
Colin Blundell | 61902d9 | 2020-01-06 11:33:17 | [diff] [blame] | 65 | "//components/ssl_errors", |
Carlos IL | 8e8d788 | 2018-03-21 18:23:36 | [diff] [blame] | 66 | "//components/strings:components_strings_grit", |
Colin Blundell | 0a255cd | 2019-12-11 09:19:25 | [diff] [blame] | 67 | "//components/url_formatter", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 68 | "//components/user_prefs", |
| 69 | "//components/variations", |
| 70 | "//components/version_info", |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 71 | "//content/public/browser", |
jialiul | a2c06925 | 2017-01-05 18:13:04 | [diff] [blame] | 72 | "//content/public/common", |
Colin Blundell | 36f41d15 | 2020-01-24 13:51:57 | [diff] [blame^] | 73 | "//crypto", |
Andy Paicu | 8b6f871 | 2019-07-16 15:02:26 | [diff] [blame] | 74 | "//services/network/public/cpp:cpp", |
Colin Blundell | 36f41d15 | 2020-01-24 13:51:57 | [diff] [blame^] | 75 | "//third_party/protobuf:protobuf_lite", |
| 76 | "//third_party/re2", |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 77 | ] |
Colin Blundell | 0a255cd | 2019-12-11 09:19:25 | [diff] [blame] | 78 | |
| 79 | if (is_win || is_mac) { |
| 80 | deps += [ "//components/wifi" ] |
| 81 | } |
jialiul | 792a666 | 2016-12-03 01:44:10 | [diff] [blame] | 82 | } |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 83 | |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 84 | proto_library("proto") { |
| 85 | sources = [ |
| 86 | "cert_logger.proto", |
Colin Blundell | 2d95af65 | 2020-01-07 11:29:54 | [diff] [blame] | 87 | "ssl_error_assistant.proto", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 88 | ] |
| 89 | } |
| 90 | |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 91 | source_set("unit_tests") { |
| 92 | testonly = true |
| 93 | sources = [ |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 94 | "certificate_error_report_unittest.cc", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 95 | "security_interstitial_tab_helper_unittest.cc", |
Colin Blundell | 36f41d15 | 2020-01-24 13:51:57 | [diff] [blame^] | 96 | "ssl_error_assistant_unittest.cc", |
Colin Blundell | 463ed0a | 2019-11-19 11:45:37 | [diff] [blame] | 97 | "ssl_error_navigation_throttle_unittest.cc", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 98 | ] |
| 99 | |
| 100 | deps = [ |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 101 | ":proto", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 102 | ":security_interstitial_page", |
| 103 | "//base", |
| 104 | "//base/test:test_support", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 105 | "//components/network_time:network_time_test_support", |
| 106 | "//components/prefs:test_support", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 107 | "//components/security_interstitials/core:core", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 108 | "//components/version_info", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 109 | "//content/public/browser", |
| 110 | "//content/public/common", |
| 111 | "//content/test:test_support", |
| 112 | "//net:", |
| 113 | "//net:test_support", |
Colin Blundell | 8a0bf625 | 2019-11-20 09:42:27 | [diff] [blame] | 114 | "//services/network:test_support", |
Carlos IL | e2201a45 | 2018-05-10 20:19:12 | [diff] [blame] | 115 | "//testing/gtest", |
| 116 | ] |
| 117 | } |