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