Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chrome/browser/safe_browsing/BUILD.gn

Issue 2940403002: Move SafeBrowsing files from //chrome/browser to a separate target. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/srt_chrome_prompt_impl.cc",
27 "chrome_cleaner/srt_chrome_prompt_impl.h",
28 "chrome_cleaner/srt_client_info_win.cc",
29 "chrome_cleaner/srt_client_info_win.h",
30 "chrome_cleaner/srt_field_trial_win.cc",
31 "chrome_cleaner/srt_field_trial_win.h",
32 "chrome_cleaner/srt_global_error_win.cc",
33 "chrome_cleaner/srt_global_error_win.h",
34 "mojo_safe_browsing_impl.cc",
35 "mojo_safe_browsing_impl.h",
36 "safe_browsing_tab_observer.cc",
37 "safe_browsing_tab_observer.h",
38 "safe_browsing_url_checker_impl.cc",
39 "safe_browsing_url_checker_impl.h",
40 ]
41
42 deps = [
43 "//components/safe_browsing/common:interfaces",
44 ]
45
46 if (enable_extensions) {
47 sources += [
48 "chrome_cleaner/chrome_cleaner_dialog_controller_win.cc",
49 "chrome_cleaner/chrome_cleaner_dialog_controller_win.h",
50 "settings_reset_prompt/default_settings_fetcher.cc",
51 "settings_reset_prompt/default_settings_fetcher.h",
52 "settings_reset_prompt/extension_info.cc",
53 "settings_reset_prompt/extension_info.h",
54 "settings_reset_prompt/settings_reset_prompt_config.cc",
55 "settings_reset_prompt/settings_reset_prompt_config.h",
56 "settings_reset_prompt/settings_reset_prompt_controller.cc",
57 "settings_reset_prompt/settings_reset_prompt_controller.h",
58 "settings_reset_prompt/settings_reset_prompt_model.cc",
59 "settings_reset_prompt/settings_reset_prompt_model.h",
60 "settings_reset_prompt/settings_reset_prompt_prefs_manager.cc",
61 "settings_reset_prompt/settings_reset_prompt_prefs_manager.h",
62 ]
63 }
64
65 if (safe_browsing_mode != 0) {
66 # "Safe Browsing Basic" files used for safe browsing in full mode
67 # (safe_browsing=1) and mobile (=2)
68 sources += [
69 "../loader/data_reduction_proxy_resource_throttle_android.cc",
70 "../loader/data_reduction_proxy_resource_throttle_android.h",
71 "certificate_reporting_metrics_provider.cc",
72 "certificate_reporting_metrics_provider.h",
73 "certificate_reporting_service.cc",
74 "certificate_reporting_service.h",
75 "certificate_reporting_service_factory.cc",
76 "certificate_reporting_service_factory.h",
77 "notification_image_reporter.cc",
78 "notification_image_reporter.h",
79 "permission_reporter.cc",
80 "permission_reporter.h",
81 "ping_manager.cc",
82 "ping_manager.h",
83 "safe_browsing_blocking_page.cc",
84 "safe_browsing_blocking_page.h",
85 "safe_browsing_navigation_observer.cc",
86 "safe_browsing_navigation_observer.h",
87 "safe_browsing_navigation_observer_manager.cc",
88 "safe_browsing_navigation_observer_manager.h",
89 "safe_browsing_service.cc",
90 "safe_browsing_service.h",
91 "services_delegate.h",
92 "test_safe_browsing_blocking_page_quiet.cc",
93 "test_safe_browsing_blocking_page_quiet.h",
94 "test_safe_browsing_service.cc",
95 "test_safe_browsing_service.h",
96 "ui_manager.cc",
97 "ui_manager.h",
98 ]
99 deps += [
100 "//chrome/browser/safe_browsing:chunk_proto",
101 "//chrome/common/safe_browsing:proto",
102 "//components/safe_browsing:csd_proto",
103 "//components/safe_browsing:safe_browsing",
104 "//components/safe_browsing/browser:browser",
105 "//components/safe_browsing/common:common",
106 "//components/safe_browsing/password_protection",
107 "//components/safe_browsing/triggers:triggers",
108 "//components/safe_browsing_db:metadata_proto",
109 ]
110 if (safe_browsing_mode == 1) {
111 # "Safe Browsing Full" files in addition to the "basic" ones to use for
112 # full safe browsing. This has some in common with "mobile."
113 sources += [
114 "../download/download_completion_blocker.cc",
115 "../download/download_completion_blocker.h",
116 "../loader/safe_browsing_resource_throttle.cc",
117 "../loader/safe_browsing_resource_throttle.h",
118 "browser_feature_extractor.cc",
119 "browser_feature_extractor.h",
120 "browser_features.cc",
121 "browser_features.h",
122 "chrome_password_protection_service.cc",
123 "chrome_password_protection_service.h",
124 "chunk_range.cc",
125 "chunk_range.h",
126 "client_side_detection_host.cc",
127 "client_side_detection_host.h",
128 "client_side_detection_service.cc",
129 "client_side_detection_service.h",
130 "client_side_model_loader.cc",
131 "client_side_model_loader.h",
132 "download_feedback.cc",
133 "download_feedback.h",
134 "download_feedback_service.cc",
135 "download_feedback_service.h",
136 "download_protection_service.cc",
137 "download_protection_service.h",
138 "incident_reporting/binary_integrity_analyzer.cc",
139 "incident_reporting/binary_integrity_analyzer.h",
140 "incident_reporting/binary_integrity_analyzer_mac.cc",
141 "incident_reporting/binary_integrity_analyzer_mac.h",
142 "incident_reporting/binary_integrity_analyzer_win.cc",
143 "incident_reporting/binary_integrity_analyzer_win.h",
144 "incident_reporting/binary_integrity_incident.cc",
145 "incident_reporting/binary_integrity_incident.h",
146 "incident_reporting/blacklist_load_analyzer.cc",
147 "incident_reporting/blacklist_load_analyzer.h",
148 "incident_reporting/blacklist_load_analyzer_win.cc",
149 "incident_reporting/blacklist_load_incident.cc",
150 "incident_reporting/blacklist_load_incident.h",
151 "incident_reporting/delayed_analysis_callback.h",
152 "incident_reporting/delayed_callback_runner.cc",
153 "incident_reporting/delayed_callback_runner.h",
154 "incident_reporting/download_metadata_manager.cc",
155 "incident_reporting/download_metadata_manager.h",
156 "incident_reporting/environment_data_collection.cc",
157 "incident_reporting/environment_data_collection.h",
158 "incident_reporting/environment_data_collection_win.cc",
159 "incident_reporting/environment_data_collection_win.h",
160 "incident_reporting/extension_data_collection.cc",
161 "incident_reporting/extension_data_collection.h",
162 "incident_reporting/incident.cc",
163 "incident_reporting/incident.h",
164 "incident_reporting/incident_handler_util.cc",
165 "incident_reporting/incident_handler_util.h",
166 "incident_reporting/incident_receiver.h",
167 "incident_reporting/incident_report_uploader.cc",
168 "incident_reporting/incident_report_uploader.h",
169 "incident_reporting/incident_report_uploader_impl.cc",
170 "incident_reporting/incident_report_uploader_impl.h",
171 "incident_reporting/incident_reporting_service.cc",
172 "incident_reporting/incident_reporting_service.h",
173 "incident_reporting/last_download_finder.cc",
174 "incident_reporting/last_download_finder.h",
175 "incident_reporting/module_integrity_verifier_win.cc",
176 "incident_reporting/module_integrity_verifier_win.h",
177 "incident_reporting/module_load_analyzer.cc",
178 "incident_reporting/module_load_analyzer.h",
179 "incident_reporting/module_load_analyzer_win.cc",
180 "incident_reporting/platform_state_store.cc",
181 "incident_reporting/platform_state_store.h",
182 "incident_reporting/platform_state_store_win.cc",
183 "incident_reporting/preference_validation_delegate.cc",
184 "incident_reporting/preference_validation_delegate.h",
185 "incident_reporting/resource_request_detector.cc",
186 "incident_reporting/resource_request_detector.h",
187 "incident_reporting/resource_request_incident.cc",
188 "incident_reporting/resource_request_incident.h",
189 "incident_reporting/state_store.cc",
190 "incident_reporting/state_store.h",
191 "incident_reporting/suspicious_module_incident.cc",
192 "incident_reporting/suspicious_module_incident.h",
193 "incident_reporting/tracked_preference_incident.cc",
194 "incident_reporting/tracked_preference_incident.h",
195 "incident_reporting/variations_seed_signature_analyzer.cc",
196 "incident_reporting/variations_seed_signature_analyzer.h",
197 "incident_reporting/variations_seed_signature_incident.cc",
198 "incident_reporting/variations_seed_signature_incident.h",
199 "local_database_manager.cc",
200 "local_database_manager.h",
201 "path_sanitizer.cc",
202 "path_sanitizer.h",
203 "protocol_manager.cc",
204 "protocol_manager.h",
205 "protocol_parser.cc",
206 "protocol_parser.h",
207 "safe_browsing_database.cc",
208 "safe_browsing_database.h",
209 "safe_browsing_store.cc",
210 "safe_browsing_store.h",
211 "safe_browsing_store_file.cc",
212 "safe_browsing_store_file.h",
213 "safe_browsing_util.cc",
214 "safe_browsing_util.h",
215 "sandboxed_dmg_analyzer_mac.cc",
216 "sandboxed_dmg_analyzer_mac.h",
217 "sandboxed_zip_analyzer.cc",
218 "sandboxed_zip_analyzer.h",
219 "services_delegate_impl.cc",
220 "services_delegate_impl.h",
221 "signature_evaluator_mac.h",
222 "signature_evaluator_mac.mm",
223 "two_phase_uploader.cc",
224 "two_phase_uploader.h",
225 "v4_test_utils.cc",
226 "v4_test_utils.h",
227 ]
228 deps += [ "//components/safe_browsing_db:safe_browsing_db" ]
229 if (is_win) {
230 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store _data_proto" ]
231 }
232 } else if (safe_browsing_mode == 2) {
233 sources += [
234 "../loader/safe_browsing_resource_throttle.cc",
235 "../loader/safe_browsing_resource_throttle.h",
236 "services_delegate_stub.cc",
237 "services_delegate_stub.h",
238 ]
239 deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ]
240 }
241 }
242 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698