BUILD.gn 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Copyright 2015 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.
  4. static_library("core") {
  5. sources = [
  6. "bad_clock_ui.cc",
  7. "bad_clock_ui.h",
  8. "base_safe_browsing_error_ui.cc",
  9. "base_safe_browsing_error_ui.h",
  10. "common_string_util.cc",
  11. "common_string_util.h",
  12. "controller_client.cc",
  13. "controller_client.h",
  14. "https_only_mode_allowlist.cc",
  15. "https_only_mode_allowlist.h",
  16. "https_only_mode_metrics.cc",
  17. "https_only_mode_metrics.h",
  18. "https_only_mode_ui_util.cc",
  19. "https_only_mode_ui_util.h",
  20. "metrics_helper.cc",
  21. "metrics_helper.h",
  22. "omnibox_https_upgrade_metrics.cc",
  23. "omnibox_https_upgrade_metrics.h",
  24. "pref_names.cc",
  25. "pref_names.h",
  26. "safe_browsing_loud_error_ui.cc",
  27. "safe_browsing_loud_error_ui.h",
  28. "safe_browsing_quiet_error_ui.cc",
  29. "safe_browsing_quiet_error_ui.h",
  30. "ssl_error_options_mask.cc",
  31. "ssl_error_options_mask.h",
  32. "ssl_error_ui.cc",
  33. "ssl_error_ui.h",
  34. "urls.cc",
  35. "urls.h",
  36. ]
  37. if (!is_ios) {
  38. sources += [
  39. "blocked_interception_ui.cc",
  40. "blocked_interception_ui.h",
  41. "https_only_mode_policy_handler.cc",
  42. "https_only_mode_policy_handler.h",
  43. "mitm_software_ui.cc",
  44. "mitm_software_ui.h",
  45. ]
  46. }
  47. deps = [
  48. "//base",
  49. "//base:i18n",
  50. "//components/content_settings/core/browser",
  51. "//components/google/core/common",
  52. "//components/history/core/browser",
  53. "//components/metrics",
  54. "//components/policy/core/browser",
  55. "//components/policy/core/common",
  56. "//components/prefs",
  57. "//components/resources",
  58. "//components/ssl_errors",
  59. "//components/strings",
  60. "//components/url_formatter",
  61. "//net",
  62. "//third_party/zlib/google:compression_utils",
  63. "//ui/base",
  64. ]
  65. public_deps = [ "//components/security_interstitials/core/common/mojom" ]
  66. }
  67. static_library("unsafe_resource") {
  68. sources = [
  69. "unsafe_resource.cc",
  70. "unsafe_resource.h",
  71. ]
  72. deps = [
  73. "//base",
  74. "//components/safe_browsing/core/browser/db:hit_report",
  75. "//components/safe_browsing/core/browser/db:util",
  76. "//components/safe_browsing/core/common:common",
  77. "//net",
  78. "//services/network/public/mojom",
  79. ]
  80. }
  81. source_set("unit_tests") {
  82. testonly = true
  83. sources = [ "ssl_error_options_mask_unittest.cc" ]
  84. deps = [
  85. ":core",
  86. "//base",
  87. "//net",
  88. "//testing/gtest",
  89. ]
  90. }