blob: 2823cc346f2e249abf5efa40aaa71ff493f05928 [file] [log] [blame]
jialiul792a6662016-12-03 01:44:101# 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 Blundell8a0bf6252019-11-20 09:42:274import("//third_party/protobuf/proto_library.gni")
jialiul792a6662016-12-03 01:44:105
jialiula2c069252017-01-05 18:13:046static_library("security_interstitial_page") {
jialiul792a6662016-12-03 01:44:107 sources = [
Colin Blundell61902d92020-01-06 11:33:178 "bad_clock_blocking_page.cc",
9 "bad_clock_blocking_page.h",
Colin Blundell4c0f5712020-01-20 12:35:0010 "blocked_interception_blocking_page.cc",
11 "blocked_interception_blocking_page.h",
Colin Blundell0a255cd2019-12-11 09:19:2512 "captive_portal_blocking_page.cc",
13 "captive_portal_blocking_page.h",
Colin Blundell8a0bf6252019-11-20 09:42:2714 "cert_report_helper.cc",
15 "cert_report_helper.h",
16 "certificate_error_report.cc",
17 "certificate_error_report.h",
Colin Blundella1aa27c22020-01-07 09:19:0818 "common_name_mismatch_handler.cc",
19 "common_name_mismatch_handler.h",
Carlos IL8e8d7882018-03-21 18:23:3620 "connection_help_ui.cc",
21 "connection_help_ui.h",
Christopher Thompsonbe7210f2019-11-22 22:37:3022 "known_interception_disclosure_ui.cc",
23 "known_interception_disclosure_ui.h",
Colin Blundell04197f22020-01-14 13:28:2724 "mitm_software_blocking_page.cc",
25 "mitm_software_blocking_page.h",
Daniel Vogelheim7badd0d2019-02-04 14:42:1826 "origin_policy_interstitial_page.cc",
27 "origin_policy_interstitial_page.h",
Daniel Vogelheim6008f572018-09-24 14:35:1428 "origin_policy_ui.cc",
29 "origin_policy_ui.h",
jialiula2c069252017-01-05 18:13:0430 "security_interstitial_controller_client.cc",
31 "security_interstitial_controller_client.h",
32 "security_interstitial_page.cc",
33 "security_interstitial_page.h",
Carlos ILe2201a452018-05-10 20:19:1234 "security_interstitial_tab_helper.cc",
35 "security_interstitial_tab_helper.h",
Colin Blundell72dfce12019-11-21 10:51:4336 "ssl_blocking_page.cc",
37 "ssl_blocking_page.h",
38 "ssl_blocking_page_base.cc",
39 "ssl_blocking_page_base.h",
Evan Stade1e71d6dd2019-10-29 03:04:4940 "ssl_cert_reporter.h",
Colin Blundell36f41d152020-01-24 13:51:5741 "ssl_error_assistant.cc",
42 "ssl_error_assistant.h",
Evan Stade1e71d6dd2019-10-29 03:04:4943 "ssl_error_navigation_throttle.cc",
44 "ssl_error_navigation_throttle.h",
jialiul792a6662016-12-03 01:44:1045 "unsafe_resource.cc",
46 "unsafe_resource.h",
Carlos IL8e8d7882018-03-21 18:23:3647 "urls.cc",
48 "urls.h",
jialiul792a6662016-12-03 01:44:1049 ]
50
Nico Weber83c5a362020-01-13 19:25:5651 public_deps = [ "//components/safe_browsing/core/db:hit_report" ]
ntfschra3234332016-12-22 01:15:4252
jialiul792a6662016-12-03 01:44:1053 deps = [
Colin Blundell8a0bf6252019-11-20 09:42:2754 ":proto",
jialiul792a6662016-12-03 01:44:1055 "//base",
Colin Blundell8a0bf6252019-11-20 09:42:2756 "//build:branding_buildflags",
Colin Blundell7cf3fe32020-01-23 09:52:4957 "//components/captive_portal/core",
Colin Blundell8a0bf6252019-11-20 09:42:2758 "//components/network_time",
jialiula2c069252017-01-05 18:13:0459 "//components/prefs:prefs",
60 "//components/resources",
Ali Jumafb3dc1f2020-01-07 17:33:4761 "//components/safe_browsing/core/common:safe_browsing_prefs",
62 "//components/safe_browsing/core/db:hit_report",
63 "//components/safe_browsing/core/db:util",
jialiula2c069252017-01-05 18:13:0464 "//components/security_interstitials/core:core",
Colin Blundell61902d92020-01-06 11:33:1765 "//components/ssl_errors",
Carlos IL8e8d7882018-03-21 18:23:3666 "//components/strings:components_strings_grit",
Colin Blundell0a255cd2019-12-11 09:19:2567 "//components/url_formatter",
Colin Blundell8a0bf6252019-11-20 09:42:2768 "//components/user_prefs",
69 "//components/variations",
70 "//components/version_info",
jialiul792a6662016-12-03 01:44:1071 "//content/public/browser",
jialiula2c069252017-01-05 18:13:0472 "//content/public/common",
Colin Blundell36f41d152020-01-24 13:51:5773 "//crypto",
Andy Paicu8b6f8712019-07-16 15:02:2674 "//services/network/public/cpp:cpp",
Colin Blundell36f41d152020-01-24 13:51:5775 "//third_party/protobuf:protobuf_lite",
76 "//third_party/re2",
jialiul792a6662016-12-03 01:44:1077 ]
Colin Blundell0a255cd2019-12-11 09:19:2578
79 if (is_win || is_mac) {
80 deps += [ "//components/wifi" ]
81 }
jialiul792a6662016-12-03 01:44:1082}
Carlos ILe2201a452018-05-10 20:19:1283
Colin Blundell8a0bf6252019-11-20 09:42:2784proto_library("proto") {
85 sources = [
86 "cert_logger.proto",
Colin Blundell2d95af652020-01-07 11:29:5487 "ssl_error_assistant.proto",
Colin Blundell8a0bf6252019-11-20 09:42:2788 ]
89}
90
Carlos ILe2201a452018-05-10 20:19:1291source_set("unit_tests") {
92 testonly = true
93 sources = [
Colin Blundell8a0bf6252019-11-20 09:42:2794 "certificate_error_report_unittest.cc",
Carlos ILe2201a452018-05-10 20:19:1295 "security_interstitial_tab_helper_unittest.cc",
Colin Blundell36f41d152020-01-24 13:51:5796 "ssl_error_assistant_unittest.cc",
Colin Blundell463ed0a2019-11-19 11:45:3797 "ssl_error_navigation_throttle_unittest.cc",
Carlos ILe2201a452018-05-10 20:19:1298 ]
99
100 deps = [
Colin Blundell8a0bf6252019-11-20 09:42:27101 ":proto",
Carlos ILe2201a452018-05-10 20:19:12102 ":security_interstitial_page",
103 "//base",
104 "//base/test:test_support",
Colin Blundell8a0bf6252019-11-20 09:42:27105 "//components/network_time:network_time_test_support",
106 "//components/prefs:test_support",
Carlos ILe2201a452018-05-10 20:19:12107 "//components/security_interstitials/core:core",
Colin Blundell8a0bf6252019-11-20 09:42:27108 "//components/version_info",
Carlos ILe2201a452018-05-10 20:19:12109 "//content/public/browser",
110 "//content/public/common",
111 "//content/test:test_support",
112 "//net:",
113 "//net:test_support",
Colin Blundell8a0bf6252019-11-20 09:42:27114 "//services/network:test_support",
Carlos ILe2201a452018-05-10 20:19:12115 "//testing/gtest",
116 ]
117}