File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (167 lines) | stat: -rw-r--r-- 5,180 bytes parent folder | download | duplicates (5)
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
# Copyright 2016 The Chromium Authors
# 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("//components/guest_view/buildflags/buildflags.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",
    "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",
    "https_only_mode_blocking_page.cc",
    "https_only_mode_blocking_page.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",
    "mitm_software_blocking_page.cc",
    "mitm_software_blocking_page.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",
    "urls.cc",
    "urls.h",
    "utils.cc",
    "utils.h",
  ]

  public_deps = [
    "//components/captive_portal/core:buildflags",
    "//components/safe_browsing/core/browser/db:hit_report",
  ]

  deps = [
    ":proto",
    "//base",
    "//build:branding_buildflags",
    "//components/captive_portal/core",
    "//components/content_settings/core/browser",
    "//components/content_settings/core/common",
    "//components/guest_view/buildflags",
    "//components/history/core/browser",
    "//components/keyed_service/core",
    "//components/network_time",
    "//components/omnibox/common:common",
    "//components/pref_registry",
    "//components/prefs:prefs",
    "//components/resources",
    "//components/safe_browsing/core/common:common",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//components/security_interstitials/core:core",
    "//components/security_interstitials/core:insecure_form_util",
    "//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",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  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 || is_fuchsia) {
    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" ]
  }

  if (enable_guest_view) {
    deps += [ "//components/guest_view/browser" ]
  }
}

proto_library("proto") {
  sources = [ "ssl_error_assistant.proto" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "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",
  ]
}