| Index: chrome/common/safe_browsing/BUILD.gn
|
| diff --git a/chrome/common/safe_browsing/BUILD.gn b/chrome/common/safe_browsing/BUILD.gn
|
| index 55ccf63fdbc8b1a36666b99886282811ad3d0b07..fb98a0b812d39b6b4ba6d7933d15b09f16df109f 100644
|
| --- a/chrome/common/safe_browsing/BUILD.gn
|
| +++ b/chrome/common/safe_browsing/BUILD.gn
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//chrome/common/features.gni")
|
| import("//third_party/protobuf/proto_library.gni")
|
|
|
| proto_library("proto") {
|
| @@ -12,3 +13,53 @@ proto_library("proto") {
|
| "permission_report.proto",
|
| ]
|
| }
|
| +
|
| +source_set("safe_browsing") {
|
| + sources = [
|
| + "file_type_policies.cc",
|
| + "file_type_policies.h",
|
| + ]
|
| +
|
| + if (safe_browsing_mode == 1) {
|
| + sources += [
|
| + "archive_analyzer_results.cc",
|
| + "archive_analyzer_results.h",
|
| + "binary_feature_extractor.cc",
|
| + "binary_feature_extractor.h",
|
| + "binary_feature_extractor_mac.cc",
|
| + "binary_feature_extractor_posix.cc",
|
| + "binary_feature_extractor_win.cc",
|
| + "download_protection_util.cc",
|
| + "download_protection_util.h",
|
| + "ipc_protobuf_message_macros.h",
|
| + "ipc_protobuf_message_null_macros.h",
|
| + "mach_o_image_reader_mac.cc",
|
| + "mach_o_image_reader_mac.h",
|
| + "pe_image_reader_win.cc",
|
| + "pe_image_reader_win.h",
|
| + "protobuf_message_log_macros.h",
|
| + "protobuf_message_param_traits.h",
|
| + "protobuf_message_read_macros.h",
|
| + "protobuf_message_size_macros.h",
|
| + "protobuf_message_write_macros.h",
|
| + "zip_analyzer.cc",
|
| + "zip_analyzer.h",
|
| + ]
|
| + }
|
| +
|
| + public_deps = [
|
| + "//base:i18n",
|
| + "//chrome/browser:resources",
|
| + "//chrome/common:mojo_bindings",
|
| + "//chrome/common/safe_browsing:proto",
|
| + "//components/safe_browsing:csd_proto",
|
| + "//crypto",
|
| + "//ipc",
|
| + "//third_party/zlib/google:zip",
|
| + "//ui/base",
|
| + ]
|
| +
|
| + # safe_archive_analyzer.mojom has a [Native] trait that depends on
|
| + # the protobuf headers in the sources list above.
|
| + allow_circular_includes_from = [ "//chrome/common:mojo_bindings" ]
|
| +}
|
|
|