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