OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//extensions/features/features.gni") |
5 import("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
6 | 7 |
7 proto_library("chunk_proto") { | 8 proto_library("chunk_proto") { |
8 sources = [ | 9 sources = [ |
9 "chunk.proto", | 10 "chunk.proto", |
10 ] | 11 ] |
11 } | 12 } |
| 13 |
| 14 static_library("safe_browsing") { |
| 15 sources = [ |
| 16 "browser_url_loader_throttle.cc", |
| 17 "browser_url_loader_throttle.h", |
| 18 "chrome_cleaner/chrome_cleaner_controller_win.cc", |
| 19 "chrome_cleaner/chrome_cleaner_controller_win.h", |
| 20 "chrome_cleaner/chrome_cleaner_fetcher_win.cc", |
| 21 "chrome_cleaner/chrome_cleaner_fetcher_win.h", |
| 22 "chrome_cleaner/chrome_cleaner_runner_win.cc", |
| 23 "chrome_cleaner/chrome_cleaner_runner_win.h", |
| 24 "chrome_cleaner/reporter_runner_win.cc", |
| 25 "chrome_cleaner/reporter_runner_win.h", |
| 26 "chrome_cleaner/settings_resetter_win.cc", |
| 27 "chrome_cleaner/settings_resetter_win.h", |
| 28 "chrome_cleaner/srt_chrome_prompt_impl.cc", |
| 29 "chrome_cleaner/srt_chrome_prompt_impl.h", |
| 30 "chrome_cleaner/srt_client_info_win.cc", |
| 31 "chrome_cleaner/srt_client_info_win.h", |
| 32 "chrome_cleaner/srt_field_trial_win.cc", |
| 33 "chrome_cleaner/srt_field_trial_win.h", |
| 34 "chrome_cleaner/srt_global_error_win.cc", |
| 35 "chrome_cleaner/srt_global_error_win.h", |
| 36 "mojo_safe_browsing_impl.cc", |
| 37 "mojo_safe_browsing_impl.h", |
| 38 "safe_browsing_tab_observer.cc", |
| 39 "safe_browsing_tab_observer.h", |
| 40 "safe_browsing_url_checker_impl.cc", |
| 41 "safe_browsing_url_checker_impl.h", |
| 42 ] |
| 43 |
| 44 deps = [ |
| 45 "//chrome/app:generated_resources", |
| 46 "//components/safe_browsing/common:interfaces", |
| 47 ] |
| 48 |
| 49 if (enable_extensions) { |
| 50 sources += [ |
| 51 "chrome_cleaner/chrome_cleaner_dialog_controller_win.cc", |
| 52 "chrome_cleaner/chrome_cleaner_dialog_controller_win.h", |
| 53 "settings_reset_prompt/default_settings_fetcher.cc", |
| 54 "settings_reset_prompt/default_settings_fetcher.h", |
| 55 "settings_reset_prompt/extension_info.cc", |
| 56 "settings_reset_prompt/extension_info.h", |
| 57 "settings_reset_prompt/settings_reset_prompt_config.cc", |
| 58 "settings_reset_prompt/settings_reset_prompt_config.h", |
| 59 "settings_reset_prompt/settings_reset_prompt_controller.cc", |
| 60 "settings_reset_prompt/settings_reset_prompt_controller.h", |
| 61 "settings_reset_prompt/settings_reset_prompt_model.cc", |
| 62 "settings_reset_prompt/settings_reset_prompt_model.h", |
| 63 "settings_reset_prompt/settings_reset_prompt_prefs_manager.cc", |
| 64 "settings_reset_prompt/settings_reset_prompt_prefs_manager.h", |
| 65 ] |
| 66 } |
| 67 |
| 68 if (safe_browsing_mode != 0) { |
| 69 # "Safe Browsing Basic" files used for safe browsing in full mode |
| 70 # (safe_browsing=1) and mobile (=2) |
| 71 sources += [ |
| 72 "../loader/data_reduction_proxy_resource_throttle_android.cc", |
| 73 "../loader/data_reduction_proxy_resource_throttle_android.h", |
| 74 "certificate_reporting_metrics_provider.cc", |
| 75 "certificate_reporting_metrics_provider.h", |
| 76 "certificate_reporting_service.cc", |
| 77 "certificate_reporting_service.h", |
| 78 "certificate_reporting_service_factory.cc", |
| 79 "certificate_reporting_service_factory.h", |
| 80 "notification_image_reporter.cc", |
| 81 "notification_image_reporter.h", |
| 82 "permission_reporter.cc", |
| 83 "permission_reporter.h", |
| 84 "ping_manager.cc", |
| 85 "ping_manager.h", |
| 86 "safe_browsing_blocking_page.cc", |
| 87 "safe_browsing_blocking_page.h", |
| 88 "safe_browsing_navigation_observer.cc", |
| 89 "safe_browsing_navigation_observer.h", |
| 90 "safe_browsing_navigation_observer_manager.cc", |
| 91 "safe_browsing_navigation_observer_manager.h", |
| 92 "safe_browsing_service.cc", |
| 93 "safe_browsing_service.h", |
| 94 "services_delegate.h", |
| 95 "test_safe_browsing_blocking_page_quiet.cc", |
| 96 "test_safe_browsing_blocking_page_quiet.h", |
| 97 "test_safe_browsing_service.cc", |
| 98 "test_safe_browsing_service.h", |
| 99 "ui_manager.cc", |
| 100 "ui_manager.h", |
| 101 ] |
| 102 deps += [ |
| 103 "//chrome/browser/safe_browsing:chunk_proto", |
| 104 "//chrome/common/safe_browsing:proto", |
| 105 "//components/safe_browsing:csd_proto", |
| 106 "//components/safe_browsing:safe_browsing", |
| 107 "//components/safe_browsing/browser:browser", |
| 108 "//components/safe_browsing/common:common", |
| 109 "//components/safe_browsing/password_protection", |
| 110 "//components/safe_browsing/triggers:triggers", |
| 111 "//components/safe_browsing_db:metadata_proto", |
| 112 ] |
| 113 if (safe_browsing_mode == 1) { |
| 114 # "Safe Browsing Full" files in addition to the "basic" ones to use for |
| 115 # full safe browsing. This has some in common with "mobile." |
| 116 sources += [ |
| 117 "../download/download_completion_blocker.cc", |
| 118 "../download/download_completion_blocker.h", |
| 119 "../loader/safe_browsing_resource_throttle.cc", |
| 120 "../loader/safe_browsing_resource_throttle.h", |
| 121 "browser_feature_extractor.cc", |
| 122 "browser_feature_extractor.h", |
| 123 "browser_features.cc", |
| 124 "browser_features.h", |
| 125 "chrome_password_protection_service.cc", |
| 126 "chrome_password_protection_service.h", |
| 127 "chunk_range.cc", |
| 128 "chunk_range.h", |
| 129 "client_side_detection_host.cc", |
| 130 "client_side_detection_host.h", |
| 131 "client_side_detection_service.cc", |
| 132 "client_side_detection_service.h", |
| 133 "client_side_model_loader.cc", |
| 134 "client_side_model_loader.h", |
| 135 "download_feedback.cc", |
| 136 "download_feedback.h", |
| 137 "download_feedback_service.cc", |
| 138 "download_feedback_service.h", |
| 139 "download_protection_service.cc", |
| 140 "download_protection_service.h", |
| 141 "incident_reporting/binary_integrity_analyzer.cc", |
| 142 "incident_reporting/binary_integrity_analyzer.h", |
| 143 "incident_reporting/binary_integrity_analyzer_mac.cc", |
| 144 "incident_reporting/binary_integrity_analyzer_mac.h", |
| 145 "incident_reporting/binary_integrity_analyzer_win.cc", |
| 146 "incident_reporting/binary_integrity_analyzer_win.h", |
| 147 "incident_reporting/binary_integrity_incident.cc", |
| 148 "incident_reporting/binary_integrity_incident.h", |
| 149 "incident_reporting/blacklist_load_analyzer.cc", |
| 150 "incident_reporting/blacklist_load_analyzer.h", |
| 151 "incident_reporting/blacklist_load_analyzer_win.cc", |
| 152 "incident_reporting/blacklist_load_incident.cc", |
| 153 "incident_reporting/blacklist_load_incident.h", |
| 154 "incident_reporting/delayed_analysis_callback.h", |
| 155 "incident_reporting/delayed_callback_runner.cc", |
| 156 "incident_reporting/delayed_callback_runner.h", |
| 157 "incident_reporting/download_metadata_manager.cc", |
| 158 "incident_reporting/download_metadata_manager.h", |
| 159 "incident_reporting/environment_data_collection.cc", |
| 160 "incident_reporting/environment_data_collection.h", |
| 161 "incident_reporting/environment_data_collection_win.cc", |
| 162 "incident_reporting/environment_data_collection_win.h", |
| 163 "incident_reporting/extension_data_collection.cc", |
| 164 "incident_reporting/extension_data_collection.h", |
| 165 "incident_reporting/incident.cc", |
| 166 "incident_reporting/incident.h", |
| 167 "incident_reporting/incident_handler_util.cc", |
| 168 "incident_reporting/incident_handler_util.h", |
| 169 "incident_reporting/incident_receiver.h", |
| 170 "incident_reporting/incident_report_uploader.cc", |
| 171 "incident_reporting/incident_report_uploader.h", |
| 172 "incident_reporting/incident_report_uploader_impl.cc", |
| 173 "incident_reporting/incident_report_uploader_impl.h", |
| 174 "incident_reporting/incident_reporting_service.cc", |
| 175 "incident_reporting/incident_reporting_service.h", |
| 176 "incident_reporting/last_download_finder.cc", |
| 177 "incident_reporting/last_download_finder.h", |
| 178 "incident_reporting/module_integrity_verifier_win.cc", |
| 179 "incident_reporting/module_integrity_verifier_win.h", |
| 180 "incident_reporting/module_load_analyzer.cc", |
| 181 "incident_reporting/module_load_analyzer.h", |
| 182 "incident_reporting/module_load_analyzer_win.cc", |
| 183 "incident_reporting/platform_state_store.cc", |
| 184 "incident_reporting/platform_state_store.h", |
| 185 "incident_reporting/platform_state_store_win.cc", |
| 186 "incident_reporting/preference_validation_delegate.cc", |
| 187 "incident_reporting/preference_validation_delegate.h", |
| 188 "incident_reporting/resource_request_detector.cc", |
| 189 "incident_reporting/resource_request_detector.h", |
| 190 "incident_reporting/resource_request_incident.cc", |
| 191 "incident_reporting/resource_request_incident.h", |
| 192 "incident_reporting/state_store.cc", |
| 193 "incident_reporting/state_store.h", |
| 194 "incident_reporting/suspicious_module_incident.cc", |
| 195 "incident_reporting/suspicious_module_incident.h", |
| 196 "incident_reporting/tracked_preference_incident.cc", |
| 197 "incident_reporting/tracked_preference_incident.h", |
| 198 "incident_reporting/variations_seed_signature_analyzer.cc", |
| 199 "incident_reporting/variations_seed_signature_analyzer.h", |
| 200 "incident_reporting/variations_seed_signature_incident.cc", |
| 201 "incident_reporting/variations_seed_signature_incident.h", |
| 202 "local_database_manager.cc", |
| 203 "local_database_manager.h", |
| 204 "path_sanitizer.cc", |
| 205 "path_sanitizer.h", |
| 206 "protocol_manager.cc", |
| 207 "protocol_manager.h", |
| 208 "protocol_parser.cc", |
| 209 "protocol_parser.h", |
| 210 "safe_browsing_database.cc", |
| 211 "safe_browsing_database.h", |
| 212 "safe_browsing_store.cc", |
| 213 "safe_browsing_store.h", |
| 214 "safe_browsing_store_file.cc", |
| 215 "safe_browsing_store_file.h", |
| 216 "safe_browsing_util.cc", |
| 217 "safe_browsing_util.h", |
| 218 "sandboxed_dmg_analyzer_mac.cc", |
| 219 "sandboxed_dmg_analyzer_mac.h", |
| 220 "sandboxed_zip_analyzer.cc", |
| 221 "sandboxed_zip_analyzer.h", |
| 222 "services_delegate_impl.cc", |
| 223 "services_delegate_impl.h", |
| 224 "signature_evaluator_mac.h", |
| 225 "signature_evaluator_mac.mm", |
| 226 "two_phase_uploader.cc", |
| 227 "two_phase_uploader.h", |
| 228 "v4_test_utils.cc", |
| 229 "v4_test_utils.h", |
| 230 ] |
| 231 deps += [ "//components/safe_browsing_db:safe_browsing_db" ] |
| 232 if (is_win) { |
| 233 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store
_data_proto" ] |
| 234 } |
| 235 } else if (safe_browsing_mode == 2) { |
| 236 sources += [ |
| 237 "../loader/safe_browsing_resource_throttle.cc", |
| 238 "../loader/safe_browsing_resource_throttle.h", |
| 239 "services_delegate_stub.cc", |
| 240 "services_delegate_stub.h", |
| 241 ] |
| 242 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ] |
| 243 } |
| 244 } |
| 245 } |
OLD | NEW |