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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697
|
# Copyright 2014 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/enterprise/buildflags/buildflags.gni")
import("//components/safe_browsing/buildflags.gni")
import("//extensions/buildflags/buildflags.gni")
static_library("safe_browsing") {
sources = [
"chrome_controller_client.cc",
"chrome_controller_client.h",
"url_checker_delegate_impl.cc",
"url_checker_delegate_impl.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
allow_circular_includes_from = []
deps = [
"//build:branding_buildflags",
"//chrome/app:generated_resources",
"//chrome/browser:browser_process",
"//chrome/browser/google",
"//chrome/browser/optimization_guide",
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/sync",
"//chrome/browser/ui/autofill",
"//chrome/common",
"//chrome/common:constants",
"//components/browser_sync",
"//components/enterprise:enterprise",
"//components/enterprise/buildflags",
"//components/enterprise/common:strings",
"//components/enterprise/obfuscation/core:enterprise_obfuscation",
"//components/keyed_service/content",
"//components/language/core/browser",
"//components/no_state_prefetch/browser",
"//components/no_state_prefetch/common",
"//components/page_info",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser:hash_password_manager",
"//components/pref_registry",
"//components/resources:components_resources_grit",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser",
"//components/safe_browsing/content/browser/notification_content_detection:notification_content_detection",
"//components/safe_browsing/content/browser/triggers:suspicious_site_trigger",
"//components/safe_browsing/content/browser/web_ui",
"//components/safe_browsing/core/browser",
"//components/safe_browsing/core/browser:download_check_result",
"//components/safe_browsing/core/browser:referrer_chain_provider",
"//components/safe_browsing/core/browser:safe_browsing_metrics_collector",
"//components/safe_browsing/core/browser/db:database_manager",
"//components/safe_browsing/core/browser/db:v4_local_database_manager",
"//components/safe_browsing/core/browser/password_protection:password_protection_metrics_util",
"//components/safe_browsing/core/browser/sync",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:interfaces",
"//components/safe_browsing/core/common:safe_browsing_policy_handler",
"//components/search_engines",
"//components/security_interstitials/content:security_interstitial_page",
"//components/security_interstitials/core",
"//components/sessions",
"//components/signin/public/identity_manager",
"//components/url_formatter",
"//components/vector_icons:vector_icons",
"//mojo/public/cpp/platform",
"//mojo/public/cpp/system",
"//services/preferences/public/cpp",
]
if (enable_extensions) {
deps += [ "//chrome/browser/ui/web_applications" ]
}
# Note: is_android is not equivalent to safe_browsing_mode == 2.
# Sources and dependencies added to this block must not depend on anything
# requiring safe_browsing_mode != 0.
if (is_android) {
deps += [
"//chrome/browser/password_manager/android:utils",
"//chrome/browser/ui/android/tab_model",
"//components/safe_browsing/android:safe_browsing_api_handler",
"//components/safe_browsing/android:safe_browsing_api_handler_util",
]
}
if (is_chromeos) {
deps += [ "//chrome/browser/ash/file_manager" ]
allow_circular_includes_from += [ "//chrome/browser/ash/file_manager" ]
}
if (is_win || is_mac || is_linux || is_chromeos) {
deps += [
"//chrome/browser/ui/browser_window",
"//chrome/browser/ui/toasts:toasts",
"//chrome/browser/ui/toasts/api:toasts",
]
}
if (safe_browsing_mode != 0) {
# "Safe Browsing Basic" files used for safe browsing in full mode
# (safe_browsing=1) and mobile (=2)
sources += [
"../download/download_completion_blocker.cc",
"../download/download_completion_blocker.h",
"chrome_client_side_detection_host_delegate.cc",
"chrome_client_side_detection_host_delegate.h",
"chrome_client_side_detection_service_delegate.cc",
"chrome_client_side_detection_service_delegate.h",
"chrome_enterprise_url_lookup_service_factory.cc",
"chrome_enterprise_url_lookup_service_factory.h",
"chrome_password_protection_service.cc",
"chrome_password_protection_service.h",
"chrome_password_protection_service_factory.cc",
"chrome_password_protection_service_factory.h",
"chrome_password_reuse_detection_manager_client.cc",
"chrome_password_reuse_detection_manager_client.h",
"chrome_ping_manager_factory.cc",
"chrome_ping_manager_factory.h",
"chrome_safe_browsing_blocking_page_factory.cc",
"chrome_safe_browsing_blocking_page_factory.h",
"chrome_safe_browsing_local_state_delegate.cc",
"chrome_safe_browsing_local_state_delegate.h",
"chrome_safe_browsing_tab_observer_delegate.cc",
"chrome_safe_browsing_tab_observer_delegate.h",
"chrome_ui_manager_delegate.cc",
"chrome_ui_manager_delegate.h",
"chrome_user_population_helper.cc",
"chrome_user_population_helper.h",
"chrome_v4_protocol_config_provider.cc",
"chrome_v4_protocol_config_provider.h",
"client_side_detection_intelligent_scan_delegate_factory.cc",
"client_side_detection_intelligent_scan_delegate_factory.h",
"client_side_detection_service_factory.cc",
"client_side_detection_service_factory.h",
"delayed_warning_navigation_throttle.cc",
"delayed_warning_navigation_throttle.h",
"download_protection/check_client_download_request.cc",
"download_protection/check_client_download_request.h",
"download_protection/check_client_download_request_base.cc",
"download_protection/check_client_download_request_base.h",
"download_protection/check_file_system_access_write_request.cc",
"download_protection/check_file_system_access_write_request.h",
"download_protection/deep_scanning_metadata.cc",
"download_protection/deep_scanning_metadata.h",
"download_protection/download_item_metadata.cc",
"download_protection/download_item_metadata.h",
"download_protection/download_protection_delegate.cc",
"download_protection/download_protection_delegate.h",
"download_protection/download_protection_observer.cc",
"download_protection/download_protection_observer.h",
"download_protection/download_protection_service.cc",
"download_protection/download_protection_service.h",
"download_protection/download_protection_util.cc",
"download_protection/download_protection_util.h",
"download_protection/download_request_maker.cc",
"download_protection/download_request_maker.h",
"download_protection/download_url_sb_client.cc",
"download_protection/download_url_sb_client.h",
"download_protection/file_analyzer.cc",
"download_protection/file_analyzer.h",
"download_protection/file_system_access_metadata.cc",
"download_protection/file_system_access_metadata.h",
"download_protection/ppapi_download_request.cc",
"download_protection/ppapi_download_request.h",
"external_app_redirect_checking.cc",
"external_app_redirect_checking.h",
"network_context_service.cc",
"network_context_service.h",
"network_context_service_factory.cc",
"network_context_service_factory.h",
"notification_content_detection/notification_content_detection_service_factory.cc",
"notification_content_detection/notification_content_detection_service_factory.h",
"notification_content_detection/notification_content_detection_util.cc",
"notification_content_detection/notification_content_detection_util.h",
"notification_telemetry/notification_telemetry_service.cc",
"notification_telemetry/notification_telemetry_service.h",
"notification_telemetry/notification_telemetry_service_factory.cc",
"notification_telemetry/notification_telemetry_service_factory.h",
"phishy_interaction_tracker.cc",
"phishy_interaction_tracker.h",
"safe_browsing_navigation_observer_manager_factory.cc",
"safe_browsing_navigation_observer_manager_factory.h",
"safe_browsing_pref_change_handler.cc",
"safe_browsing_pref_change_handler.h",
"safe_browsing_service.cc",
"safe_browsing_service.h",
"services_delegate.cc",
"services_delegate.h",
"tailored_security/chrome_tailored_security_service.cc",
"tailored_security/chrome_tailored_security_service.h",
"tailored_security/message_retry_handler.cc",
"tailored_security/message_retry_handler.h",
"tailored_security/tailored_security_service_factory.cc",
"tailored_security/tailored_security_service_factory.h",
"tailored_security/tailored_security_url_observer.cc",
"tailored_security/tailored_security_url_observer.h",
"telemetry/telemetry_service.cc",
"telemetry/telemetry_service.h",
"test_safe_browsing_blocking_page_quiet.cc",
"test_safe_browsing_blocking_page_quiet.h",
"trigger_creator.cc",
"trigger_creator.h",
"url_lookup_service_factory.cc",
"url_lookup_service_factory.h",
"user_interaction_observer.cc",
"user_interaction_observer.h",
]
if (is_android) {
sources += [
"android/client_side_detection_intelligent_scan_delegate_android.cc",
"android/client_side_detection_intelligent_scan_delegate_android.h",
]
} else {
sources += [
"client_side_detection_intelligent_scan_delegate_desktop.cc",
"client_side_detection_intelligent_scan_delegate_desktop.h",
]
}
deps += [
":advanced_protection",
":metrics_collector",
":verdict_cache_manager_factory",
"//build:branding_buildflags",
"//build:chromeos_buildflags",
"//chrome/browser:browser_process",
"//chrome/browser/content_extraction:content_extraction",
"//chrome/browser/content_settings:content_settings_factory",
"//chrome/browser/download",
"//chrome/browser/enterprise/connectors/analysis:features",
"//chrome/browser/permissions:permissions_proto",
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui/safety_hub",
"//chrome/common/safe_browsing:archive_analyzer_results",
"//chrome/common/safe_browsing:binary_feature_extractor",
"//chrome/common/safe_browsing:download_type_util",
"//chrome/common/safe_browsing:proto",
"//components/autofill/core/browser",
"//components/content_settings/core/browser",
"//components/enterprise/connectors/core",
"//components/no_state_prefetch/browser",
"//components/omnibox/browser",
"//components/password_manager/content/browser",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/browser/form_parsing",
"//components/permissions",
"//components/safe_browsing/content/browser",
"//components/safe_browsing/content/browser:client_side_detection",
"//components/safe_browsing/content/browser:client_side_detection_service",
"//components/safe_browsing/content/browser:safe_browsing_blocking_page",
"//components/safe_browsing/content/browser:safe_browsing_service",
"//components/safe_browsing/content/browser/download:download_stats",
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/triggers",
"//components/safe_browsing/content/browser/triggers:ad_sampler_trigger",
"//components/safe_browsing/content/browser/triggers:suspicious_site_trigger",
"//components/safe_browsing/content/browser/triggers:trigger_throttler",
"//components/safe_browsing/content/common:file_type_policies",
"//components/safe_browsing/core/browser",
"//components/safe_browsing/core/browser:referring_app_info",
"//components/safe_browsing/core/browser:token_fetcher",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/db:allowlist_checker_client",
"//components/safe_browsing/core/browser/password_protection",
"//components/safe_browsing/core/browser/password_protection:password_reuse_detection_manager_client",
"//components/safe_browsing/core/browser/realtime:enterprise_url_lookup_service",
"//components/safe_browsing/core/browser/realtime:policy_engine",
"//components/safe_browsing/core/browser/realtime:url_lookup_service",
"//components/safe_browsing/core/browser/sync",
"//components/safe_browsing/core/browser/tailored_security_service",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/signin/public/identity_manager",
"//components/site_engagement/core/mojom:mojo_bindings",
"//components/sync_user_events",
"//components/unified_consent",
"//components/url_matcher:url_matcher",
"//components/variations/service",
"//components/version_info",
"//components/webdata/common",
"//content/public/browser",
"//services/preferences/public/mojom:mojom",
]
allow_circular_includes_from += [ "//chrome/browser/ui/safety_hub" ]
if (safe_browsing_mode == 1) {
# "Safe Browsing Full" files in addition to the "basic" ones to use for
# full safe browsing. This has some in common with "mobile."
sources += [
"chrome_safe_browsing_hats_delegate.cc",
"chrome_safe_browsing_hats_delegate.h",
"cloud_content_scanning/binary_upload_service.cc",
"cloud_content_scanning/binary_upload_service.h",
"cloud_content_scanning/cloud_binary_upload_service.cc",
"cloud_content_scanning/cloud_binary_upload_service.h",
"cloud_content_scanning/cloud_binary_upload_service_factory.cc",
"cloud_content_scanning/cloud_binary_upload_service_factory.h",
"cloud_content_scanning/connector_data_pipe_getter.cc",
"cloud_content_scanning/connector_data_pipe_getter.h",
"cloud_content_scanning/connector_upload_request.cc",
"cloud_content_scanning/connector_upload_request.h",
"cloud_content_scanning/deep_scanning_utils.cc",
"cloud_content_scanning/deep_scanning_utils.h",
"cloud_content_scanning/file_analysis_request.cc",
"cloud_content_scanning/file_analysis_request.h",
"cloud_content_scanning/file_opening_job.cc",
"cloud_content_scanning/file_opening_job.h",
"cloud_content_scanning/multipart_uploader.cc",
"cloud_content_scanning/multipart_uploader.h",
"cloud_content_scanning/resumable_uploader.cc",
"cloud_content_scanning/resumable_uploader.h",
"download_protection/deep_scanning_request.cc",
"download_protection/deep_scanning_request.h",
"download_protection/download_feedback.cc",
"download_protection/download_feedback.h",
"download_protection/download_feedback_service.cc",
"download_protection/download_feedback_service.h",
"download_protection/download_protection_delegate_desktop.cc",
"download_protection/download_protection_delegate_desktop.h",
"download_protection/path_sanitizer.cc",
"download_protection/path_sanitizer.h",
"extension_telemetry/cookies_get_all_signal.cc",
"extension_telemetry/cookies_get_all_signal.h",
"extension_telemetry/cookies_get_all_signal_processor.cc",
"extension_telemetry/cookies_get_all_signal_processor.h",
"extension_telemetry/cookies_get_signal.cc",
"extension_telemetry/cookies_get_signal.h",
"extension_telemetry/cookies_get_signal_processor.cc",
"extension_telemetry/cookies_get_signal_processor.h",
"extension_telemetry/declarative_net_request_action_signal.cc",
"extension_telemetry/declarative_net_request_action_signal.h",
"extension_telemetry/declarative_net_request_action_signal_processor.cc",
"extension_telemetry/declarative_net_request_action_signal_processor.h",
"extension_telemetry/declarative_net_request_signal.cc",
"extension_telemetry/declarative_net_request_signal.h",
"extension_telemetry/declarative_net_request_signal_processor.cc",
"extension_telemetry/declarative_net_request_signal_processor.h",
"extension_telemetry/extension_js_callstacks.cc",
"extension_telemetry/extension_js_callstacks.h",
"extension_telemetry/extension_signal.h",
"extension_telemetry/extension_signal_processor.h",
"extension_telemetry/extension_signal_util.cc",
"extension_telemetry/extension_signal_util.h",
"extension_telemetry/extension_telemetry_config_manager.cc",
"extension_telemetry/extension_telemetry_config_manager.h",
"extension_telemetry/extension_telemetry_file_processor.cc",
"extension_telemetry/extension_telemetry_file_processor.h",
"extension_telemetry/extension_telemetry_persister.cc",
"extension_telemetry/extension_telemetry_persister.h",
"extension_telemetry/extension_telemetry_service.cc",
"extension_telemetry/extension_telemetry_service.h",
"extension_telemetry/extension_telemetry_service_factory.cc",
"extension_telemetry/extension_telemetry_service_factory.h",
"extension_telemetry/extension_telemetry_uploader.cc",
"extension_telemetry/extension_telemetry_uploader.h",
"extension_telemetry/extension_web_request_reporter_impl.cc",
"extension_telemetry/extension_web_request_reporter_impl.h",
"extension_telemetry/password_reuse_signal.cc",
"extension_telemetry/password_reuse_signal.h",
"extension_telemetry/potential_password_theft_signal_processor.cc",
"extension_telemetry/potential_password_theft_signal_processor.h",
"extension_telemetry/remote_host_contacted_signal.cc",
"extension_telemetry/remote_host_contacted_signal.h",
"extension_telemetry/remote_host_contacted_signal_processor.cc",
"extension_telemetry/remote_host_contacted_signal_processor.h",
"extension_telemetry/tabs_api_signal.cc",
"extension_telemetry/tabs_api_signal.h",
"extension_telemetry/tabs_api_signal_processor.cc",
"extension_telemetry/tabs_api_signal_processor.h",
"extension_telemetry/tabs_execute_script_signal.cc",
"extension_telemetry/tabs_execute_script_signal.h",
"extension_telemetry/tabs_execute_script_signal_processor.cc",
"extension_telemetry/tabs_execute_script_signal_processor.h",
"hash_realtime_service_factory.cc",
"hash_realtime_service_factory.h",
"incident_reporting/binary_integrity_analyzer.cc",
"incident_reporting/binary_integrity_analyzer.h",
"incident_reporting/binary_integrity_incident.cc",
"incident_reporting/binary_integrity_incident.h",
"incident_reporting/delayed_analysis_callback.h",
"incident_reporting/delayed_callback_runner.cc",
"incident_reporting/delayed_callback_runner.h",
"incident_reporting/download_metadata_manager.cc",
"incident_reporting/download_metadata_manager.h",
"incident_reporting/environment_data_collection.cc",
"incident_reporting/environment_data_collection.h",
"incident_reporting/extension_data_collection.cc",
"incident_reporting/extension_data_collection.h",
"incident_reporting/incident.cc",
"incident_reporting/incident.h",
"incident_reporting/incident_handler_util.cc",
"incident_reporting/incident_handler_util.h",
"incident_reporting/incident_receiver.h",
"incident_reporting/incident_report_uploader.cc",
"incident_reporting/incident_report_uploader.h",
"incident_reporting/incident_report_uploader_impl.cc",
"incident_reporting/incident_report_uploader_impl.h",
"incident_reporting/incident_reporting_service.cc",
"incident_reporting/incident_reporting_service.h",
"incident_reporting/last_download_finder.cc",
"incident_reporting/last_download_finder.h",
"incident_reporting/platform_state_store.cc",
"incident_reporting/platform_state_store.h",
"incident_reporting/preference_validation_delegate.cc",
"incident_reporting/preference_validation_delegate.h",
"incident_reporting/resource_request_incident.cc",
"incident_reporting/resource_request_incident.h",
"incident_reporting/state_store.cc",
"incident_reporting/state_store.h",
"incident_reporting/tracked_preference_incident.cc",
"incident_reporting/tracked_preference_incident.h",
"ohttp_key_service_factory.cc",
"ohttp_key_service_factory.h",
"services_delegate_desktop.cc",
"services_delegate_desktop.h",
"tailored_security/notification_handler_desktop.cc",
"tailored_security/notification_handler_desktop.h",
]
if (is_mac) {
sources += [
"incident_reporting/binary_integrity_analyzer_mac.cc",
"incident_reporting/binary_integrity_analyzer_mac.h",
"signature_evaluator_mac.h",
"signature_evaluator_mac.mm",
]
} else if (is_win) {
sources += [
"incident_reporting/binary_integrity_analyzer_win.cc",
"incident_reporting/binary_integrity_analyzer_win.h",
"incident_reporting/environment_data_collection_win.cc",
"incident_reporting/environment_data_collection_win.h",
"incident_reporting/module_integrity_verifier_win.cc",
"incident_reporting/module_integrity_verifier_win.h",
"incident_reporting/platform_state_store_win.cc",
]
}
deps += [
":advanced_protection",
":verdict_cache_manager_factory",
"//build:branding_buildflags",
"//build:chromeos_buildflags",
"//chrome/app/vector_icons:vector_icons",
"//chrome/browser/ui/hats",
"//chrome/common",
"//chrome/services/file_util/public/cpp",
"//components/content_settings/core/browser",
"//components/file_access",
"//components/gcm_driver",
"//components/gcm_driver/instance_id",
"//components/keyed_service/content",
"//components/language/core/common",
"//components/policy/core/browser",
"//components/policy/core/common:common_constants",
"//components/prefs",
"//components/safe_browsing/content/common:interfaces",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/db",
"//components/safe_browsing/core/browser/db:v4_store",
"//components/safe_browsing/core/browser/hashprefix_realtime:hash_realtime_service",
"//components/safe_browsing/core/browser/realtime:policy_engine",
"//components/safe_browsing/core/common/hashprefix_realtime:hash_realtime_utils",
"//components/safe_browsing/core/common/proto:client_model_proto",
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/security_interstitials/content:security_interstitial_page",
"//components/security_interstitials/core:unsafe_resource",
"//components/sync",
"//content/public/browser",
"//extensions/browser",
"//net",
"//services/network/public/cpp:cpp",
"//third_party/abseil-cpp:absl",
]
if (is_mac) {
deps += [ "//chrome/common/safe_browsing:disk_image_type_sniffer_mac" ]
} else if (is_win) {
deps += [
"//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto",
"//chrome/common:version_header",
]
}
if (is_chromeos) {
deps += [
"//ash/constants:constants",
"//chromeos/ash/components/browser_context_helper:browser_context_helper",
"//chromeos/components/mgs:mgs",
]
}
if (!is_android) {
deps += [ "//chrome/browser/ui:browser_list" ]
}
} else if (safe_browsing_mode == 2) {
sources += [
"android/download_protection_metrics_data.cc",
"android/download_protection_metrics_data.h",
"android/services_delegate_android.cc",
"android/services_delegate_android.h",
"download_protection/download_protection_delegate_android.cc",
"download_protection/download_protection_delegate_android.h",
"download_protection/rate_limiting_key_manager.cc",
"download_protection/rate_limiting_key_manager.h",
"tailored_security/consented_message_android.cc",
"tailored_security/consented_message_android.h",
"tailored_security/unconsented_message_android.cc",
"tailored_security/unconsented_message_android.h",
"telemetry/android/android_telemetry_service.cc",
"telemetry/android/android_telemetry_service.h",
]
deps += [
"//chrome/app/vector_icons:vector_icons",
"//chrome/browser/safe_browsing/android",
"//components/messages/android:android",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/android:remote_database_manager",
"//components/safe_browsing/android:safe_browsing_mobile",
"//google_apis/common:request_util",
"//ui/android:android",
# TODO(crbug.com/41437292): Use //chrome/browser after fixing cyclic
# dependency.
"//chrome/browser/page_info:page_info_buildflags",
]
}
}
}
source_set("verdict_cache_manager_factory") {
sources = [
"verdict_cache_manager_factory.cc",
"verdict_cache_manager_factory.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//chrome/browser:browser_process",
"//chrome/browser/content_settings:content_settings_factory",
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/sync",
"//chrome/common",
"//components/content_settings/core/browser",
"//components/history/core/browser",
"//components/keyed_service/content",
"//components/prefs",
"//components/safe_browsing/core/browser:verdict_cache_manager",
"//components/safe_browsing/core/browser/sync",
"//content/public/browser",
]
}
static_library("advanced_protection") {
sources = [
"advanced_protection_status_manager.cc",
"advanced_protection_status_manager.h",
"advanced_protection_status_manager_factory.cc",
"advanced_protection_status_manager_factory.h",
]
if (is_android) {
sources += [
"advanced_protection_status_manager_android.cc",
"advanced_protection_status_manager_android.h",
]
} else {
sources += [
"advanced_protection_status_manager_desktop.cc",
"advanced_protection_status_manager_desktop.h",
]
}
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//components/keyed_service/content",
"//components/prefs",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/signin/public/identity_manager",
"//content/public/browser",
]
if (is_android) {
deps += [ "android:jni_headers" ]
}
}
source_set("metrics_collector") {
sources = [
"safe_browsing_metrics_collector_factory.cc",
"safe_browsing_metrics_collector_factory.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//chrome/browser:browser_process",
"//chrome/browser/profiles:profile",
"//chrome/common",
"//components/keyed_service/content",
"//components/prefs",
"//components/safe_browsing/content/browser",
"//components/safe_browsing/core/browser:safe_browsing_metrics_collector",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//content/public/browser",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"advanced_protection_status_manager_factory_unittest.cc",
"advanced_protection_status_manager_unittest.cc",
]
deps = [
":safe_browsing",
"//chrome/browser/safe_browsing:advanced_protection",
"//chrome/test:test_support",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/signin/public/identity_manager:test_support",
"//components/sync_preferences:test_support",
"//content/test:test_support",
"//testing/gtest",
]
if (is_android) {
deps += [ "android:test_support" ]
}
}
source_set("test_support") {
testonly = true
deps = []
if (safe_browsing_mode != 0) {
sources = [
"test_safe_browsing_service.cc",
"test_safe_browsing_service.h",
]
if (!is_android) {
sources += [
"test_safe_browsing_navigation_observer_manager.cc",
"test_safe_browsing_navigation_observer_manager.h",
]
}
deps += [
":safe_browsing",
"//chrome/browser:browser",
"//chrome/browser/content_settings:content_settings_factory",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui:ui",
"//chrome/common",
"//chrome/common/safe_browsing:proto",
"//components/enterprise/common/proto:connectors_proto",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser:browser",
"//components/safe_browsing/content/browser:safe_browsing_blocking_page",
"//components/safe_browsing/content/browser:safe_browsing_service",
"//components/safe_browsing/core/browser/db:database_manager",
"//components/safe_browsing/core/browser/db:test_database_manager",
"//components/safe_browsing/core/browser/db:v4_protocol_manager_util",
"//content/public/browser",
"//services/network:test_support",
"//testing/gtest",
]
}
if (safe_browsing_mode == 1) {
sources += [
"cloud_content_scanning/test_binary_upload_service.cc",
"cloud_content_scanning/test_binary_upload_service.h",
]
}
if (is_android) {
deps += [
"android:test_support",
"android:test_support_java",
]
}
}
|