1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//components/captive_portal/core/features.gni")
import("//third_party/protobuf/proto_library.gni")
static_library("security_interstitial_page") {
sources = [
"bad_clock_blocking_page.cc",
"bad_clock_blocking_page.h",
"blocked_interception_blocking_page.cc",
"blocked_interception_blocking_page.h",
"captive_portal_blocking_page.cc",
"captive_portal_blocking_page.h",
"captive_portal_helper.h",
"cert_report_helper.cc",
"cert_report_helper.h",
"certificate_error_report.cc",
"certificate_error_report.h",
"common_name_mismatch_handler.cc",
"common_name_mismatch_handler.h",
"connection_help_ui.cc",
"connection_help_ui.h",
"content_metrics_helper.cc",
"content_metrics_helper.h",
"insecure_form_blocking_page.cc",
"insecure_form_blocking_page.h",
"insecure_form_navigation_throttle.cc",
"insecure_form_navigation_throttle.h",
"insecure_form_tab_storage.cc",
"insecure_form_tab_storage.h",
"known_interception_disclosure_ui.cc",
"known_interception_disclosure_ui.h",
"legacy_tls_blocking_page.cc",
"legacy_tls_blocking_page.h",
"mitm_software_blocking_page.cc",
"mitm_software_blocking_page.h",
"origin_policy_interstitial_page.cc",
"origin_policy_interstitial_page.h",
"origin_policy_ui.cc",
"origin_policy_ui.h",
"security_blocking_page_factory.h",
"security_interstitial_controller_client.cc",
"security_interstitial_controller_client.h",
"security_interstitial_page.cc",
"security_interstitial_page.h",
"security_interstitial_tab_helper.cc",
"security_interstitial_tab_helper.h",
"settings_page_helper.h",
"ssl_blocking_page.cc",
"ssl_blocking_page.h",
"ssl_blocking_page_base.cc",
"ssl_blocking_page_base.h",
"ssl_cert_reporter.h",
"ssl_error_assistant.cc",
"ssl_error_assistant.h",
"ssl_error_handler.cc",
"ssl_error_handler.h",
"ssl_error_navigation_throttle.cc",
"ssl_error_navigation_throttle.h",
"stateful_ssl_host_state_delegate.cc",
"stateful_ssl_host_state_delegate.h",
"unsafe_resource_util.cc",
"unsafe_resource_util.h",
"urls.cc",
"urls.h",
"utils.cc",
"utils.h",
]
public_deps = [
"//components/captive_portal/core:buildflags",
"//components/safe_browsing/core/db:hit_report",
]
deps = [
":proto",
"//base",
"//build:branding_buildflags",
"//components/captive_portal/core",
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/history/core/browser",
"//components/keyed_service/core",
"//components/network_time",
"//components/pref_registry",
"//components/prefs:prefs",
"//components/resources",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/security_interstitials/core:core",
"//components/security_interstitials/core:unsafe_resource",
"//components/ssl_errors",
"//components/strings:components_strings_grit",
"//components/url_formatter",
"//components/user_prefs",
"//components/variations",
"//components/version_info",
"//content/public/browser",
"//content/public/common",
"//crypto",
"//services/network/public/cpp:cpp",
"//third_party/protobuf:protobuf_lite",
"//third_party/re2",
]
if (enable_captive_portal_detection) {
sources += [
"captive_portal_metrics_recorder.cc",
"captive_portal_metrics_recorder.h",
]
deps += [ "//components/captive_portal/content" ]
}
if (is_win || is_mac) {
deps += [ "//components/wifi" ]
}
if (is_win) {
sources += [ "captive_portal_helper_win.cc" ]
}
if (is_android) {
sources += [
"captive_portal_helper_android.cc",
"captive_portal_helper_android.h",
]
deps +=
[ "//components/security_interstitials/content/android:jni_headers" ]
}
}
proto_library("proto") {
sources = [
"cert_logger.proto",
"ssl_error_assistant.proto",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"certificate_error_report_unittest.cc",
"security_interstitial_tab_helper_unittest.cc",
"ssl_error_assistant_unittest.cc",
"ssl_error_handler_unittest.cc",
"ssl_error_navigation_throttle_unittest.cc",
]
deps = [
":proto",
":security_interstitial_page",
"//base",
"//base/test:test_support",
"//components/captive_portal/content",
"//components/captive_portal/core:test_support",
"//components/embedder_support",
"//components/network_time",
"//components/network_time:network_time_test_support",
"//components/prefs:test_support",
"//components/security_interstitials/core:core",
"//components/version_info",
"//content/public/browser",
"//content/public/common",
"//content/test:test_support",
"//net:",
"//net:test_support",
"//services/network:test_support",
"//testing/gtest",
]
}
|